Promotic

Run - method of the PmaTrendGroup object

Description:
The method saves all current values on the "Data" tab with the current time, i.e. with time of the computer at the moment of calling this method.
Syntax:
Boolean Run()
Return value:
true - The request for writing the record into the archive was received successfully. The write operation itself will be completed later after this method is finished. In the case of write failure the onError event is triggered.
false - The request for writing the record into the archive was not received successfully. The reason could be for example wrong storage setting. The onError event is not triggered.
Note:
For calling the method with the specified time, see the RunTime method.

If the "Read only (new records cannot be written)" configurator is checked, then the method is not functional, i.e. it isn't possible to write into the trend archive.

If the "Enable saving of variables on change" configurator is checked, then the variables storing is optimalized, i.e. each time this method is called there does not have to be a data saving.

If the "Automatic saving after launch is enabled" configurator is checked, then the values are saved automatically and it is not necessary to call the Run method.
See also:
Example1:
JavaScriptVBScriptSelect and copy to clipboard

pMe.Pm("/Trends").Run();
Example2:
JavaScriptVBScriptSelect and copy to clipboard

var oTrend = pMe.Pm("/Trends");
var bRun = oTrend.Run();
if (! bRun)
{
// ... error
}
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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