LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send "Enter" keystroke via serial connection?

Solved!
Go to solution

Good morning everyone, i am trying to send an Enter keystroke so that my device will enter the test mode, i found that in hexadecimal Enter is 0xD0A, i am trying to write it (via visa write) but it's not working for some reason, any idea how resolve this?

0 Kudos
Message 1 of 3
(2,200 Views)
Solution
Accepted by rozakos

Hi rozakos,

 

i found that in hexadecimal Enter is 0xD0A,

"Enter" usually consists of 0x0D (CarriageReturn) and 0x0A (LineFeed).

 

i am trying to write it (via visa write) but it's not working for some reason, any idea how resolve this?

General hint: make the "style indicator" visible for string constants (as well as for integer numeric values) whenever you don't use the default display mode.

Set your string constant to "hex display" mode, then type "0d0a" - or use the CR and LF string constants instead…

 

On your image: do you really do the Read before the Write operation? Usually it's the other way around… (AutoCleanup will help, too. Using the correct datatypes to avoid coercion dots also.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,187 Views)

I wasn't aware of the CR and LF constants, it worked thank you very much, i also put the write before the read, that was a good idea too.

Have a nice day!

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