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.
I have a program that resides on a PC that is linked to the FP system via network. I have a VI on the FP runtime system that I need to call from the program on the PC. This works fine in development mode, but does not work in the executable. I have the VI in the root path on the FP system and call it using the path \\ni-rt\my.vi (I have tried many variations). The error I get back is that the VI is not in memory or cannot be found.
You do not have to make the RT program an executable, but you will need to make sure that it has all of it's dependencies so that it can load and run from disk. An easy way of making sure that you have all of the dependencies is to build it as a 'Source Distribution'. Then you can FTP that to the target. From the host you then call 'Open Application Reference' and provide the IP of the RT target to connect to LabVIEW on the target. Then you should call 'Open VI Reference' and pass it the absolute path to your top level VI on disk (i.e. "c:\my app\top level.vi").
If that doesn't work, I'd suggest providing a simple example project and VIs. From that I'm sure we could get it to work.