06-25-2019 02:44 AM
Hello All,
Hope you all doing well.
Actually i have written the python code which launches labview exe file in which it will execute the exe and stops the exe after the Test completes.
Inspite of opening the python code directly i have used the vi which uses system execution vi for which i provide necessary commands to run the python code and it is running properly if i want to close the running python(background) i will provide the Ctrl+C from keyboard in the prompt which is opened.
But i want this in a different way i.e if i press the any Button and it should send the Ctrl+C to the System Execution vi i tried doing this but it is showing error i have attached the error image and the Vi can any one please help me with this
Thanks in Advance
06-25-2019 02:53 AM - edited 06-25-2019 02:56 AM
Hi Gowtham,
it doesn't make a lot of sense when you show an image with hiding the function where that error (probably) occurs…
I don't think "ctrl-c" is a valid Windows shell command.
I also think a polling loop should not run as fast as possible…
Why is there a Select function when the input is ALWAYS TRUE?
06-25-2019 03:30 AM
Hello All,
Hope you all doing well.
Actually i have written the python code which launches labview exe file in which it will execute the exe and stops the exe after the Test completes.
Inspite of opening the python code directly i have used the vi which uses system execution vi for which i provide necessary commands to run the python code and it is running properly if i want to close the running python(background) i will provide the Ctrl+C from keyboard in the prompt which is opened.
But i want this in a different way i.e if i press the any Button and it should send the Ctrl+C to the System Execution vi i tried doing this but it is showing error i have attached the error image and the Vi can any one please help me with this
Thanks in Advance
06-25-2019 03:34 AM
Hello Sir,
Here is the error Image where it is occuring
06-25-2019 03:36 AM
Hello Sir,
Case selection is because when I press that button it will send TRUE at that condition it should send Ctrl+C to the CMD Prompt
06-25-2019 03:41 AM
Ctrl+C is the command to stop the running python code
06-25-2019 03:45 AM
06-25-2019 03:47 AM
Hello Sir,
K sir can u suggest me which is the better way or crct command
06-25-2019 03:53 AM
Hi Gowtham,
K sir can u suggest me
What is "K" and "u"? See this!
which is the better way or crct command
What is a "crct command"?
When you want to simulate a keypress event then you should simulate that keypress events!
Search this forum for related topics, I recently read some discussions about that very same topic…
06-25-2019 03:56 AM
Hello Sir,
Sorry for using short key words
I was asking what is the correct command or string to send system execution