cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

Control+C Command to Execution Sytem

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

 

Descargar todos
0 kudos
Mensaje 1 de 15
4.415 Vistas

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 kudos
Mensaje 2 de 15
4.403 Vistas

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

 

0 kudos
Mensaje 3 de 15
4.365 Vistas

Hello Sir,

Here is the error Image where it is occuring

0 kudos
Mensaje 4 de 15
4.392 Vistas

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

0 kudos
Mensaje 5 de 15
4.389 Vistas

Ctrl+C is the command to stop the running python code

0 kudos
Mensaje 6 de 15
4.385 Vistas

Hi Gowtham,

 

Ctrl+C is the command to stop the running python code

In your image you are sending the command "ctrl-c"…

 

I still think "ctrl-c" is not a valid command for the Windows command shell!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 kudos
Mensaje 7 de 15
4.380 Vistas

Hello Sir,

K sir can u suggest me which is the better way or crct command

0 kudos
Mensaje 8 de 15
4.373 Vistas

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 kudos
Mensaje 9 de 15
4.367 Vistas

Hello Sir,

Sorry for using short key words

I was asking what is the correct command or string to send system execution

 

0 kudos
Mensaje 10 de 15
4.353 Vistas