I have been having trouble with a hang on transferring data out of the scope for some combinations of timebase, store length and triggering mode. This is using PS2000sdk_r6_4_28.
The problem can be duplicated with ps2000con.c and a couple of changes, the modified file is attached. There are a few extra casts added to get it through Visual Studio 2010, but the only functionally relevant changes are:
Increased buffer size (line 51) to 8064.
#define BUFFER_SIZE 8064
Set trigger on CH A with auto trigger after 200ms (line 334, 335)
auto_trigger_ms = 200;
ps2000_set_trigger ( unitOpened.handle, PS2000_CHANNEL_A, 0, PS2000_RISING, 0, auto_trigger_ms );
Now if we run the resulting exe and use i to pick a timebase of 14 or faster, then b to acquire some data it works:
Operation:
b
Collect block immediate...
Press a key to start
timebase: 14 oversample:1
First 10 readings
Value
time unit: 3
(ns)
-1
-1
-1
etc
But if we press i and pick timebase 15 or slower it will now hang on the next b like this:
Operation:
b
Collect block immediate...
Press a key to start
timebase: 15 oversample:1
No data appears, the console application is locked up and wont even respond to ctrl-c. I find unplugging the scope to be an effective way of clearing the freeze.
Any thoughts on why this happens appreciated.
Cart

