Hi,
I'm using the ps3000 API to get some measurements from a 3204. But I have a problem when using the streaming mode and stopping it again. It then just freeze in the ps300_stop function, and ill have to plug the cable for it to continue. PicoScope 6 and Picolog works fine. It seems like I cant interrupt the streaming.
The smallest code i get it with. (C#)
short[] bufferA = new short[60000];
short[] bufferB = new short[60000];
PS3000 ps = new PS3000();
ps.Open();
ps.SetChannel(PS3000.Channel.ChannelA, true, PS3000.Coupling.DC, PS3000.Range.Range5V);
ps.SetEts(PS3000.EtsMode.Off, 0, 0);
ps.SetTrigger(PS3000.Channel.None, 0, PS3000.TriggerThresholdDirection.Rising, 0, 0);
ps.RunStreaming(30, 60000, 0);
Thread.Sleep(10000);
short numOverflows;
int numberOfValuesCaptured = ps.GetValues(bufferA, bufferB, null, null, out numOverflows, 60000);
ps.Stop(); // Freezes in this call
Any ideas what i must do to make it work?
Thanks!
Cart
