LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending an ESC code using the serial port

I have a motor control aplication that requires sending an ESC character using the serial port. LabView has several built-in functions (end of line, line return, etc.) but I just do not know how to send this particular code using the serial port. Any ideas?
0 Kudos
Message 1 of 3
(2,874 Views)

The hex code for ESC character is 1b, Try writing it in a 8 bit unsigned number and then change that byte to charachter using labview function "byte Array to string". In this way you can pass this charachter.

0 Kudos
Message 2 of 3
(2,868 Views)

agomez,

 

"esc" is the same as a hex "1B".  Place a string constant on your block diagram.  Right click on it and select "Hex Display".  Now enter a "1B" and wire that to a VISA Write.

0 Kudos
Message 3 of 3
(2,863 Views)