11-04-2005 01:21 PM
11-07-2005 03:02 PM
Your understanding of shared variables seems correct. For a network scoped shared variable, PSP (Publish and Subscribe Protocol) is used. This protocol is the new NI network protocol replacing the functionality of DataSocket, although it works in a similar way. You can think of the Shared Variable Engine as a behind-the-scenes, 3rd party entity that manages shared variables. Clients can then publish new values to these shared variables or subscribe to these variables to read values from them. A client can also be both a publisher and subscriber. It easiest just to think of it as writing and reading values to/from memory.
Kind Regards,
11-08-2005 12:49 PM
11-08-2005 01:43 PM
11-09-2005
02:13 PM
- last edited on
01-28-2025
12:56 PM
by
Content Cleaner
OPC is really not my area of expertise, and it seems that that has been exposed here 🙂 I did some more research on this topic, and you actually need the LabVIEW Datalogging and Supervisory Control (DSC) Module 8.0 in order to do direct data binding with OPC data items. LabVIEW DSC lets you expose these data items to shared variables through an I/O Server and allows you to sidestep using DataSocket. My apologies for the initial misguided advice, but I am sure that this bit is the correct information!
Message Edited by AESulzer on 11-09-2005 02:14 PM
11-09-2005 02:18 PM
So, if I understood this correctly, the only way to communicate with OPC Servers from pure-LabVIEW 8.0 (i.e., no DSC module), is to use the old DataSocket approach?
-Khalid
11-09-2005 02:21 PM
11-09-2005 05:50 PM
Khalid,
That is correct -- the only way to communicate with OPC servers from "pure" LabVIEW 8.0 is to use DataSocket. Keep in mind, though, that there is data binding for front panel objects within the DataSocket API, and you can set that up pretty easily from the front panel. In LabVIEW 8.0, you need to right-click the numeric control/indicator, select properties, and select the Data Binding tab to set up the connection. All you have to do is give it your OPC address and the control/indicator is automatically synced up with the OPC data item.