User manual

30
4.9 OBRSetSwingAngle
This function sets up the Scan Width Control. The laser beam irradiation width for each angle can be
set in the OBR calibration. If the setting is not performed, the irradiation width will be automatically
set with the factory default setting.
In the Device Emulator, the function does not perform, but stores the preset value as internal
variable. The value stored can be checked with OBRGetSwingAngle func
tion.
Calling Sequences
[C++]
int OBRSetSwingAngle(
DWORD dwMode
)
[Visual Basic]
Public Shared Function OBRSetSwingAngle( _
ByVal dwMode As Int32 _
) As Int32
[C#]
public static Int32 OBRSetSwingAngle(
Int32 dwMode
);
Parameters
dwMode
This parameter is for specifying laser beam swing angle selecting one of the values listed
below.
OBR_SWING_OFF : No swing angle control
OBR_SWING_WIDE : Wide swing angle
OBR_SWING_MIDDLE : Middle swing angle
OBR_SWING_NARROW : Narrow swing angle
Return Values
OBR_OK : Normal end
OBR_PON : Open already
OBR_PRM : Parameter error
OBR_NOT_DEVICE : Scanner driver error. In the Device Emulator, this value is not returned.
FUNCTION_UNSUPPORT : Unsupported error
Note:
The OBR calibration can be performed using the dedicated bar image. Navigate to Control
Panel Laser Setting icon and then Others tab.
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