Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Inactivate - method of object PmAlarmItem

Description:
Alarm item inactivation
Syntax:
Empty Inactivate([Date tTimeOff])
Calling:
oAlItem.Inactivate tTimeOff
Parameters:
tTimeOff[optional] (Date) Inactivation time. If not set, then the computer current time is used.
Note:
Calling the Inactivate method over the inactive alarm has no effect. An active alarm is inactivated. The behaviour of the alarm during the inactivation is specified by the "Inactivate type" configurator.

If the alarm is inactivated without parameters, then the simplier way can be used by writing the value false into the Active property.

The method is synchronous, i.e. it is processed immediately by the alarm subsystem. Nevertheless writing the history to disk is asynchronous, it means that this method passes the request for writing to the history to the alarm subsystem, it is placed into the queue of requests and it is processed later by the alarm subsystem.

Example:
JavaScriptVBScriptSelect and copy to clipboard

var oItem = pMe.Pm("/alarm").Item("Temperature");
oItem.Inactivate();
PROMOTIC 9.0.7 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice