The name is displayed which comes from the "label" information as well as the version
number which comes from the "version" information. See the "WebdynSunPM LUA User
Guide.pdf" document for more details.
3.2.3.1.2 Enabling/Disabling a script
Enabling a script means starting to run it on the concentrator. In practice, the LUA script
"wsinit()" function is run:
function wsInit()
wd.log("Control power initialized")
end
See the "WebdynSunPM LUA User Guide.pdf" document for more details of what can be done.
Disabling a script meets stopping it from running.
Note that scripts are run automatically when the WebdynSunPM concentrator starts
up, even if they were disabled before the start up.
A specific button is used to enable and disable:
When the script is disabled, its status is greyed out and "Disabled" is displayed.
When the script is enabled, its status is black and "Enabled" is displayed.
3.2.3.1.3 Viewing the script log
Scripts can report information to the end user using the wd.log()" function.
Thus, the following code will display the "Control power initialized" string in the start-up script
log file:
function wsInit()
wd.log("Control power initialized")
end
The log file is displayed by pressing the view button:
Version 2.05
préliminaire
USER MANUAL – WebdynSunPM
113
Need help?
Do you have a question about the WebdynSunPM and is the answer not in the manual?