Alarm & Event Query VI
- Updated2024-11-20
- 12 minute(s) read
Extracts data from a historical alarm and event database.

Inputs/Outputs
colors
—
colors determines the colors used in the table or multicolumn listbox for alarms and events.
display format
—
display format determines the formatting settings for this VI to send data to a file. When the following parameters are TRUE, the results of the query returns values for all those parameter values.
database URL
—
database URL specifies the computer name and the database name where the Citadel database resides. Enter the database URL in the format \\computer\database. For example, if you have a copy of the LabVIEW Datalogging and Supervisory Control (DSC) Module and Citadel service installed on a computer named datalogger and the name of the database on that computer is data, you can access the data on datalogger from another computer by using the path \\datalogger\data. If you provide a database name only, this VI searches for the database on the local computer. If you do not wire database URL, this VI resolves the database URL from the Shared Variable Engine (SVE). If the SVE resolution fails, this VI reads data from the database associated with the default DSC Module process.
filter
—
filter executes a more selective query of the historical alarms and events database. This VI returns only alarms and events that fit the filter criteria. To use the filter criteria, set filter on to TRUE for the corresponding subparameter. If you do not wire a value to the filter parameter, the query returns all the alarm and event data from the database. If you do not wire values to the start timestamp and stop timestamp subparameters, this VI returns all the alarms that fit the remaining filter criteria.
timeout (30 s)
—
timeout specifies the maximum time, in seconds, that this VI waits for reading data from the Citadel database. The default is 30. A timeout value of less than or equal to 0 specifies no timeout, which means this VI waits indefinitely until this VI receives data from the Citadel database.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
table or multicolumn listbox
—
table or multicolumn listbox is a reference to a string table or multicolumn listbox control or indicator. If valid, the results of the query are sent to the control, formatted according to the settings in the format control.
alarm data
—
alarm data contains the data that describes a historical alarm or event.
database URL out
—
database URL out returns the computer name and the database name that specify where the Citadel database resides. The format is \\computer\database.
error out
—
error out contains error information. This output provides standard error out functionality. |
colors
—
event
—
display format
—
show date
—
date format
—
database URL
—
start timestamp
—
shared variable name
—
alarm setpoint
—
minimum priority
—
error in (no error)
—
table or multicolumn listbox
—
alarm data
—
alarm URL
—
set time
—
setpoint
—
priority
—
event?
—
database URL out
—
error out
—