
AW00118501000 Acquisition Control
Basler racer Camera Link 57
// Set the mode for the selected trigger
Camera.TriggerMode.SetValue( TriggerMode_On );
// Set the source for the selected trigger to CC1
Camera.TriggerSource.SetValue ( TriggerSource_CC1 );
// Set the trigger activation mode to rising edge
Camera.TriggerActivation.SetValue( TriggerActivation_RisingEdge );
// Set for the trigger width exposure mode
Camera.ExposureMode.SetValue( ExposureMode_TriggerWidth );
// Line acquisition will start each time the externally generated
// line start trigger signal (ExLSTrig signal)goes high
You can also use the Basler pylon Viewer application to easily set the parameters.
Setting the Parameters Using Direct Register Access and Applying the Signal
To set the parameters needed to perform hardware line start triggering via direct register access:
Set the value of the Acquisition Line Period Enable register to 0 (false).
(This will disable the camera’s ability to control the line period internally and allow you to
control the line rate with an external signal.)
Set the value of the Trigger Mode Line Start register to On.
Set the value of the Trigger Source Line Start register to receive the external trigger signal on,
CC1, CC2, CC3, or CC4.
Set the value of the Trigger Activation Line Start register to Rising Edge or Falling Edge as
desired.
Set the value of the Exposure Mode register to Timed or to Trigger Width.
If the mode is set to timed, set the value of the Exposure Time Raw register as desired.
A value in a raw register is simply an integer value with no units. To determine what the actual
setting will be, you must multiply the value in the raw register by the camera’s time base. The
time base on racer cameras is 100 ns.
For example, if you set the Exposure Time Raw register to 1000, the exposure time would be
100 µs (1000 x 100 ns = 100 µs).
Apply the appropriate externally generated electrical signal (ExLSTrig signal) to the selected trigger
source.
For more information about direct register access, see Section 3.2 on page 16.
Kommentare zu diesen Handbüchern