IsDone

Indicate if operation is complete

Description

When working with the session-based interface, the read-only IsDone property indicates if the session operation is complete.

    Tip   IsDone indicates if the session object has completed acquiring or generating data. IsRunning indicates if the operation is in progress, but the hardware may not be acquiring or generating data. IsLogging indicates that the hardware is acquiring or generating data.

Values

true

Value is true if the operation is complete.

false

Value is false if the operation is not complete.

Examples

Create an acquisition session and see if the operation is complete:

s = daq.createSession('ni');
addAnalogOutputChannel(s,'cDAQ1Mod2', 'ao1', 'vVoltage');
s.queueOutputData(linspace(-1, 1, 1000)');
s.startBackground();
s.IsDone
ans =

     0

Issue a wait and see if the operation is complete:

wait(s)
s.IsDone
ans =

     1
Was this topic helpful?