Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Managing I/O with Shared Variables (DSC Module)

You can use shared variables to represent a real-world input/output point. With the LabVIEW DSC Module, you can configure how LabVIEW scales shared variable data, logs shared variable data to a historical database, and sets alarm levels and priorities for shared variable data. You also can bind shared variables to I/O servers, such as the OPC server, or to a shared variable published by another instance of LabVIEW on the network.

Note  You can use the features the DSC Module adds only for network-published shared variables.

You can configure the following shared variable properties:

  • Shared variable data type
  • Initialization values
  • Update, logging, and alarm deadbands
  • Units of measurement to data
  • Alarm messages for a shared variable whose values enter the alarm ranges you set
  • Data binding
  • Security settings
  • Scaling

LabVIEW saves shared variable information in LabVIEW project library (.lvlib) files. Shared variables communicate between VIs, remote computers, and hardware through the Shared Variable Engine. The Shared Variable Engine uses the NI Publish-Subscribe Protocol (NI-PSP) data transfer protocol to write and allow users to read live data.

You can include as many shared variables in a project library as you need. However, you might notice performance issues if you have insufficient system resources. Refer to the LabVIEW Datalogging and Supervisory Control Module Release and Upgrade Notes for more information about system requirements.

The DSC Module also adds OPC functionality to LabVIEW, allowing shared variables to connect to OPC servers and clients. Create an OPC client instance to connect shared variables to OPC server data items manually, or use the Multiple Variable Editor window, available by selecting Tools»Shared Variable»Multiple Variable Editor. LabVIEW automatically publishes deployed shared variables to the OPC server.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit