From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to propram Control-C

Hi, Only the keyboard, I both press "Control-C" at the same time to execute the task. How do I program this task in Labview, please? Thanks, Phong

 

0 Kudos
Message 1 of 6
(4,493 Views)

What task?  What are you really trying do do?

 

Ctrl-C is typically the keyboard shortcut for Copy.  So what are you trying to do with it?

0 Kudos
Message 2 of 6
(4,488 Views)

Hi, I'm trying to exit from a console terminal after finishing executing some commands. I have to both press "ctrl-c" to exit the task, not the copy. I don't know how to do this in Labview

0 Kudos
Message 3 of 6
(4,477 Views)
0 Kudos
Message 4 of 6
(4,471 Views)

Are you sending characters directly to a program that is "listening" for ^C and directly doing something when it gets this character?  The Control Characters are, in fact, legitimate Ascii code.  If we say that A has the value 1 and Z has the value 26, then the capital letters "A" to "Z" are 64 (decimal, or 40 Hex) + Letter Value, lower case "a" to "z" are 96 (or 60 Hex) + Letter Value, and ^A to ^Z are simply Letter Value.  Thus ^C has the u8 value of 3.  Other Control Values you may encounter are <CR>, carriage return, \r = ^M = 13 (Hex), <LF>, line feed, \n = ^J  = 10 (Hex), <EOT>, End of Transmission = ^D = 4 (Hex), and <HT>, <tab>, horizontal tab = ^I = 9 (Hex).

 

Bob Schor 

0 Kudos
Message 5 of 6
(4,379 Views)

Hello,

 

This thread might be what you are looking for: http://forums.ni.com/t5/LabVIEW/programmatic-keyboard-events/m-p/887997?requireLogin=False

 

Regards,

CH
Applications Engineering
National Instruments
http://www.ni.com/en-us/support.html
0 Kudos
Message 6 of 6
(4,365 Views)