IsDone

Indicate if session operation is complete

Description

The read-only IsDone property indicates that the session operation is complete.

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.

Values

true

Value is logical 1 (true) when the session operation is complete.

false

Value is logical 0 (false) while the session 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

See Also

Properties

Functions