Search found 8 matches

by mcsquared2718
Tue Oct 18, 2011 3:17 pm
Forum: C and C++
Topic: Picoscope 6000 triggered streaming examples
Replies: 2
Views: 5762

Re: Picoscope 6000 triggered streaming examples

I might also add that when autostop is changed from true to false in the call to ps6000RunStreaming, the oscilloscope never triggers at all, regardless of what signal is applied.
by mcsquared2718
Tue Oct 18, 2011 12:10 pm
Forum: C and C++
Topic: Picoscope 6000 triggered streaming examples
Replies: 2
Views: 5762

Picoscope 6000 triggered streaming examples

Has anyone got any experience of using the triggered streaming function in the example program for the Picoscope 6000? Using the unmodified example code, the triggered streaming function appears to start streaming even when no signal is applied to the inputs of the scope. It also does not autostop a...
by mcsquared2718
Tue Sep 27, 2011 5:16 pm
Forum: C and C++
Topic: Returned value is -12851
Replies: 3
Views: 7096

Re: Returned value is -12851

So I think I've found the problem now.

When I called fopen I used fopen("channelA.bin", "w") instead of fopen("channelA.bin", "wb");

*Expletives*

Sorry for the trouble and thanks again.
by mcsquared2718
Tue Sep 27, 2011 1:40 pm
Forum: C and C++
Topic: Returned value is -12851
Replies: 3
Views: 7096

Re: Returned value is -12851

The signal is a 0-5v (actually more like 0-4.8v so it doesn't actually go out of the 5v voltage range) 1khz square wave (from the probe test on an oscilloscope). The oscilloscope is set up as default by the 5000 series example code: so as follows: for (i = 0; i < MAX_CHANNELS; i++) { unit.channelSet...
by mcsquared2718
Mon Sep 26, 2011 12:46 pm
Forum: C and C++
Topic: Returned value is -12851
Replies: 3
Views: 7096

Returned value is -12851

Hi, Is there a special significance attached to the value -12851 in the c driver code? I have a program based around the example code for the 5204 scope which streams data from the scope at 0.6MS/s into a buffer. Every 100ms, new values are requested from the driver which updates the buffer. The new...
by mcsquared2718
Wed Sep 21, 2011 4:47 pm
Forum: C and C++
Topic: PS6403 example code triggering problem
Replies: 4
Views: 7072

Re: PS6403 example code triggering problem

Martyn, Thanks for your help with this. I thought I'd let you know that I've now found the cause of the issue and have resolved it - there wasn't a problem with the example code provided in the SDK. The problem was that I did not take into account the hysteresis on the trigger. Because the trigger i...
by mcsquared2718
Thu Aug 25, 2011 10:54 am
Forum: C and C++
Topic: PS6403 example code triggering problem
Replies: 4
Views: 7072

Re: PS6403 example code triggering problem

Thanks for getting back to me. Having run some more tests I have in some instances experienced the behavior that you report. However, frequently on running triggered block (or another triggered mode) for a second or third time (in the same session) the problems are experienced. I'd be very grateful ...
by mcsquared2718
Wed Aug 24, 2011 4:35 pm
Forum: C and C++
Topic: PS6403 example code triggering problem
Replies: 4
Views: 7072

PS6403 example code triggering problem

Hi, I've been experimenting with the example C code for the PS6403 but have run into problems with the examples which use a trigger to start collecting data (the examples which don't use the trigger seem to work OK). The program is able to get to the point where ps6000RunBlock or ps6000RunStreaming ...