niHSDIO Wait Until Done

NI Digital Waveform Generator/Analyzer

niHSDIO Wait Until Done

Pauses execution of your program until the dynamic data operation is completed or the VI returns a timeout error. niHSDIO Wait Until Done is a blocking VI that periodically checks the operation status. This VI returns control to the calling program if the operation completes successfully or if an error occurs (including a timeout error).

Use this VI for finite data operations that you expect to complete within a certain time.

instrument handle identifies your instrument session. instrument handle was obtained from the niHSDIO Init Acquisition Session VI or the niHSDIO Init Generation Session VI.
max time milliseconds specifies the number of milliseconds to allow the function to complete before returning. If the specified time elapses before the data operation has completed, the function returns a timeout error.

Setting a value of 0 causes the function to return immediately. This setting can be useful to manually poll for hardware errors after a data operation has been initiated. If no other error has occurred and the data operation is still not complete, the function returns a timeout error.

Setting a value of –1 causes the function to never timeout. Be careful not to use this value during a continuous operation, as it never returns unless a hardware error occurs. Perform a manual device reset from Measurement & Automation Explorer if you get stuck in this state or use the niHSDIO Reset VI or niHSDIO Reset Device from the other session of the device.

error in describes error conditions that occur before this VI or function runs.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.
source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.
instrument handle out passes a reference to your instrument session to the next VI. instrument handle was obtained from the niHSDIO Init Acquisition Session VI or the niHSDIO Init Generation Session VI.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.