Writing Control Characters to a Serial Port in LabVIEWHardware: PXI/CompactPCI>>Controllers
Problem: I need to send a string to a serial device that includes a control character such as "Ctrl+B", but LabVIEW will not display anything in the write buffer when I enter Ctrl+B on the keyboard. How do I write control characters to a serial port in LabVIEW? Solution: To write control characters to a serial device, you have to enter the hex value of the control character into the write buffer when the write buffer is in hex display mode. For example, if you wanted to send "Ctrl+B" to a serial port, you would enter "02" into the write buffer when it is in hex display mode. Scroll down to see a table of hex values for all of the possible control characters.
An ASCII table for other characters can be found in the Related Links section at the end of this document. Related Links: KnowledgeBase 43FDH92W: Send or Receive Binary / Hex Data Using NI-VISA in LabVIEW External Link: ASCII Table Attachments:
Report Date: 10/04/2004 Last Updated: 01/21/2009 Document ID: 3E3ASSXR |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
