You can bind shared variables to data items on OPC servers if you have created an OPC Client I/O server for the OPC server already.
OPC Client I/O servers have five unique data items you can use to set the active state of the OPC Client I/O server and display information about the server to which the client instance connects.
- Active—Read/write. Set the shared variable connected to this data item to read or write by right-clicking the Shared Variable node on the block diagram and selecting Change to Write or Change to Read from the shortcut menu. If TRUE, the connected OPC server sends updated data to LabVIEW. If FALSE, the OPC server does not send updated data to LabVIEW.
- Connected—Read-only. If TRUE, LabVIEW has a current connection to the OPC server.
- OPC Interface Version—Read-only. Returns the OPC Interface version of the connected server.
- Revised Update Rate—Read-only. Returns the update rate of the connected OPC server.
- Server ProgID—Read-only. Returns the descriptive, version-dependent program ID of the connected OPC server. The server program ID is how LabVIEW and other applications identify the server.
 |
Note LabVIEW does not display data items for OPC servers that do not support the Server Browse Address Space Interface. |