VISA Set I/O Buffer Size Function

Sets the size of the I/O buffer. Run the VISA Configure Serial Port VI first if you are setting the size of a serial port buffer.

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


icon

Inputs/Outputs

  • cvsrn.png VISA resource name

    VISA resource name specifies the resource to be opened. The VISA resource name control also specifies the session and class.

  • cu16.png mask (16)

    mask designates which buffer size to set.

    16I/O Receive Buffer
    32I/O Transmit Buffer
    48I/O Receive and Transmit Buffer
  • cu32.png size (4096)

    size designates the size of the I/O buffer in bytes. Set size slightly higher than the amount of data you expect to transmit or receive. If you call this function without specifying a buffer size, this function sets the buffer size to 4096 bytes. If you do not call this function, the buffer size depends on both VISA and the operating system configuration.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • ivsrn.png VISA resource name out

    VISA resource name out is a copy of the VISA resource name that VISA functions return.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Instrument IO\Serial\Continuous Serial Write and Read.vi