07-19-2019 10:13 AM
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
07-23-2019
08:18 AM
- last edited on
01-09-2025
04:10 PM
by
Content Cleaner
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
07-23-2019 09:04 AM
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
07-23-2019 12:42 PM
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