You can bind shared variables to data items on OPC servers if you have already created a client instance for the OPC server.
OPC client instances have five unique data items you can use to set the active state of the OPC client instance and display information about the server to which the client instance is connected.
- 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 OPC server the client instance is connected to sends updated data to LabVIEW. If FALSE, the OPC server the client instance is connected to 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 server the client instance is connected to.
- Revised Update Rate—Read-only. Returns the update rate of the OPC server the client instance is connected to.
- Server ProgID—Read-only. Returns the descriptive, version-dependent program ID for the OPC server the client instance is connected to. The server program ID is how LabVIEW and other applications identify the server.
 |
Note LabVIEW does not display data items for OPC 1.x and OPC 2.x servers that do not support the Server Browse Address Space Interface. |