EasyManua.ls Logo

Alkeria NECTA Series - Trigger Configuration Example; External Trigger Frame Acquisition; External Trigger Line Acquisition

Default Icon
140 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6. Trigger 74
The third trigger signal is properly received and accepted as the previous exposure is already complete.
LineStartTrigger
LineStartTriggerReady
Exposure
Errors
0
1
Trigger Delay
Shutter
Trigger Delay
Figure 6.2: Exposure timings
6.7 TRIGGER CONFIGURATION EXAMPLE
6.7.1 External trigger frame acquisition
The following example assumes that you want to acquire a frame composed by 5 lines every time a rising
edge on input port 1 is detected. Frame start trigger ready signal is routed to output port 3.
External Input
LineStartTriggerReady
Exposure
Figure 6.3: External trigger frame acquisition timings
As shown in Figure 6.3, the frame-start-trigger-ready signal has to go high before the rising edge of the
signal on port 1. If this constraint is not respected, the trigger will not be accepted.
Example Code 6.3 | External trigger line acquisition
// Set 5 lines per frame
device.ImageSizeY = 5;
// Set shutter time to 1 ms
device.Shutter = (uint)(1e-3/device.GetFeatureUnitInfo(Feature.Shutter).Factor);
// Set debounce time to 1 us
UnitInfo units = device.PIOPorts[1].DebounceUnitInfo;
device.PIOPorts[1].DebounceTime = (ushort)(1e-6 / units.Factor);
device.FrameStartTrigger.Source = TriggerSource.External;
// Select input port 1
device.FrameStartTrigger.ExternalInput = 1;
// Rising edge
device.FrameStartTrigger.DetectExternalInputEdge = true;
device.FrameStartTrigger.InvertExternalInput = false;
// Enable frame trigger
device.FrameStartTrigger.Enabled = true;
// Export Trigger ready signal on port 3
device.PIOPorts[3].Source = OutputSource.FrameStartTriggerReady;

Table of Contents