signal acquisition latency with ps2000_get_streaming_last_values

Post your .Net discussions here
Post Reply
corvexx
Newbie
Posts: 1
Joined: Fri Aug 16, 2024 3:12 am

signal acquisition latency with ps2000_get_streaming_last_values

Post by corvexx »

Hello!

I wrote simple test code that sends a 5ms LPT pulse to the channel A on Pico 2204A and then detects that pulse in samples collected with the ps2000_get_streaming_last_values() function and corresponding callback.The pulses are sent every second. In the same time, the code also polls ps2000_get_streaming_last_values() with a frequency below 1ms. As expected, the callback is not always invoked after ps2000_get_streaming_last_values(), since the samples come in blocks.

What is puzzling is that if I measure a time difference between a LPT pulse and its detection, it varies from 15 to 130 ms, in a very peculiar pattern, shown on this plot (blue dots denote measurements):


https://1drv.ms/i/c/f939672c64df956e/EQ ... w?e=VgbqrH

Since the time difference should be related to the latency of Pico's signal acquisition, why is it so inconsistent? Is there is a way/mode to get fixed and preferably minimal latencies?

Thank you in advance!
Post Reply