Product : PS2104
Library : PS2000 184.108.40.206. Linux
No Trigger (Trigger-channel set to 5 timeout to 0)!
Requests are made in block-mode. I request 8000 samples (the hardware buffer size on the device).
This is whats happening :
I collect my data in a loop that runs in its own thread.
With a timebase index from 0 to 13 everything works fine. I get 8000 values with each call.
But when I get to index 14 the maximum number of samples I can request is 6553. When asking for more
ps2000_get_times_and_values() returns 0
The next test I ran was with timebase index 15. Here the limit turned out to be 3276.
For index 16 I was already able to predict the maximum number of samples to be 1638
Code: Select all
The constant 2.147 is simply the time when ps2000_ready() says "sampling has finished, go collect your data!"
I detected this behaviour when using no trigger on the single channel of my device, but I was also able to reproduce the problem with a normal Trigger-condition. Requesting 8000 Samples returns with 0 valid samples after ~2.147 seconds once your TimeBase index goes beyond 14.
Looks like there is an internal timeout in the ps2000-lib that causes this behaviour?
Is there a reason for having this timeout in your code?
(...and Yes, I know about the compatible streaming mode but I don't want to use it. )