User Manual for Machine Vision Cameras
104
11.7.4
User Output
When choosing the "User Output" output mode, the user can enter a value after the "User Value" control to set the
corresponding line output 0 or 1. The value here is only the low three bits of binary, for example when line1, line3 is set to
the "User Output" output mode and the "User Value" is set to 4 (undefinedb100), then line3 outputs 1, line1 output 0. as
shown in Figure 11
UserOutput
Value:
1
0
0
LSB
Line:
line3
line2
line1
Figure 11
-
24
User
-
defined output schematic diagram
The following is the API code to set User Output:
Toupcam_IoControl(m_hCam, index, TOUPCAM_IOCONTROLTYPE_SET_OUTPUTMODE, 3, NULL);
Toupcam_IoControl(m_hCam, 0, TOUPCAM_IOCONTROLTYPE_SET_USERVALUE, val, NULL);
11.8
Camera control parameter configuration
11.8.1
Exposure time
The exposure time range is specified in the camera technical specifications section(Sec.1). Exposure time control
supports manual control and automatic exposure control. When the camera is in trigger mode, the automatic control
exposure feature will be disabled.
Figure 11
-
25
Exposure time setup
As shown in Figure 11
25, in
democpp
, click "Config" in the top control menu. Click "Auto Exposure" and the "
✔
"
checkmark indicates that automatic control exposure mode is on. Click again to exit the current mode. Click "Exposure
Time" menu and a dialog called Exposure Time will pop up and drag the slider in the new dialog to manually set the
exposure time control.