Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

Was this topic helpful?