Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 rating:
 1.5 out of 5     Rate this Document

Using OPC with the Measurement Studio Network Variable Class Library

Primary Software: Measurement Studio>>.NET Support
Primary Software Version: 8.1
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Modules>>DSC Module

Problem: How do I get the Measurement Studio network variable to communicate with OPC (OLE for process control) using LabVIEW DSC RTS? I have an existing OPC server and am currently using Measurement Studio DataSocket to communicate directly with OPC, but I would like to upgrade to network variable in Measurement Studio support for Visual Studio 2005.

Solution:
  1. Install Measurement Studio 8.1 or later. Network variable is available only in Measurement Studio support for Visual Studio 2005.
  2. Install LabVIEW Datalogging and Supervisory Control (DSC) Run-Time System (RTS).
  3. Install your OPC server. Only OPC2 and higher are supported by DSC RTS.
  4. Select Start»All Programs»National Instruments»Variable Manager»Variable Manager to launch the Variable Manager.
  5. If there is a process listed for the Local System, skip to step 6. If there are no processes listed for the Local System, right-click and select New Process to create a new process. Type the name of the new process in the Enter Name of New Process dialog box and click OK.
  6. Right-click on one of the processes on the Local System and select New IO Server.

  7. For the I/O Server Type, select OPC and click Continue.
  8. Name the server in the Enter IO Server name dialog box and click OK.
  9. Select the OPC server from the list of Registered OPC Servers you installed in step 3 and click OK.

  10. Right-click on one of the processes on the Local System and select New Variable to launch the Shared Variable Properties dialog box.
    Note Measurement Studio uses the term network variable to describe software items that exist on a network that can communicate between programs, applications, remote computers, and hardware through the Shared Variable Engine, while LabVIEW uses the term shared variable to describe the same software items.
  11. In the Shared Variable Properties dialog box, select Bind to Source and click the Browse button.

  12. Select one of the OPC items from the OPC I/O server you created in step 6.

  13. Click OK to bind the new variable to the OPC source.

  14. Use the new variable as you would any other shared variable.



Related Links:

Attachments:


OPC6.pngOPC1.pngOPC2.pngOPC3.pngOPC4.pngOPC5.png


Report Date: 12/01/2006
Last Updated: 02/02/2007
Document ID: 440BTEH3

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit