NI-DAQmx .NET Framework 4.0 API Reference

Task.WaitUntilDone Method

  • Updated2023-02-21
  • 1 minute(s) read
Task.WaitUntilDone Method
Waits for the measurement or generation to complete, regardless of the amount of time needed, and returns if it has completed execution.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302

Syntax

public void WaitUntilDone()
Public Sub WaitUntilDone

Return Value

Type: 
if the task has completed execution.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

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.

See Also

Log in to get a better experience