The VisionSensor PV is a compact programmable Linux camera. 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.
There are two generations:
Also take a look at the Sensors page for more information.
The function FG_set_trigger_mode() is used to enable sensor trigger by digital input.
Example:
The debounce setting for the digital inputs will also be applied for the trigger signal. See VIB::DigitalInput::ConfigureDebounceTime() for adjustment of the debouncing time.
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 VisionSensor PV3 provides the Special feature TriggerLine to control the trigger input and the edge sensitivity. The trigger input can be IN0, IN1 or both. The sensitivity can be rising edge, falling edge or both edges. Input IN0 with rising edge is used by default.
Example:
A trigger divider can also be used to decrease the frequency of the trigger events, see Special feature TriggerDivider.
Example:
In Line scan mode, the input IN1 is available as a frame trigger signal by using the Special feature FrameTriggerMode value 2 or 3.
The operating mode of the integrated LED unit and the exposure output signal can be controlled by a physical mode switch or by software:
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 |
The mode switch is not present on most devices, the default setting after initialization is then 2.
Example:
The LED current can be adjusted for the following hardware:
The LED current is controlled by the following special feature:
Property name | Description | Version requirements | |
---|---|---|---|
FPGA | Library | ||
LedCurrent | LED current in percent for adjustable LED units: range: x...100 (the minimum value depends on the LED hardware) Default value for multi-channel LED illumination unit: 100 Default value for adjustable ring light: 28 (similar to non-adjustable version) | ≥ 1.0.0.70 (for adjustable ring light only) | ≥ 1.4.0.0 |
A sequencer can be used to apply different settings to subsequent sensor frames:
The sequencer is configured using special features as follows:
The sequencer is controlled by the following special features:
Property name | Description | Version requirements | |
---|---|---|---|
FPGA | Library | ||
SequencerStepCount | Number of active Sequencer steps range: 1...4 (default: 1) | ≥ 1.0.0.70 | ≥ 1.4.0.0 |
SequencerStep | Selected Sequencer step index for using the following special options: SequencerTriggerMode, SequencerFlashTime, SequencerFlashEnable range: 0...(SequencerStepCount - 1) (default: 0) | ||
SequencerTriggerMode | Trigger mode for the selected Sequencer step. This setting is ignored in free run mode: 0: disable sensor trigger for this step, acquire image when the sensor is ready 1: enable sensor trigger for this step (default) | ||
SequencerFlashEnable | LED illumination unit: a bit field for selecting active LED channels for the selected Sequencer step. range: 0x0...0xf (default: 0x3 - channel 0+1 for step 0, else 0x0) | ||
SequencerFlashTime | LED illumination unit: strobe duration for the selected Sequencer step in micro-seconds. range: 1...16384 (default: 100) |
Correlation between acquired images and the used sequencer step can be done in two ways:
image_scan_count
equal to the number of sequencer steps. The resulting image will contain the sensor images for all steps after another in memory.The trigger mode can be used to enable or disable the sensor trigger for each sequencer step.
The trigger is activated by default for all steps, so the sensor will wait for a trigger signal (hardware or software trigger). If the trigger mode is disabled for a sequencer step, the sensor will start acquisition as soon as the previous sensor exposure and readout has completed.
Example:
The following example configures the sequencer to capture three frames for each trigger event:
In free-run mode, the sequencer trigger mode setting affects the acquisition as follows:
The following LED parameters can be changed for each sequencer step when using the multi-channel LED illumination unit:
Example: