07-26-2019 02:30 AM
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?
Solved! Go to Solution.
07-26-2019 02:37 AM - edited 07-26-2019 02:39 AM
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.)
07-26-2019 03:39 AM
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!