VI_ATTR_ASRL_END_OUT

NI-VISA

VI_ATTR_ASRL_END_OUT

Resource Classes

Serial INSTR

Attribute Information

Access Privilege Data Type Range Default

Read/Write
Local

ViUInt16

VI_ASRL_END_NONE (0)
VI_ASRL_END_LAST_BIT (1)
VI_ASRL_END_TERMCHAR (2)
VI_ASRL_END_BREAK (3)

VI_ASRL_END_NONE

Description

VI_ATTR_ASRL_END_OUT indicates the method used to terminate write operations.

  • If it is set to VI_ASRL_END_NONE, the write will transmit the exact contents of the user buffer, without modifying it and without appending anything to the data being written.
  • If it is set to VI_ASRL_END_LAST_BIT, and VI_ATTR_SEND_END_EN is set to VI_TRUE, the write will send all but the last character with the highest bit clear, then transmit the last character with the highest bit set. For example, if VI_ATTR_ASRL_DATA_BITS is set to 8, the write will clear the eighth bit for all but the last character, then transmit the last character with the eighth bit set. If VI_ATTR_SEND_END_EN is set to VI_FALSE, the write will send all the characters with the highest bit clear.
  • If it is set to VI_ASRL_END_TERMCHAR, and VI_ATTR_SEND_END_EN is set to VI_TRUE, the write will send the character in VI_ATTR_TERMCHAR after the data being transmitted. If VI_ATTR_SEND_END_EN is set to VI_FALSE, the write will transmit the exact contents of the user buffer, without modifying it and without appending anything to the data being written.
  • If it is set to VI_ASRL_END_BREAK, and VI_ATTR_SEND_END_EN is set to VI_TRUE, the write will transmit a break after all the characters for the write have been sent. If VI_ATTR_SEND_END_EN is set to VI_FALSE, the write will transmit the exact contents of the user buffer, without modifying it and without appending anything to the data being written.


Related Topics

INSTR Resource

VI_ATTR_ASRL_END_IN

VI_ATTR_TERMCHAR