Problem copying data from PicoScope memory

Post your C and C++ discussions here
Post Reply
davidweisgerber
User
User
Posts: 2
Joined: Wed Aug 26, 2009 2:13 pm

Problem copying data from PicoScope memory

Post by davidweisgerber »

Hi,
another question which gives us headaches. First what we want to do: We have one source which gives us an analog signal that needs to be analyzed with 2µs sample rate. The signal needs to be processed as fast as possible.
At the moment we run in fast streaming mode with a huge buffer. If we call ps2000_get_streaming_last_values at a frequency of 20 Hz or 15 Hz, the buffer sizes which are given to the callback function are very fluctuating. If I run with the same code at 10 Hz, the buffer sizes are as expected.
The problem is that we need a frequency of at least 20 Hz... How would you implement that? We are playing with a lot of values and the behavior of the PicoScope is not always predictable...

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: Problem copying data from PicoScope memory

Post by Robin »

Hi David

As described in the previous post (http://www.picotech.com/support/post15683.html#p15683), the driver has a circular buffer. When you call ps2000_get_streaming_last_values it returns samples up to the end of the buffer. Any samples new samples that have been written to the start of the buffer will not be returned until the next call. This is bound to lead to variation in the number of samples returned.

Robin

Post Reply