Configuring Alarms for U32 Bit Field Shared Variables
- Updated2025-11-07
- 2 minute(s) read
You can configure alarming for network-published shared variables only. Enable network publishing for a shared variable before you configure alarming for this shared variable. Complete the following steps to configure alarms for bit array shared variables:
- Right-click a U32 Bit Field shared variable in the Project Explorer window and select Properties from the shortcut menu to display the Shared Variable Properties dialog box.
- Select Alarming to display the Alarming page.
- On the Alarming page, place a checkmark in the Enable Alarming checkbox.
- In the Alarms section, place a checkmark in the appropriate cell of the Enabled column for the type of alarm that you want to enable for the bit array shared variable.
- Set the appropriate cell of the Alarm On column to Any to configure the shared variable to be in an alarm state when any bit meets the alarm criteria. Set the cell to All to configure the shared variable to be in an alarm state when all bits meet the alarm criteria.
- In the appropriate cell of the Invert column, enter 1 or 0 for each bit to determine whether this bit meets the alarm criteria when high (1) or low (0). For example, if you enter 1 for a bit, this bit meets the alarm criteria when low. If you enter 0 for a bit, this bit meets the alarm criteria when high. In bit-wise terminology, the Shared Variable Engine (SVE) performs an XOR with the Invert value to produce the alarm state. The LabVIEW Datalogging and Supervisory Control (DSC) Module applies the Invert value to the scaled value after the DSC Module applies any relevant scaling masks.
- In the appropriate cell of the Mask column, enter the bits that the DSC Module uses to calculate the alarm for the shared variable. LabVIEW uses bits that are 1 in the alarm calculation. Bits that are 0 do not cause an alarm, regardless of their value. In bit-wise terminology, the SVE performs an AND with the Mask value to produce the alarm state. The DSC Module applies the Mask value to the scaled value after applying any relevant scaling masks.
- In the appropriate cell of the Priority column, enter a priority for the alarm. The priority level can be 1–1,000, where 1,000 is the highest priority.
- In the appropriate cell of the Ack Type column, select an acknowledgement type.
- In the appropriate cell of the Area column, enter a name for the area to which the alarm belongs.
- In the appropriate cell of the Description column, enter a description of the alarm.
- In the appropriate cell of the Log? column, place a checkmark in the checkbox to log alarm information to the database.
- Click the OK button to close the Shared Variable Properties dialog box.