07-21-2014 01:00 PM
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.
Solved! Go to Solution.
07-21-2014 02:39 PM - edited 07-21-2014 02:39 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-22-2014 08:31 AM
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
07-22-2014 09:00 AM
@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