LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you send <esc> char in a serial string in LabVIEW?

A customer of mine had the following request:

 

Scott,

We have run into a bit of a problem and would like to bounce this off you.  The new SW command set for our product test needs to have the escape <esc> char sent to it.  When using a console program like terra term or hyper term it works but I can't seem to figure out the correct way to do this in LabVIEW.  

1> do you know if this can be done?
2> do you have to send the hex equivalent value <b1> to have this work?

 

Thanks

Scott Rogers
Sr. DSM
Western NY
0 Kudos
Message 1 of 5
(6,375 Views)

Yes, set the character constant to \codes and send a \27 (since it is ascii 27 in decimal for escape).

 

Or set the constant to hex display and send 1B (it is not B1 like you said)

 

 

0 Kudos
Message 2 of 5
(6,373 Views)

Let me correct that.

 

It is decimal 27 which is hex 1B.

 

But you would send it as \1B in \ codes or 1B in hex display.

Message 3 of 5
(6,366 Views)

for me the string command looked like    \x1b

0 Kudos
Message 4 of 5
(4,353 Views)

What string command?

 

This is a 9 year old thread.  Please put your reply in some sort of context.

0 Kudos
Message 5 of 5
(4,346 Views)