Table Of Contents

Configure Serial Port (G Dataflow)

Version:
    Last Modified: March 3, 2017

    Initializes the specified serial port to the specified settings.

    connector_pane_image
    datatype_icon

    enable termination char

    A Boolean value that prepares the serial device to recognize a termination character.

    True Sets the VI_ATTR_ASRL_END_IN attribute to recognize the termination char.
    False Sets the VI_ATTR_ASRL_END_IN attribute to 0 (None) and the serial device does not recognize the termination char.

    Default: True

    datatype_icon

    termination char

    The character that terminates the read operation.

    The read operation terminates when the termination char is read from the serial device. 0xA is the hex equivalent of a linefeed character (\n). Change the termination char to 0xD for message strings that terminate with a carriage return (\r).

    Default: 0xA

    datatype_icon

    timeout

    Time, in milliseconds, for the write and read operations.

    Default: 10000

    datatype_icon

    session in

    The resource to be used.

    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

    baud rate

    The rate of transmission.

    Default: 9600

    datatype_icon

    data bits

    The number of bits in the incoming data.

    The value of data bits is between five and eight.

    Default: 8

    datatype_icon

    parity

    Parity used for every frame to be transmitted or received.

    Name Value Description
    None 0 No parity
    Odd 1 Odd parity
    Even 2 Even parity
    Mark 3 Mark parity
    Space 4 Space parity

    Default: None

    datatype_icon

    stop bits

    Number of stop bits used to indicate the end of a frame.

    Name Value Description
    1.0 10 1 stop bit
    1.5 15 1.5 stop bits
    2.0 20 2 stop bits

    Default: 1.0

    datatype_icon

    flow control

    The type of control used by the transfer mechanism.

    Name Value Description
    None 0 The transfer mechanism does not use flow control. Buffers on both sides of the connection are assumed to be large enough to hold all data transferred.
    XON/XOFF 1 The transfer mechanism uses the XON and XOFF characters to perform flow control. The transfer mechanism controls input flow by sending XOFF when the receive buffer is nearly full, and it controls the output flow by suspending transmission when XOFF is received.
    RTS/CTS 2 The transfer mechanism uses the RTS output signal and the CTS input signal to perform flow control. The transfer mechanism controls input flow by unasserting the RTS signal when the receive buffer is nearly full, and it controls output flow by suspending the transmission when the CTS signal is unasserted.
    XON/XOFF and RTS/CTS 3 The transfer mechanism uses the XON and XOFF characters and the RTS output signal and CTS input signal to perform flow control. The transfer mechanism controls input flow by sending XOFF and unasserting the RTS signal when the receive buffer is nearly full, and it controls the output flow by suspending transmission when XOFF is received and the CTS is unasserted.
    DTR/DSR 4 The transfer mechanism uses the DTR output signal and the DSR input signal to perform flow control. The transfer mechanism controls input flow by unasserting the DTR signal when the receive buffer is nearly full, and it controls output flow by suspending the transmission when the DSR signal is unasserted.
    XON/XOFF and DTR/DSR 5 The transfer mechanism uses the XON and XOFF characters and the DTR output signal and DSR input signal to perform flow control. The transfer mechanism controls input flow by sending XOFF and unasserting the DTR signal when the receive buffer is nearly full, and it controls the output flow by suspending transmission when XOFF is received and the DSR signal is unasserted.

    Default: None

    datatype_icon

    session out

    The resource to which a VISA session is opened.

    This output also includes the class for the session, which matches that of session in.

    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


    Recently Viewed Topics