Example Code

Dynamically Update Shared Variable Alarm Levels Using the DSC Module

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW Datalogging and Supervisory Control Module

Code and Documents

Attachment

Description

Introduction:


The Datalogging and Supervisory Control Module adds the alarming functionality to network-published shared variables.  The alarm levels can typically be configured through the Alarming Page of the Shared Variable Properties Dialog Box.  However, using the property node seen in this example, the alarm levels can be changed during run-time.

 

Steps to run:

 

FP.png

 

1) Open the attached project and run DSC Alarm.vi

2) Adjust the value of the shared variable amongst the various alarm levels and note the output of the alarming indicators on the front panel.

3) Then change the alarm levels and select Update Alarm Levels.

4) Repeat step #2 with the new alarm levels.

5) Select STOP

 

Block Diagram:

BD.png

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
SnowForest
Member
Member
on

How this can be done inside .EXE ? As we can see in the documentation this operation is not supported on run-time system (.EXE)