timeIndisposedMs

Post any questions related to the new PicoScope 7 software
Post Reply
phgphd
Newbie
Posts: 0
Joined: Wed Jun 16, 2021 12:33 am

timeIndisposedMs

Post by phgphd »

What is the purpose of the timeIndisposedMs parameter in the call to ps4000aRunBlock call? The description provided by the Programmer's Guide may be interpreted to mean that the programmer has to provide some delay time following the trigger before reading out the data. However, all programming examples I have seen always have timeIndisposedMs = NULL so that no value is returned in this variable. The Programmer's Guide provides no discussion of what the programmer is to do with timeIndisposedMs if there were some value returned.

AndrewA
PICO STAFF
PICO STAFF
Posts: 409
Joined: Tue Oct 21, 2014 3:07 pm

Re: timeIndisposedMs

Post by AndrewA »

Hi,
Instead of using a callback function to know if a block capture has finished you can poll the device using psXXXXIsReady().
With programming languages that don't support our C style callbacks like MATLAB, LABVIEW you have to use the polling option.
timeIndisposedMs from the psXXXXRunBlock function returns estimated time that capture should take.
So you can then call a delay/thread delay before starting to poll with psXXXXIsReady().
Regards Andrew
Technical Specialist

Post Reply