How could I get the same data, shown in the following image, using the PS5000 API:
I tried to use ps5000RunStreaming and ps5000GetStreamingLatestValues but I have several issues with my code:
1. I need to keep calling ps5000GetStreamingLatestValues or the callback is not being called.
2. maxPreTriggerSamples and maxPostPreTriggerSamples does not seem to do any effect in ps5000RunStreaming.
Regardless if 1000 or 100000 samples the returned amount of data seems random and is sometimes larger than the amount of samples requested. For example with down sample ratio of 1 and 2000 samples, last call returned 1929576 samples.
3. autoStop in ps5000RunStreaming will not trigger.
4. Should I stop calling ps5000GetStreamingLatestValues if I have received the amount of samples that would fill my time window? Some times the data keeps coming and will not stop (sampleCount > 0).
Here is my setup information:
Driver Version 22.214.171.124
USB Version 2,0
Hardware Version 1
Cal Date 18.10.2011
Kernel Version 1,0
Digital H/W Ver. 1
Analogue H/W Ver. 1