LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Esc Command to serial Port

I'd like to send an esc command to the serial port in my LV-application. how I can do that ??
I tried to use write to serial port and \1b as string but it not worked.
In a terminal programm it works with the ESC key and with ALT+027.
 
0 Kudos
Message 1 of 4
(4,677 Views)
The terminal program may be adding a carriage.  You may have to Enable Terminal Charavter when configuring serial port
0 Kudos
Message 2 of 4
(4,675 Views)
Hi,
 
You have to be careful with the kind of datas that you send...
 
You told that you sent \1b or something like this, but did you sent this in Ascii mode or \ mode... It's very different for the device...
 
Maybe you have to write as a constant in \ mode the code \1b, and after that convert this string type to ascii mode using the roght button on the constant and then send the character to the device
0 Kudos
Message 3 of 4
(4,669 Views)
Thank's alot for your help.
Meanwhile I found out that I can put in the string the ALT+027  (It shows just a square box) for ESC and it works..
I will try also your solution
thnaks again
0 Kudos
Message 4 of 4
(4,658 Views)