 |
Note You can configure alarming only for shared variables with the Variable Type set to Network-Published on the Variable page of the Shared Variable Properties dialog box. |
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.
- In the Shared Variable Properties dialog box, select the Alarming option to display the Alarming page.
- On the Alarming page, place a checkmark in the Enable Alarming checkbox.
- Click the Configure button.
- In the Configure Bit Array Alarms dialog box, place a checkmark in the alarm type checkbox that you want to enable for the bit array shared variable.
- Set the Alarm On switch to Any to configure the shared variable to be in an alarm state when any bit is in an alarm state. Set the Alarm On switch to All to configure the shared variable to be in an alarm state when all bits are in an alarm state.
- In the Invert text box, enter the bits you want to go into an alarm state on high (1) and which bits you want to go into an alarm state on low (0). Enter the value 1 if you want that bit to alarm when low. In bit-wise terminology, the Shared Variable Engine performs an XOR with the Invert value to produce the alarm state. The LabVIEW DSC Module applies the Invert value to the scaled value after the DSC Module applies any relevant scaling masks.
You also can click the Edit button and use the Edit Bit Mask dialog box to set the bits you want to go into an alarm state.
- In the Mask text box, 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 Shared Variable Engine 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.
You also can click the Edit button and use the Edit Bit Mask dialog box to set the bits you want the DSC Module to use to calculate the alarm area.
- Enter a priority for the alarm in the Priority text box. The priority level can be 1–1,000, where 1,000 is the highest priority.
- Select an the acknowledgement mode in the Ack Mode pull-down list.
- Enter a name for the area to which the alarm should belong in the Area text box.
- Click the OK button to close the Shared Variable Properties dialog box.