LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

determine if exe is running

Solved!
Go to solution

I Have a UI which will load an EXE to rt target, change the INI to start the EXE upon start up, and then reboot the RT target.

 

However if the EXE is already loaded and running I do not want to perform this task as it takes aprox 60-90 seconds to initialize.

 

I have tried the attachment to determine if the EXE is running, but receive an error 1124.

 

 

0 Kudos
Message 1 of 4
(2,586 Views)
Solution
Accepted by topic author teslaaaa

You are trying to open a VI reference, and you are not providing a VI in the path, you are providing an EXE.  Provide the path to your top level VI.  something like abs_1_0.rtexe\Main.vi  I haven't done this for RT Vis but this is how it has to be done for normal ones.

0 Kudos
Message 2 of 4
(2,559 Views)

You would need to create a source distribution if you want to use VI Server to access the status of a VI on your RT controller, but that would mean you can't use a startup executable. Why don't you have your RT EXE broadcast a UDP heartbeat message or update a shared variable with a timestamp so that your host can listen and determine if the RT EXE is running?

http://digital.ni.com/public.nsf/allkb/A7DBA869C000B5AE862570B2007C4170?OpenDocument

https://decibel.ni.com/content/docs/DOC-19507

Rob B
FlexRIO Product Manager
0 Kudos
Message 3 of 4
(2,512 Views)

 


@BauerPower wrote:

You would need to create a source distribution if you want to use VI Server to access the status of a VI on your RT controller, but that would mean you can't use a startup executable. Why don't you have your RT EXE broadcast a UDP heartbeat message or update a shared variable with a timestamp so that your host can listen and determine if the RT EXE is running?

http://digital.ni.com/public.nsf/allkb/A7DBA869C000B5AE862570B2007C4170?OpenDocument

https://decibel.ni.com/content/docs/DOC-19507


Good point, will do, thanks for pointing in the right direction.

 

Cody

0 Kudos
Message 4 of 4
(2,501 Views)