LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Switch the binding source OPC server

We are trying to setup an OPC server, it will broadcast the OPC items to all its clients.
 
The data source of the OPC server is from the HMI server, that is the OPC server is also a OPC client of the HMI Server.
We tried to create the OPC server as an IO server under the project tree.
 
Now there are 2 HMI servers for redundency, we need to switch  the OPC server's binding data source between these 2 servers.
May I know how to do it?
 
I tried to bind the OPC by a host name and use the program to change the ip of the host file, but failed.
0 Kudos
Message 1 of 4
(2,812 Views)

Hi turbot,

If I understand correctly you are looking to create one LabVIEW program that accesses data on both HMI Servers.  Is that right? 

Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(2,795 Views)
Yes, I tried to switch between the 2 hmi servers for redundancy for data source and broadcast out by OPC.
0 Kudos
Message 3 of 4
(2,783 Views)

Hi turbot,

By using a property node you can change the binding of your shared variables.  The KnowledgeBase article How do I Programmatically Change the Data Binding Source for Shared Variables? explains this in more detail. 

Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(2,767 Views)