ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send Ctrl-B command using serial?

Hi,
I am using a stepper motor controller that requires the STX (Start of Text) to be Ctrl-B. I have been using HyperTerminal for testing purposes and now I would like to use LV. In HyperTerminal I send commands in the following format: [STX]Command[LFCR]. For example if I want to read the positon of the encoder I must type: Ctrl-B RDP1/0 Enter. My question is how do I send the Ctrl-B command in LV?

Thanks


0 Kudos
Message 1 of 3
(6,159 Views)
The STX cahracter is hex 02 so in order to send this, right click on your string  control/constant and select Hex Display and enter the value 02. Or, right click and select '\' Code Display and enter \02.
Message 2 of 3
(6,153 Views)
Thanks that works.
0 Kudos
Message 3 of 3
(6,130 Views)