Unitech PA500 manual Save scanner setting into specified file, Parameter output Return

Page 12
Parameter: (input) filename: formulaOnly:
Return:

2.14.Save scanner setting into specified file

Function Description:

Save the current settings to file. The file takes “*.USI” as extension name.

Function call:

BOOL USI_SaveSettingsToFile(LPCTSTR filename)

Parameter: (input)

filename : LPCTSTR: file name for setting profile

Return:

TRUE = success

 

FALSE = error

2.15.Change scanner setting from specified setting profile

Function Description:

Load and activate the settings from file.

Function call:

BOOL USI_LoadSettingsFromFile(LPCTSTR filename, BOOL formulaOnly);

LPCTSTR : name of scanner setting profile (*.USI)

BOOL: if TRUE, only data editing formulas are load. The other settings remain unchanged

TRUE = success FALSE = error

2.16.Automatically enable scanner beam with pressing trigger key

Function Description:

Start auto scanning. Scan engine will be automatically triggerrd on.

Function call:

BOOL USI_StartAutoScan(DWORD interval);

Parameter: (input)

 

 

interval :

DWORD:

Specifies the interval in milli-second

Parameter: (output)

 

 

Return:

 

 

Note: USI will call the function SetScannerOn function exported by the DLL defined in the registry described below (UPI300.DLL is an example) to start and stop the scanner. If the DLL is not defined or the function is not found, then auto scanning is not available.

[HKEY_LOCAL_MACHINE\SOFTWARE\Unitech America Inc.\Scanner\Settings] "DLLSCANNERCONTROL"="UPI300.DLL"

The function prototype of SetScannerOn is:

VOID WINAPI SetScannerOn(BOOL fon);

Start when fon is TRUE, and stop when fon is FALSE.

-

Image 12
Contents PA500 Programming Manual Automatically enable scanner beam with pressing trigger key USI.DLL Unitech Scanner Interface DLLSCANKEY3.DLL Backward Compatible API for PT930/PT930S’S GET Device ID Update Notes Introduction How to download data from scanner COM definition for PA500 Function call Parameter inputEnable / Disable Scanner Reset ScannerGet error code Returns the system error codeGet scan data Function DescriptionParameter output Get Symbology name Get length of scanned dataGood read indicator Wait for acknowledgement of the last sent commandSave setting to profiles Clear scan data system bufferSave scanner setting into specified file Change scanner setting from specified setting profileAutomatically enable scanner beam with pressing trigger key Parameter output ReturnCheck if auto scanning is enable Test if Scan2Key is enabledStop auto scanning function Check if Scan2Key.exe program is running or notEnable/Disable Scan2Key Send scanner command to decoding chipOnly send single command decoding chip Esc, 0x80+cmd Function callSend command to decoding chip Esc, parameter1, parameter2, …, BCCSpecial Command for control Control command for decoder chipEnable in Communication TRACK1,5 TRACK2,6 TRACK3 Code32setCodabarset LabelcodeUpcaset UpcesetUPC a Disable Decoder PTEnableBarcode Function callCheck barcode input Return codeReset all symbologies to default Read barcode dataGet DLL version no Disable laser trigger key Enable laser trigger keyPTEnableBarToKey Function call for VC INT PTVersionvoid Return IntegerSysIOAPI.DLL Keypad Related FunctionsReturn code Bool True Caps lock False Caps unlock Return code True Shift lock False Shift unlockScanner Related Functions ParameterInputLED related function ExampleLCD/Backlight related function ParametersInputDynamic Load DLL Get Device ID Update notes
Related manuals
Manual 84 pages 14.34 Kb