Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Vi caller path on cRio

Hi.

In my cRio application, Id like to read the path of the caller Vi being in host pc.

Any idea?

Thank you

Y_U

0 Kudos
Message 1 of 4
(2,835 Views)

Hey Y_U,

 

This link talks about how to call a VI by reference: https://www.ni.com/en/support/documentation/supplemental/06/calling-a-labview-vi-by-reference.html

-Are you trying to call that file path from your cRIO application? If so, that may be a little more difficult and I would be curious as to why you are doing this.

Thanks,

-BJ

0 Kudos
Message 2 of 4
(2,622 Views)

Hi Brian: I will try to explain.

Due to experimental reasons, I prefer to use my application in development mode and not to build an exe (too many changes always). 

So I have main Vi running on RT, let call it Server.vi. There is a client.vi on host computer reading psp variables and saving readings in tdms file.

From Server.vi I call and run client.vi using "Open Vi Reference"  giving the client.vi path. If I copy my project on another pc, by knowing "programmatically" the Server.vi path on host machine, I dont need to change path of client.vi on host pc.

Thank you

0 Kudos
Message 3 of 4
(2,611 Views)

It sounds like you need something on the host to publish the path. You have a few options there. You could post the path to a shared variable, you could host an FTP/SSH/Webdav/HTTP server on the host, etc

0 Kudos
Message 4 of 4
(2,600 Views)