LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Deploy Variable Library to Remote PC

I'm trying to set up a system for repeating shared variables across multiple PCs. That is, I want to be able to clone all the variables in a given library from the shared variable engine (SVE) on one PC to the SVE on another. Each PC that is hosting the library may potentially have a lot of clients, and they are physically separated by long distances; the point of repeating is to limit the long distance network communication to point-to-point, rather than doing a long-distance broadcast to all clients.

 

I put together a simple application that will monitor all the variables in the local SVE, and when any variable is updated, the new value will be copied to the corresponding variable on the remote PC.

 

This application works quite nicely. However, I'd like to be able to have it auto-deploy the variable library to the remote system on startup; in case there are any changes to the variables in the library (adding new ones, changing properties, etc.). If I try to run the App.Deploy Library method with the remote system's IP address specified, I get the generic "Error 1"

 

deploy1.png

 

I also tried opening a reference to the remote application instance, as well, with no luck:

 

deploy2.png

 

Does anyone know how (or if) such a thing might be possible? I know I have deployed libraries to remote RT Systems using this method; is it possible to do it with Windows PCs?

 

Thanks in advance!

 

0 Kudos
Message 1 of 5
(2,886 Views)

If it's possible to deploy the lib to 127.0.0.1, I suppose it's a firewall issue.

 

br Christian

0 Kudos
Message 2 of 5
(2,882 Views)

I am not sure I am understanding your application.  It seems that you could simply build the NSV libraries into the Windows installation on each remote PC and then each PC deploys its own libraries.  I would then use the NSV binding property to bind remote NSV's back to one really faster 'server' PC or I suppose you could do point to point bindings as well.  The SVE handles these binding very efficiently and is under the hood a real Publish Subscribe protocol optimized for this sort of thing.

0 Kudos
Message 3 of 5
(2,872 Views)

Does anyone know what ports are required for remote shared variable library deployment? What firewall settings would I need in order to facilitate remote deployment?

 

------

 

As for why I want to do this: I'd like to be able to set up a data hub so that one server application could effectively mirror its shared variable library on a remote server. The original server and the remote (mirrored) server would then be accessed by multiple clients--each running a client app to read from their respective server's shared variable engine. The client to server connection would be local, and the server to server connection would be long distance. That would avoid multiple long distance client connections.

0 Kudos
Message 4 of 5
(2,831 Views)

Hi TurboPhill,

 

I found one link.

This may help you to configure firewall and network address translation routers for shared variables.

 

I am little bit confused in your requirements.

If your communication is server to client then you no need for shared variable deployment on client application. Only you have to open that shared variable reference and just read the shared variable required.

If your communication is client to server then you can pragmatically deploy shared variable in your client application and read that shared information in server application.

 

If you deploy one shared varied variable you can read this in multiple application, So why you required one more communication media on your server to transfer the data on other server.

 

Thanks and Regards

Himanshu Goyal

 

 

 

Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
0 Kudos
Message 5 of 5
(2,825 Views)