Passing Numeric Data Using VISA Write

Updated Jan 19, 2023

Reported In


  • LabVIEW Base
  • LabVIEW Full
  • LabVIEW Professional



Issue Details

How do I pass 8-bit numeric data out to the serial port using the VISA write VI, which accepts only string data as the input?


Use the Type Cast function to convert the 8-bit numeric value into its equivalent ASCII character. The character can then be wired to the Write Buffer input of the VISA write VI. The actual data passed out through the serial port would be the ASCII value of the character. The code example below demonstrates how to perform this action.