06-27-2019 10:00 AM
Hi to all.
I want to ask, how can I run a VI via ethernet on a remote computer?
I built the couple VIs and did not reach the goal. What did I do wrong? The problem is not connected with firewall or network settings.
I had tryed to search a solution of the forum, but have not found appropriate to me.
06-28-2019 03:06 AM
06-28-2019 03:36 AM
Are you trying to use "Open VI Reference" to open a VI present ONLY on the remote machine?
Does that even work? I thought the VI needed to be loaded in LV memory (on the remote machine) to be able to call it remotely......
06-28-2019 04:01 AM
Do you want the remote computer to run the VI or just run it _from_ that computer?
In the latter case you can just map a network folder and run the VI, in the former you'll basically need a program on that computer that can recieve and execute the order to run a VI. It could listen to a Network shared variable or be a web service of some kind.
/Y
06-28-2019 04:40 AM - edited 06-28-2019 04:50 AM
The first problem is that the VI Server does use TCP/IP to communicate. This means that the name resolution must come from DNS and that your NetBIOS naming scheme doesn't really apply here. So you need to have a DNS entry in your DNS server that resolves your Machine2 name to the actual IP address or use the correct IP address instead, rather than trying to use (part) of the NetBIOS name of that machine.
The next step was already mentioned: you need to have at least the LabVIEW runtime engine installed on the remote machine and it needs to be of the same version than in what the VI was stored (since around LabVIEW 2018 it can be also a newer runtime engine).
Last but not least, there needs to be a LabVIEW process running on the remote machine that can receive the VI server command you try to send. So you need to make a minimal VI, build it into an executable, configure it to listen on a TCP/IP port for VI server connections, optionally configure the list of IP addresses allowed to connect to it, the VIs a remote caller can access etc. etc. This is done most easily by configuring these things in your LabVIEW configuration and then copying the resulting settings from your LabVIEW.ini file into yourexe.ini file. Last but not least you need to make sure it is running on the remote machine before you try to connect to it.
06-28-2019 01:45 PM
Yes to all of the above and adding...
When you build the exe the settings set in the Project >>> Tools >>> Options are used for the built exe.
See that screen and look at the help for assistance on what is exposed access list port number etc.
Ben