09-18-2008 06:37 AM
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
09-18-2008 11:19 AM
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