Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Run - method of the PmaTrendGroup object

Description:
The method saves all current values on the "Data" tab with the current time, i.e. with the time of the computer at the moment of calling this method.
Syntax:
Boolean Run()
Return values:
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 case of write failure the onError event is called.
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 values storing is optimalized, i.e. each time this methosd 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 automaticaly 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.14 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