alm.g()
alm.g(group)
Sets the current alarm group; subsequent alm.e() evaluations register under it.
Alarms are organised into named groups (e.g. one per machine or subsystem).
Call alm.g() before evaluating conditions to select which group the
following alm.e() calls belong to.
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| group | string | yes | — | Group name, e.g. "UV". |
Example
alm.g("UV"); // conditions evaluated next belong to the "UV" group