Availability | All terminals | ||||
Description |
This function can change the system settings. System settings are used to change the reading behavior of the handheld terminal, or to change communication settings. |
||||
Syntax | int SystemSetting( char *option_string ); | ||||
Arguments |
char *option_stringPoints to a string containing menu options of 2 to 4 characters, which are listed in the Universal Menu Book.On OptiConfigure you can find all available menu options for the different terminals. |
||||
Returns |
|
||||
Remarks |
It is not possible to change the system settings via the communications port using a By enabling the system setting "YC" (enabling decoding of menu labels), the menu labels in Opticon's Universal Menu Book will be returned as data by ReadBarcode(). The programmer can pass this data to SystemSetting(), thereby emulating the behavior of a scanner directly programmable from the Universal Menu Book. By default this behavior is disabled, therefore passing the menu code "U2" (set to default) to systemsettings() will immediately disable the effect of "YC". Note that 3-letter menu codes should be prefixed with the character '[', making the total characters for a 3-letter menu code 4 characters. Likewise, 4-letter menu codes should be prefixed with the character ']'. IMPORTANT:System settings that affect a communications port, only take effect after the port is closed and opened again.TIP:SystemSetting() can execute more then one command at a time, when the option_string parameter contains more options, for example:SystemSetting("B0B2R4"); //This enables Code 39 and EAN codes |
||||
Example |
#include <stdio.h> #include "lib.h" void main( void ) { SystemSetting("WK"); // Key click on for(;;) { printf("\nHello world"); ResetKey(); while( !kbhit()) Idle(); } } |