Promotic

Activate - method of the PmEventItem object

Description:
Event item activation.
Syntax:
Empty Activate([String sComment], [Date tTimeOn])
Parameters:
sComment[optional] (String) The text comment that is stored into the data together with the activated event item (it is enabled on the "Storage" tab).
tTimeOn[optional] (Date) The activation time of the event.
If not set, then the computer current time is used.
Note:
The method is synchronous, i.e. it is processed immediately by the event subsystem. Nevertheless writing the event history to disk is asynchronous, it means that this method passes the request for writing to the history to the event subsystem, that is placed into the queue of requests and is processed later by the event subsystem.
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oEv = pMe.Pm("/Event");
var oEvItem = oEv.Item("Temperature");
oEvItem.Activate("max");
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.