User manual

161
4.92 OBRSetGainControl
This function sets up gain control.
In the Device Emulator, the function does not perform, but stores the preset value as internal
variable. The value stored can be checked with OBRGetGainControl function.
Calling Sequences
[C++]
int OBRSetGainControl(
DWORD dwMode
)
[Visual Basic]
Public Shared Function OBRSetGainControl ( _
ByVal dwMode As Int32 _
) As Int32
[C#]
public static Int32 OBRSetGainControl (
Int32 dwMode
);
Parameters
dwMode
This parameter is for specifying gain control selecting one of the values listed below.
OBR_GAIN_MODE0 : Gain mode 0
OBR_GAIN_MODE1 : Gain mode 1
OBR_GAIN_MODE2 : Gain mode 2
OBR_GAIN_MODE3 : Gain mode 3
OBR_GAIN_AUTO : Gain auto (For DT-X7, IT-800, IT-300, and DT-X8)
Return Values
OBR_OK : Normal end
OBR_PRM : Parameter error
OBR_PON : Open already
OBR_NOT_DEVICE : Scanner driver error. In the Device Emulator, this value is not returned.
FUNCTION_UNSUPPORT : Unsupported error
Note:
Setting up the scan width control function (OBRSetSwingAngle function) in one of four
m
odes while the setting gain (OBRSetGainControl function) is set up in Auto mode may
cause a
deterioration of scanning bar codes that are printed in a poor quality. If you need to
set up the scan width control function, select the setting gain in Mode 0 to Mode 3. Or, if
you select the setting gain in Auto mode, select the scan width control function in "No
control on laser beam emission width" mode only.