07-31-2017 01:53 PM
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
07-31-2017 01:58 PM
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?
07-31-2017 02:04 PM
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
07-31-2017 02:09 PM - edited 07-31-2017 02:11 PM
Searching the forums, I found this thread.
http://forums.ni.com/t5/LabVIEW/during-cmd-prompt-need-to-send-control-c-to-break/m-p/962194
08-01-2017 07:27 AM
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
08-01-2017 08:39 AM
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,