Set User Defined Alarm VI
- Updated2024-11-20
- 3 minute(s) read
Creates an alarm that is not associated with a shared variable. LabVIEW logs the alarm to the Citadel historical database. The alarm cannot have the same name as an existing alarm. You must clear the existing alarm before you can set the alarm again. Use the Clear User Defined Alarm VI to clear the alarm. LabVIEW automatically clears all alarms created using this VI when LabVIEW shuts down.
LabVIEW automatically clears all alarms created using this VI when LabVIEW shuts down.
The alarm URL is in the following format: \\computer\process\UserDefinedAlarm. alarm. computer specifies the local computer, because this VI only executes on the local computer. LabVIEW prepends UserDefinedAlarm to the name of the alarm, alarm.

Inputs/Outputs
value
—
value specifies the value of the alarm.
area
—
area specifies the name of the alarm area that this alarm belongs to.
process name
—
process name specifies the second element in the alarm URL.
alarm name
—
alarm name specifies the last element in the alarm URL.
description
—
description specifies the description of the alarm.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
priority
—
priority is the priority of this alarm. The valid range for priority is 1-1,000.
user
—
user is the operator responsible for creating this alarm.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the DSC Alarms Demo.lvproj in the labview\examples\lvdsc\Data and Alarm Historical Logging\DSC Alarms Demo directory for an example of using the Set User Defined Alarm VI.
value
—
area
—
error in (no error)
—
priority
—
error out
—