
62
Class Reference
Format:
result = reader.runScript(scriptName);
Where:
scriptName
– string; the name of the JavaScript to be run. The script must first be loaded
into handheld flash by name. See Vision Configurator (section 1.4).
result
– Boolean; true if the script was loaded successfully;
false
otherwise. A return of
false
usually means that the script could not be found.
Example:
In the forms example (section 3.2.2), the onTimeCard function could be defined as follows:
function onTimeCard()
{reader.runScript("TimeCardApp.js");}
The operator, at the end of a work shift, could press the “TimeCard” button to access a
time card application.
4.3.1.7
saveSettings
The
saveSettings
method writes the current values of the handheld configuration
settings into flash memory. Operational setting values are loaded from flash memory when
the handheld reader initializes. Any changed configuration settings will be lost at reader
shutdown unless saved in flash memory.
Format:
result = reader.saveSettings();
Where:
result
– Boolean;
false
if the flash write fails;
true
otherwise.
Note: There are no arguments to this method.
4.3.1.8
setDisplayLed
The
setDisplayLed
method activates the LED of the OHV300 above the display.
Format:
reader.setDisplayLed(color);
Where,
color
– must be
reader.green
,
reader.red
,
reader.amber
or
reader.none
.
Note: Setting 0x014d should be set to false for setDisplayLed to work properly.
Содержание OHV300
Страница 1: ...FACTORY AUTOMATION MANUAL JAVASCRIPT PROGRAMMING GUIDE...
Страница 88: ...88 Supported JavaScript Core delete function in instanceof new this typeof void...
Страница 93: ...93 Symbology ID Modifier Information...
Страница 94: ...TDOCT 4981_ENG 11 2015...