I am trying to use a PicoScope 3403 in some software I originally wrote for a NI high-speed digitizer.
With the National Instruments board, I tell it to wait for a trigger, and then with Matlab I can execute commands to send a trigger (via an Agilent AWG). While the NI board is waiting for a trigger, it does it in the background and I can execute commands with Matlab.
However, with the PicoScope, when it is waiting for a trigger, I cannot execute any commands with Matlab.
Is there any way to have the PicoScope wait for a trigger in the background?
I have been working in Block Mode...perhaps there is a way in Streaming mode?
Hi,
I am a bit confused by the solution. What is the difference between "calling the runBlock() function" and "calling ps3000aRunBlock" ? I'm not sure what "calling the runBlock function" is refering to, if not the ps3000aRunBlock function.
Cheers
Joe
The 'runBlock' function combines the calls to 'ps3000aRunBlock()' and 'ps3000aIsReady()' into a single function call. This is fine if you just want to start the data collection and wait for the device to complete the data collection.
If you wish to execute other code while waiting for the device to complete collection, then you can use the 'ps3000aRunBlock()' function, call some other code and then poll the 'ps3000aIsReady()' function in a while loop.