Documentation Vision Library+ Documentation

Alarm Sound+

Alarm Sound+ watches one value and, when it enters an alarm condition, turns red, shows a ringing bell, and plays a looping sound until an operator acknowledges it or the value returns to normal.

Overview

Alarm Sound+ in alarm for a high temperature, next to a square symbol showing a running pump

When to use it

Use this symbol when you need to:

  • Draw attention to a limit breach on an attended display, with a color and a sound.
  • Let an operator silence an alarm without hiding that the value is still abnormal.
  • Alarm on a state, such as a pump that has stopped, as well as on a number.
  • Open a detail display automatically when an alarm starts.

Choose Alarm Table+ to list the alarms of many assets, with severity and history. Alarm Sound+ watches a single data source.

Before you begin

  • Use one numeric, Boolean, string, or enumeration set (digital) PI Point or AF attribute.
  • Ask your administrator to allow .mp3 and .wav files in the PI Vision web.config, or no sound plays. See the installation guide.
  • Alarms are evaluated only on a live display, with the end time *. A display with a fixed end time shows Display not live.
  • For a limit that changes over time, such as an attribute's limit trait, bind the symbol to a PI Vision calculation that returns True when the limit is exceeded, and alarm on that Boolean.

Add and set up the symbol

  1. Select Alarm Sound+ in the PI Vision symbol gallery, and drag a numeric PI Point or AF attribute onto the display.
  2. Right-click the symbol and select Configure Alarm Sound....
  3. Under States, open Alarm. Set Operator (1) to ≥ and Value (2) to your alarm limit.
  4. Open Default. Set Operator to < and Value to your alarm limit, or lower. See Clear the alarm only when the value is well back to normal.
  5. Close the configuration pane. When the value is at or above the limit, the symbol turns red, the bell rings, and the sound plays.
Alarm group with Operator and Value marked
The symbol in the alarm state at 67 degrees Celsius

Note: Browsers can block sound until the operator has clicked or typed on the page. See Troubleshooting and limitations.

Common tasks

Clear the alarm only when the value is well back to normal

Use this when the value hovers around the limit. With no gap between the two limits, every small swing across the limit ends the alarm and starts it again, and the sound restarts each time.

  1. Right-click the symbol and select Configure Alarm Sound....
  2. Under States, open Alarm. Set Operator to ≥ and Value to the alarm limit, for example 50.
  3. Open Default. Set Operator (1) to < and Value (2) to a lower limit, for example 45.
Default group with Operator < and Value 45

The symbol enters the alarm state at 50 and returns to normal only below 45. A value from 45 to 50 leaves the state unchanged. The default pair, Alarm ≥ 100 and Default < 100, has no gap. If you lower only the alarm limit, the two ranges overlap, and a value in the overlap counts as an alarm. The alarm then ends only when the value falls below the new alarm limit, so also lower Default to get a gap.

Let operators acknowledge and silence the alarm

Use this when operators must silence the sound while the value is still abnormal.

  1. Right-click the symbol and select Configure Alarm Sound....
  2. Under States, open Acknowledge.
  3. Set Enabled (1) to ON.
  4. Choose the Background (2) and the Text (3) the symbol shows after acknowledgement.
Acknowledge group with Enabled, Background and Text marked

An operator clicks the symbol in the alarm state:

The sound stops and the symbol turns to the acknowledged color with a crossed-out bell. It stays acknowledged until the value returns to normal, and then shows Default again. The next alarm raises the sound again. A click while the value is normal does nothing and does not silence the next alarm. The acknowledgement is stored in the operator's browser and belongs to that one alarm. Nothing is written to PI or AF. With Enabled OFF, a click does nothing and operators cannot silence the sound.

Choose and test the alarm sound

Use this to give a symbol a sound that operators can tell from other alarms in the room.

  1. Right-click the symbol and select Configure Alarm Sound....
  2. Under Sound, keep Source (1) on Default.
  3. Select a sound in the list (2): Slow, Fast, Classic, Critical, Clock, High Pitch, or Security.
  4. Select Preview (3) to play it in the pane, and select it again to stop.
Sound group with Source, the sound list and Preview marked

To use your own file, first ask your administrator to copy it into the ext\sounds folder of the PI Vision installation. Then:

  1. Set Source (1) to Custom.
  2. Enter the file name (2) without a path, for example boiler_horn.wav.
  3. Select Apply (3), and then Preview to check that the browser can play it.
Custom source with a file name and the Apply button

The symbol plays the chosen file in a loop from the moment the alarm starts. If a pane error says the file could not be loaded, see Troubleshooting and limitations.

Alarm on a Boolean or state value

Use this for a value that is not a number, such as a pump status, a valve position, or a mode.

  1. Drag a Boolean, string, or enumeration set data source onto an Alarm Sound+ symbol.
  2. Right-click the symbol and select Configure Alarm Sound....
  3. Under States, open Alarm. Choose TRUE or FALSE under Value (1). For a string, enter the text. For an enumeration set, pick a state.
  4. Enter the Text (2) that operators see in the alarm state.
  5. Open Default and enter its Text.
Alarm group for a Boolean with FALSE as the alarm value

The symbol alarms when the value equals your choice, and every other value is normal. In the hero image, the pump symbol alarms when its status is FALSE, and it shows Pump running while the status is TRUE. A string value must match exactly, including case.

Change how the alarm looks

Use this to fit the symbol to your display, or to make an alarm impossible to miss.

  1. Right-click the symbol and select Configure Alarm Sound....
  2. Under General, set Style (1) to Round or Square.
  3. Turn Text (2) and Value (3) ON or OFF, and set the Font Size (4).
  4. Turn Icon (5) ON, and drag Size (6) to size the bell.
  5. Under States, open Alarm and choose Background, Blink, and Pulse.
General group with Style, Text, Value, Font Size, Icon and Size marked

A square symbol stretches to the size you give it and puts the icon, text, and value in a row.

A wide square symbol in the alarm state

Blink flashes the background and Pulse grows and shrinks the symbol, in the alarm state only. The Text boxes in the state groups show only while Text under General is ON.

Open a display when the alarm starts

Use this to bring a detail display in front of the operator at the moment an alarm begins.

  1. Right-click the symbol and select Configure Alarm Sound....
  2. Under States, open Alarm, and set Open dialog (1) to ON.
  3. Enter the display address (2), or select Search for Displays ... and pick one.
  4. To pass an asset to that display, select Set asset context (3) and choose the asset.
  5. Set Zoom to fit, Scale, and Size (4), the size of the dialog.
Open dialog settings with the address, asset context and size marked

When the alarm starts, a floating dialog opens over the display and shows the other display.

A dialog showing another display after an alarm started

The dialog opens once for each alarm start and does not open again while it is still open. The symbol never closes it, so an operator closes it with the X.

Use the symbol

Alarm Sound+ with numbered callouts
What it shows
(1)Bell icon. A ringing bell means alarm, a crossed-out bell means acknowledged or display not live, a check mark means normal.
(2)State text, such as HIGH TEMP, set separately for each state.
(3)Current value with its unit.
(4)A square symbol watching a Boolean. It shows only text.

The state decides the look and the sound:

StateLooks likeSound
AlarmAlarm color, ringing bell, optional blink and pulse.Plays in a loop.
AcknowledgedAcknowledge color, crossed-out bell.Stopped.
NormalDefault color, check mark.None.
Display not liveLight gray, crossed-out bell, Display not live.None.
Stale dataAmber, clock icon, Stale data. Available when Stale warning is ON.None.
Data errorDark gray, error icon, the error text.None.
LoadingTransparent, Loading. The symbol has not yet seen a value in the alarm or default range.None.
  • Click the symbol to acknowledge an alarm. This changes only the browser you click in. It writes nothing to PI or AF.
  • Hover to see a tooltip with the label, value, and time, as set under Tooltip.
  • Sound plays while the symbol is in the alarm state, from every symbol that uses the same file, and stops when the last of them leaves it.
  • Double-click does nothing. The symbol has no trend pop-up.
  • While you edit the display, clicks do not acknowledge.

Configure the symbol

Right-click the symbol and select Configure Alarm Sound.... The pane has the sections General, States, Sound, Tooltip, Help, and Data Quality.

General

SettingWhat it does
StyleRound or Square. Used in Change how the alarm looks.
Text, Value, IconShow or hide the state text, the value, and the bell. All three are ON by default.
Units, Format, Decimal Places, Use 1000 separatorShow the unit, and choose Database, General, Number, or Scientific formatting. Available when Value is ON and the value is a number.
Display unitShows a numeric AF attribute in another unit of the same kind. Default follows AF. The alarm and default limits you type are compared with the displayed value and are not converted when you change the unit, so re-enter them. Unavailable for a PI Point, which has no unit of measure.
Font SizeSize of the state text and the value. Available when Text or Value is ON.
SizeSize of the bell, from 10 to 50. Available when Icon is ON.

States

SettingWhat it does
Alarm: Operator, ValueThe alarm condition of a number: =, ≠, >, ≥, <, or ≤, and a limit. The default is ≥ 100. See Clear the alarm only when the value is well back to normal.
Alarm: Value (other types)TRUE or FALSE for a Boolean, a state for an enumeration set, or text for a string. See Alarm on a Boolean or state value.
Alarm: Background, Blink, Pulse, TextThe color and the animation of the alarm state, and its label. The defaults are red, both ON, and ALARM. Used in Change how the alarm looks.
Alarm: Open dialogOpens a display in a floating dialog when the alarm starts. Settings: address, Search for Displays ..., Set asset context, Zoom to fit, Scale, Size. See Open a display when the alarm starts.
Default: Operator, ValueThe condition that returns a number to normal. The default is < 100. Not shown for other types, where any value other than the alarm value is normal.
Default: Background, TextThe color and the label of the normal state. The defaults are green and OK.
Acknowledge: EnabledLets operators acknowledge by clicking. ON by default. See Let operators acknowledge and silence the alarm.
Acknowledge: Background, TextThe color and the label of the acknowledged state. Available when Enabled is ON.

Sound

SettingWhat it does
SourceDefault uses a built-in sound, Custom uses a file from the ext\sounds folder.
Sound listSlow (default), Fast, Classic, Critical, Clock, High Pitch, or Security. Available when Source is Default.
File name, ApplyThe custom file name, without a path. Select Apply to load it. Available when Source is Custom.
PreviewPlays and stops the chosen sound in the pane. It stops when you close the pane.

See Choose and test the alarm sound. The Help section shows the web.config lines that allow .mp3 and .wav files.

Tooltip and Data Quality

SettingWhat it does
TooltipChoose the data source label, and show Timestamp, Value, and Units in the tooltip. Units is available when Value is on.
Stale warningON shows the amber stale state when the value is older than the threshold you set. A stale value is not evaluated, and no sound plays. See Data Quality.

Troubleshooting and limitations

SymptomCauseWhat to do
No sound plays.The browser blocks sound until the operator has interacted with the page, the volume is off, or the file is not allowed.Click anywhere on the display. The symbol asks the browser to play again at every data update while the alarm is active. Check the volume, then the web.config lines.
The pane shows Error loading sound file.The file is not in the ext\sounds folder, or .mp3 or .wav is not allowed in web.config.Ask your administrator to copy the file and add the extension. See the installation guide.
The symbol flips between ALARM and OK, and the sound restarts.The Default limit equals the Alarm limit, so a value that hovers around it crosses the limit again and again.Set a lower Default limit to leave a gap. See Clear the alarm only when the value is well back to normal.
The symbol says Loading and stays that way.The value lies between the Alarm and Default limits, and has not yet been in either.Wait for the value to cross a limit, or set the two limits to meet.
The symbol says Display not live.The display has a fixed end time.Open the display with the end time *.
The symbol says Stale data.Stale warning is ON and the value is older than the threshold.Check the data source, or raise the threshold.
The page reloads and the symbol is already acknowledged.The acknowledgement is stored in the browser for the alarm that was acknowledged, and that alarm is still active.Wait for the value to return to normal. The next alarm sounds again. A value that gets a new timestamp at every update can sound again after a reload.
A click does not acknowledge.Acknowledge: Enabled is OFF, or the display is in edit mode.Turn Enabled ON, and leave edit mode.
The alarm starts at the wrong value after changing Display unit.The limits are compared in the displayed unit and are not converted.Re-enter the Alarm and Default values in the new unit.
Custom sound file that could not be loaded
Two symbols on a display with a fixed end time

Limitation: Acknowledgement is local to one browser. An operator on another computer still hears the alarm until that person acknowledges it as well.

Limitation: Alarm Sound+ keeps no alarm history and writes nothing to PI or AF. Use Alarm Table+ for history.

Limitation: One symbol plays one sound and watches one data source.