The steps in this section are written for NI OPC Servers 2012, but similar steps can be used for previous versions of NI OPC Servers.
Note: If this simulation project is not already loaded in NI OPC Servers 2012, select File»Open… and browse to C:\Program Files\National Instruments\Shared\NI OPC Servers\V5\Projects\simdemo.opf. The project should look like Figure 1.
Figure 1. NI OPC Servers 2012 Displaying Simulated PLCs
In this section, you will create a LabVIEW interface to the OPC tags called an I/O Server. The I/O Server automatically updates LabVIEW with the current tag values at a rate you specify.
In this section, create shared variables, which are bound to the OPC tags, giving you native access in LabVIEW to PLC data. With the shared variable, you can share data across LabVIEW applications on a single computer or across the network.
Note: The LabVIEW DSC Module enhances shared variables by adding the ability to log data, alarms, and events directly to a database without ever writing a LabVIEW application.
You now have access to PLC data natively in LabVIEW through the shared variables.
Note: The Distributed System Manager is new in LabVIEW 8.6. Previous versions of LabVIEW did this by going to Tools»Shared Variable»Variable Manager and dragging the shared variables into the Watched Variables: window.
Now data flows from the shared variable to the waveform chart when the VI is running.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.