I am writing an application which needs to process the data coming from the PicoScope all the time (to be detailed: It reads events from a photomultiplier tube).
To acheive this, the PicoScope 2000 runs in fast streaming mode and calls
ps2000_get_streaming_last_values every 25ms. The problem is, that the callback function that I pass to ps2000_get_streaming_last_values is called sometimes without having called ps2000_get_streaming_last_values before.
So I am not totally sure how the concept of the whole API is.
I thought the idea was, that the ps2000_get_streaming_last_values is called, than this function pauses the data acquisition from the device so that I can access the buffers than it calls my callback function where I can copy the buffers to my process space and then the data acquisition thread is resumed.