LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write <Cntrl> Z to the port

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(2,414 Views)

@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



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 2 of 5
(2,410 Views)
Solution
Accepted by topic author Getwonder

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



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 4 of 5
(2,399 Views)

Thank you very much to all of you.

0 Kudos
Message 5 of 5
(2,377 Views)