06-12-2014 04:18 AM
Hello,
i need to know from my PC if some RT executable is running on remote RT machine (PXIe-8133).
Is there any way how to detect in LabVIEW if some application is running on Real-time and possibly which one?
Thanks a lot.
Martin
Solved! Go to Solution.
06-12-2014 09:08 AM
If the executable is created with LV, you could try to connect to it using VI Server.
Mike...
06-12-2014 09:19 AM
Hello Mike,
thanks for a reply. Yes, rtexe was built in LV2013.
How can I programmatically do it?
I tried to use Open Application Reference and then Open VI Reference, where i placed rtexe path instead of vi path, however I got error 1059: Unexpected file type.
Which function should I use to connect rtexe using VI Server?
Thank You very much.
Martin
06-12-2014 10:49 AM
If you use the open VI reference, you have to specify the name of a VI that is currently loaded in the running instance you referenced - like "main.vi" or something like that.
Mike...
06-13-2014 03:33 AM
Thank You very much for your help.
I think that i know what You mean but it isnt still working properly.
I got this path by calling Current VI's Path in built RTEXE on RT target.
I looks like "c:\RT EXE Folder\Main.rtexe\Main.vi".
However when I tried to connect to this using first Open Application Reference with machine IP and port number = 3363 and then Open VI Reference with just created application reference and the vi path above, I am still getting Error 7: File not found.
I think that there has to be something wrong with this vi path because when I tried the same approach on RT target (without Open Application Reference) I got the same error 7.
But the path I just copy from Network Shared Variable therefore any typo is impropable.
Do I miss something?
Thank You very much.
06-13-2014 08:06 AM
The big point is that calling a remote VI in this way, you are assuming that the VI is already in memory. In that case you don't have to give a complete path, just the name of the VI.
Mike...
06-16-2014 07:00 AM
Yes, it works!!! Thank you very much.