LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application reference to local/remote machine

I am trying to create a VI that runs a VI in a remote machine using application reference. I first tried to open a VI in the local machine by leaving the machine name terminal blank. Although this works, when I connect a string constant with the actual IP address of my machine, I get 'Error code 63'. I would appreciate any help. (Even TCP open connection gives the same error but Data Socket read works)

Thanks
Sheela
0 Kudos
Message 1 of 13
(3,715 Views)
Is a properly configured VI Server runs on the remote machine (protocol, IP acces list, exported Vi's list)?
0 Kudos
Message 2 of 13
(3,715 Views)
Not sure if I understood your answer. Can you please explain?

Thanks
0 Kudos
Message 3 of 13
(3,715 Views)
In order to call a VI on a remote machine you must properly configure and run a VI Server on that machine (this is not done by default). To do so, in the Menu go: Tools->Options and look for "VI Server:configuration", "VI Server: access TCP/IP" and "VI Server: exported VI's".
1."VI Server:configuration", check TCP/IP protocol.
2."VI Server: access TCP/IP" -> here you construct a list of the machines IP addresses which you want to grant access to the vi's (or reject, as oppose). An asterisk can be used as a wildcard.
3. "VI Server: exported VI's" - the same manner a list of the exported vi's must be contructed here ("*" for all).
Hope this hopes.
(I'm not sure, but may be a restart of LV is needed in order to changes takes effect).
Hope this he
lps.
0 Kudos
Message 4 of 13
(3,715 Views)
Thanks. Yes. I have configured it as above . But as I said earlier, the error is coming while trying to access from the LOCAL MACHINE itself, when I connect my IP address string to the 'machine name' terminal and it works when I leave it blank.
0 Kudos
Message 5 of 13
(3,715 Views)
As I know, when you use local machine as remote (thus connetcing address string to a terminal) the above info about VI Server also correct - you must VI server on local machine (as it was as for remote), grant acces and set a protocol (IP adress of your machine, 127.0.0.1 can be used also). Is the error still occurs?
0 Kudos
Message 6 of 13
(3,715 Views)
Sheela-

Leaving the input blank tells the VI that you are accessing the local machine and not to use the network. Inputting an IP address tells the VI to attempt communication over the network.
The following is taken from the Open Application Reference Context Help:
machine name is the address of the computer that runs an instance of LabVIEW to which you want to establish a connection. This address can be in dotted decimal notation (such as 130.164.15.250) or domain name notation (such as foo.ni.com). An empty string causes this function to return a reference to the local instance of LabVIEW.

-Erik
0 Kudos
Message 7 of 13
(3,715 Views)
Thanks, Erik. Yes. I saw the context help on that. But my point was why does it not work when I actually give the IP address of that (local) machine. Subsequently I found the same VI worked on my home PC so it looks like the network at work does not allow connections. Probably that explains why I get error 63. I would now like to know what exactly should I ask the network admin to do to allow this on a case by case basis.
0 Kudos
Message 8 of 13
(3,715 Views)
Hi Belur,

if you have a firewall running on your local machine you have to open it for the following ports.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 9 of 13
(3,715 Views)
Thanks a lot, Waldemar. This is what I was looking for!
That was a great help.

Thanks again!

Sheela
0 Kudos
Message 10 of 13
(3,502 Views)