05-25-2011 03:26 AM
For an operation i want to write <Cntrl> Z on the port. Kindly tell me what should i write.
I have send ^Z but it's not working.
Thanks
Solved! Go to Solution.
05-25-2011 03:53 AM
@Intelligent wrote:
For an operation i want to write <Cntrl> Z on the port. Kindly tell me what should i write.
I have send ^Z but it's not working.
Thanks
You can calculate the Ctrl code using this formula
(ASCII_code(x)-ASCII_code(A))+1, The ASCII code for A in decimal numbers is 65.
Some examples
<CTRL>A= (65-65)+1=1
<CTRL>C= (67-65)+1=3
<CTRL>Z= (90-65)+1=26
05-25-2011 04:21 AM
05-25-2011 04:38 AM
Also take a look here
http://zone.ni.com/reference/en-XX/help/371361B-01/lvhowto/backslash_codes_display/
Set your string in '\' Codes Display mode. 26 is 1A in hex then typing in hello\1A will give you a string equal to hello<CTRL>Z. A common mistake I have done several times is to type in hello\1A and NOT using the '\' Codes Display mode. That has costed several hours of debugging. So be 100% the string control/constant is in '\' Codes Display mode
05-25-2011 09:19 AM
Thank you very much to all of you.