Table Of Contents

Wait Until Done (G Dataflow)

Version:
    Last Modified: September 27, 2017

    Pauses execution of your program until the dynamic data operation is completed or the node returns a timeout error.

    The Wait Until Done node periodically checks the operation status and returns control to the calling program if the operation completes successfully or if an error occurs (including a timeout error).

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

    connector_pane_image
    datatype_icon

    session in

    Instrument session obtained from the Initialize Acquisition Session node, the Initialize Generation Session node, or the Initialize External Calibration node.

    datatype_icon

    maximum time (ms)

    The time, in milliseconds, allotted for the node to complete before NI-HSDIO returns a timeout error.

    If you set the value to -1, the node never times out. If you set this parameter to 0, the node returns immediately with up to the number of samples specified in samples to read.

    Setting a value of 0 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 node returns a timeout error.

    When setting a value of -1, 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 cannot exit this state or use the niHSDIO Reset or niHSDIO Reset Device node from the other session of the device.

    datatype_icon

    error in

    Error conditions that occur before this node runs.

    The node responds to this input according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    Default: No error

    datatype_icon

    session out

    Handle that identifies the session in all subsequent node calls.

    The session out parameter is obtained from the Initialize Acquisition Session node or the Initialize Generation Session node.

    datatype_icon

    error out

    Error information.

    The node produces this output according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported

    Web Server: Not supported in VIs that run in a web application


    Recently Viewed Topics