From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect if RTEXE is running on PXIe-8133 RT Controller

Solved!
Go to solution

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

0 Kudos
Message 1 of 7
(2,724 Views)

If the executable is created with LV, you could try to connect to it using VI Server.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 7
(2,692 Views)

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

0 Kudos
Message 3 of 7
(2,687 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 7
(2,684 Views)

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.

 

0 Kudos
Message 5 of 7
(2,670 Views)
Solution
Accepted by topic author mavlc

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 7
(2,656 Views)

Yes, it works!!! Thank you very much.

0 Kudos
Message 7 of 7
(2,626 Views)