LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC server setting

Hi

 

I`have developed an application client which has shared variables bounded with an OPC server of NI. Sever and Client are on the same machine. My executable works very well.

Now if I want install my executable on a machine that has not the OPC server installed, so I need to change manually the path of the OPC server and of all the shared variable bounded before creating the executable.

Is there any possibility to set the path of the OPC server  on the front panel of the application? Any suggestion how can I develop a VI to set this path? 

 

Thanks

 

Vincenzo

 

 

0 Kudos
Message 1 of 2
(2,616 Views)

Hi Vincenzo,

 

I've never tried it, but I guess the "Create&Configure IO Server"-Express-VI should do the job (DSC Module/EngineControl/Variables&IO-Server). It allows you to dynamically setup a connection to an OPC-Server (or other server type).

If you use the "Overwrite if I/O-Server exists"-Option and use the name of your original I/O-Server, all your Shared-Variables connected to that Server should (hopefully) automatically connect to the new OPC-Server.

 

As I mentioned, I did not try this. So, let me know if it works.

 

Good luck,

Thomas

0 Kudos
Message 2 of 2
(2,590 Views)