Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

sending esc key command

I have a Denver Instruments scale, equipped with RS-232 comms. The manual says to make the following keystrokes, in order to acquire a reading: ESC P. This works over HyperTerminal. I tried to concatenate a string within LabView to write to the scale, only I am not sure if anything gets concatenated when I press the ESC key. I know that other keystrokes are selectable within the strings pallette, but I did not see the ESC key. 
0 Kudos
Message 1 of 4
(7,712 Views)
They're referring to the Esc character, ASCII code 27 (decimal), or 1B (hex), not the Escape key on your keyboard (though they generate the same key code). To prepend the Esc character just
  1. Create a string constant
  2. Right-click on the string constant and select Hex Display from the popup menu.
  3. Enter the characters 1B in the string. This is now an Esc string constant that you can prepend to your commands.
Message 2 of 4
(7,701 Views)
Thank you. That is, by and far, the most exacting, succinct and accurate help that I have ever recieved from this discussion forum.
0 Kudos
Message 3 of 4
(7,699 Views)
Well, I'll take a compliment anytime it's given. Smiley Very Happy

This question wasn't difficult to answer from my standpoint, but only because I've been using LabVIEW for a reasonably long time. The other questions you posted were not so simple to answer, for various reasons. Hope you don't feel like you've been receiving bad advice. Based on the responses given to your other posts the folks trying to help were doing their best, if possible. Smiley Wink
0 Kudos
Message 4 of 4
(7,695 Views)