Indicate if hardware is acquiring or generating data
The read-only IsLogging property indicates if the hardware is actively
acquiring or generating data.
Tip
IsRunning indicates the session has started, but the hardware
might not be acquiring or generating data. It is still true while the hardware is
waiting for a trigger, and while transferring data in the process of stopping.
IsLogging indicates the hardware is actively acquiring or
generating data.
IsDone indicates the session object has completed its
operation, including all necessary transfer of data.
trueValue is logical 1 (true) if the device is acquiring or
generating data.
falseValue is logical 0 (false) if the device is not
acquiring or generating data.
Create and start a session.
s = daq.createSession('ni'); addAnalogOutputChannel(s,'cDAQ1Mod2','ao1','Voltage'); s.queueOutputData(linspace(-1,1,1000)'); startBackground(s); s.IsRunning
ans =
1The session is running, so check for device logging.
s.IsLogging
ans =
0This result might indicate that the device is waiting for an external trigger. After triggering, wait until logging is complete.
wait(s) s.IsDone
ans =
1