Waits for the measurement or generation to complete, regardless of the amount of time needed, and returns if it has completed execution.

Syntax

Namespace: NationalInstruments.DAQmx

public void WaitUntilDone()

Remarks

WaitUntilDone waits for the task to finish acquiring or generating the number of samples per channel specified on the Timing class. WaitUntilDone does not wait for pending asynchronous operations to complete. Use the methods and properties on IAsyncResult to verify that asynchronous reads and writes are complete.

Returns

true if the task has completed execution.

Exceptions

TypeDescription
NationalInstruments.DAQmx.DaqException

The NI-DAQmx driver returned an error.