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.
| |||||||
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.
|