About datas when the segment does not reach the planned number.

Post your C and C++ discussions here
Post Reply
t-yasui
Newbie
Posts: 0
Joined: Sun Dec 16, 2018 8:15 am

About datas when the segment does not reach the planned number.

Post by t-yasui »

I try to get data from PICOSCOPE to PC by using Rapid blockmode.

I put 5V, 500Hz Signal to EXT terminal for 5 seconds, and
I try to get triggered signal (5sec x 500signals/sec = 2500 Segments).

Program flow is as bellow.

1.Set 'ps3000aSetSimpleTrigger' (PS3000A_EXTERNAL , 5V PS3000A_RISING)
2.Set 'ps3000aSetNoOfCaptures' to 2500Segments.
3.Set 'ps3000aSetDataBuffer' to data buffers.
4.Execute 'ps3000aRunBlock'
5.Execute 'ps3000aGetNoOfCaptures' , Obtain the number of acquired segments.
6.if number of segments equal '2500' then execute 'ps3000aIsReady'.
and if 'lsReady' then get data by execute 'ps3000aGetValuesBulk'

If 5V,500Hz normally goes for 5 seconds, data can be acquired from PICO to PC.
but if it only arrives for 4seconds(if the number of segments does not reach 2500)
Is it possible to get 4 seconds worth of data to PC?

I execute 'ps3000aSetNoOfCaptures' after 'ps3000aStop', The number of data was acquired.

But I execute 'ps3000aGetValuesBulk' after 'ps3000aStop', data was broken.

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: About datas when the segment does not reach the planned number.

Post by Martyn »

Can you post your code, or email it to support@picotech.com , we need to see the exact program flow and how you are calling each of the API functions.
Martyn
Technical Support Manager

Post Reply