Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How to "Call by Reference" when running in RealTime (path does not work)

I have a .vi which has been "uploaded" to a PXI chassis to run in RealTime.

I have this feeling that one of my sub-vi's are not functioning properly. I have a sub-vi which "Opens a VI reference" to a .vi located on my Windows harddrive. But, when everything is setup in Realtime, it cannot locate this .vi anymore.

I need to load a .vi dynamicaly, multiple times. Is there another way around it?
0 Kudos
Message 1 of 3
(3,164 Views)
Hello,

It is possible to run a program located on the host. You will need to specify the IP address of the machine that has the file when you set up the open VI reference. You will then use the filepath for that machine.

Thanks

Danny G
Applications Engineer
National Instruments
Message 2 of 3
(3,143 Views)
Yes, that worked well. I had gotten it to work, but had not replied to this post to indicate my success. My actual problem had to do with me forcing a "close front panel". I had read in some other posts that you cannot modify front panels or other user-activity type of options when running real time. By removing the "FP Close" function, the call to the specific .vi worked great (and with the addition of the IP address for the opening of a local reference). Thanks again for all the input.
0 Kudos
Message 3 of 3
(3,141 Views)