I am using PicoScope 4424 and have developed a continuous recording application (4channels, 50kHz sampling for 60 minutes) based on the example c program included in the sdk.
The application runs successfully for around 10 minutes and 33554128 valid samples, but then fails. Stepping through the application, I can see that the callback function is not called anymore after failure. A subsequent call to ps4000Stop also results in the application hanging, also indicating that the picoscope driver hangs.
Is there a maximum number of samples that the picoscope driver can handle?
Any ideas why the application / picoscope driver hangs?
More details of main application calls are given below:
**************************************************
...
status = ps4000RunStreaming(unit->handle, &SAMPLE_INTERVAL_US, PS4000_US,0, 1000000, FALSE, 1, 100000);
...
while(...)
{
...
status = ps4000GetStreamingLatestValues(unit->handle,CallBackStreaming, NULL);
...
// The while loop is stopped when callback function has not been called after a certain time
}
...
ps4000Stop(unit->handle); // The call to this function HANGS.
...
**************************************************
PicoScope® 6 - PC Oscilloscope software version: 6.2.14.0
Driver Version: 1, 0, 5, 7
I am seeing a similar problem using the picoscope 2203. After grabbing data for about 70 minutes, the callback function is not called anymore and ps2000_get_streaming_last_values returns always zero.