The VisionSensor PV / PV2 is a compact programmable Linux camera based on a single-core ARM Cortex-A9 SoC (armhf architecture). Unlike the VisionCam, it does not provide a "Real Time Communication Controller" (RTCC). Sensor trigger and the integrated LED are controlled by this libraray, while the digital I/Os are controlled by the VisionBox Interface Library.
Take a look at the Sensors page for information about available sensors for each platform.
The function FG_set_trigger_mode() is used to configure one of the trigger modes:
Example:
The VisionSensor PV / PV2 uses a fixed connection from digital input IN0 to the sensor in hardware triggered mode. Therefore, no additional initialization code is necessary. The rising edge will be used.
The operating mode of the integrated LED unit and the exposure output signal can be controlled by software or by a physical mode switch:
The position of the physical switch is used for mode selection unless it's overwritten by software. For software mode control, use the special feature StrobeMode. The value for this parameter is equal to the switch position for modes 0...2:
Switch position | Software control (StrobeMode) | Integrated LED | Digital output OUT<i> |
---|---|---|---|
0 | 0 | Enabled | Controlled by VIB::DigitalOutput |
1 | 1 | Off | Sensor exposure signal |
2 | 2 | Off | Controlled by VIB::DigitalOutput |
- | 3 | Enabled | Sensor exposure signal |
- | -1 | Controlled by switch |
Property name | Description | Library |
---|---|---|
StrobeMode | Sets the operating mode for the integrated LED and the exposure signal for replacing the physical mode switch. -1...3: strobe mode (default: 2 if no switch is present)
| ≥ 1.2.0.0 |
StrobeOutput | Selects the digital output line for the external exposure signal. 0...<i>: index of digital output signal OUT<i> (default: 0)
| ≥ 1.2.3.0 |
Example: