12-03-2008 09:54 AM
I would like to call a vi on my windows host computer from a cRIO vi. I would like to understand my options here:
Can I do a remote call with the pathname and/or vi string name if it is in memory? What is the format of the name?
Does it include the project name as well? Thus far I have tried every permutation I can think of but cannot get
a good vi reference. Also, is it possible to open up a remote reference to a reentrant vi that is currently in memory?
Solved! Go to Solution.
12-03-2008 10:20 AM
You are correct- you can use the pathname or, if the VI is in memory, the name of the VI. The trick is that, if the VI is loaded into memory from a target in the project (such as 'My Computer'), then you need to enable VI server explicitly for that target. This will be a separate VI server from the main application instance.
It is possible to open a reference to a reentrant VI but you will have to use the name of that particular clone. The 'Clone Name' property will give this to you. Usually it is just 'VI name:n' where 'n' is the number of the clone.
I hope that helps,
Nathan
12-03-2008 11:03 AM
Yes, I have explicitly enabled VI Server on my project target but I still am not able to open up a remote VI Reference. I have also tried to get the APP.ExportedVIs
array from the remote application reference but it is alway empty. Could you submit an example formated vi name string within a project on My Computer. Perhaps I
am not opening up a application reference to the correct project target, How would this be done? Currently I am just using the IP address of the Host machine.
12-03-2008 11:47 AM - edited 12-03-2008 11:49 AM
The VI name string is just the name of the VI. You have to ask for it from the correct VI server instance.
This is the VI that runs on my CRIO:
Notice that I had to specify the port 3364 instead of the default 3363. Port 3364 is what I configured the VI server on my 'My Computer' to listen on.
Nathan