Table Of Contents

Set Buffer Size (G Dataflow)

Version:
    Last Modified: March 3, 2017

    Sets the size of the I/O buffer.

    Programming Patterns

    Run Configure Serial Port first if you are setting the size of a serial port buffer.

    connector_pane_image
    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

    buffer

    The buffer for which you want to set the size.

    Name Value Description
    Receive Buffer 16 Sets the size for the Receive buffer only.
    Transmit Buffer 32 Sets the size for the Transmit buffer only.
    Receive and Transmit Buffers 48 Sets the size for both the Receive and Transmit buffers.

    Default: Receive Buffer

    datatype_icon

    size

    The size of the buffer in bytes.

    Set the buffer size slightly higher than the amount of data you expect to transmit or receive. If you do not call this function, the buffer size depends on both VISA and the operating system configuration.

    Default: 4096

    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.

    User-Defined Buffer Sizes

    Not all serial drivers support user-defined buffer sizes, so some implementations of VISA might not be able to perform this operation. If an application requires a specific buffer size for performance reasons and the VISA implementation cannot guarantee that size, use some form of handshaking to prevent overflow conditions.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics