DAQmxWaitUntilTaskDone
int32 DAQmxWaitUntilTaskDone (TaskHandle taskHandle, float64 timeToWait);
Purpose
Waits for the measurement or generation to complete. Use this function to ensure that the specified operation is complete before you stop the task.
Parameters
Input | ||
Name | Type | Description |
---|---|---|
taskHandle | TaskHandle | The task used in this function. |
timeToWait | float64 | The maximum amount of time, in seconds, to wait for the measurement or generation to complete. The function returns an error if the time elapses before the measurement or generation is complete. A value of -1 (DAQmx_Val_WaitInfinitely) means to wait indefinitely. If you set timeToWait to 0, the function checks once and returns an error if the measurement or generation is not done. |
Return Value
Name | Type | Description |
---|---|---|
status | int32 | The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error. |