That is, NI-DAQmx Channels created in a project must be bound in order to be used. Project NI-DAQmx Channels only broadcast data when the Shared Variable to which they are bound is deployed. The scope of the channel determines its behavior. How do I bind a Shared Variable to a NI-DAQmx Virtual Channel?Ī Shared Variable can be bound to both local (project) and global (MAX) NI-DAQmx Virtual Channels. The steps required to view a Shared Variable in the OPC Quick Client can be found below. The Quick Client is included with the NI LabVIEW Datalogging and Supervisory Control Module.įigure 5. The NI-DAQmx channel and bound Shared Variable in the OPC Quick Client OPC Quick Client, shown below, demonstrates this use case.
#Ni opc server proface how to
For a description of how to log data to the NI Citadel 5 database, see the tutorial Logging Data with NI Citadel.įigure 4. A view of the NI-DAQmx channel, TTL Input, and bound Shared Variable, TTL Channel, in the Distributed System Manager.Īs previously discussed, an OPC client can access the data published by NI-DAQmx channels and the Shared Variable Engine. However, it can not log that data without using the LabVIEW DSC module and a Shared Variable bound to the NI-DAQmx channel. The NI Distributed System Manager can be used to view NI-DAQmx channels, as well as any Shared Variables which are bound to those channels. This will be shown later in the tutorial.įigure 3. A simple data acquisition task using a Shared Variable bound to an NI-DAQmx input channel. To access an NI-DAQmx channel via NI-PSP, you must first bind the channel to a Shared Variable. This functionality makes it easy to perform data acquisition or generation using LabVIEW, the Distributed System Manager, or a third-party OPC client.
#Ni opc server proface psp
NI-DAQmx automatically produces PSP objects for all NI-DAQmx global virtual channels configured in MAX and all NI-DAQmx local channels created in LabVIEW, though it does not publish data from NI-DAQmx tasks.Īs discussed previously, the Shared Variable Engine publishes all Shared Variables as OPC tags therefore, the Shared Variable Engine makes it possible for an OPC DA client to read and write data to an NI-DAQmx device.įigure 2. NI-DAQmx works with the Shared Variable Engine to make DAQ hardware available for OPC connectivity.
#Ni opc server proface driver
In addition to its role as the primary device driver for NI data acquisition devices, NI-DAQmx uses NI-PSP to interact with the Shared Variable Engine and make data read by the driver available to all networked devices. The Shared Variable Engine can use the OPC Data Access 2.0 or 3.0 standard, allowing any device compatible with those OPC DA standards to access the data stored in a Network-Published Shared Variable. The Shared Variable Engine publishes all variables as OPC tags under the Prog ID National Instruments.Variable Engine.1. The NI Shared Variable Engine includes an OPC Server so that Shared Variable data can be made available to OPC client applications. More information about OPC can be found in the tutorial What is OPC?.įigure 1. OPC is intended to improve enterprise system connectivity.
The standard specified the communication of plant data between control devices from different manufacturers. OPC, originally an abbreviation for Object Linking and Embedding for Process Control, is a standard first developed in 1996 by the OPC Foundation. For more information on Shared Variable configuration, reference the tutorial Using the LabVIEW Shared Variable. An in-depth discussion of the Shared Variable Engine can be found in the tutorial Buffered Network-Published Shared Variables: Components and Architecture, while more information about NI-PSP can be found in the LabVIEW Help: Understanding Shared Variable Technology. The Shared Variable Engine manages the use, connectivity, and performance of all Shared Variables on your many data acquisition and control systems, and it does this using the NI Publish-Subscribe Protocol (NI-PSP). You can also add data services to Shared Variables such as logging, alarming, and events, through dialogs using the LabVIEW Datalogging and Supervisory Control Module. Shared Variables are configured through dialogs accessable from the Project Explorer window. Once a Shared Variable has been created using the Network-Published scope, all data written to the variable is available to all systems networked with the host computer. Using the network-published Shared Variable, you easily can pass data within a system and between systems.
The Shared Variable is a simplified programming interface for sharing data that was introduced in LabVIEW 8.