Image Acquisition ControlBasler scout 91For more information about setting the camera for hardware acquisition start triggering andselecting the input line to receive the ExASTrig signal, see Section 7.4.5.2 on page 91.For more information about the electrical requirements for input lines 1 and 2, see Section 5.7.1 onpage 57.7.4.5.2 Setting the Parameters Related to Hardware Acquisition StartTriggering and Applying a Hardware Trigger SignalYou can set all of the parameters needed to perform hardware acquisition start triggering from withinyour application by using the Basler pylon API. The following code snippet illustrates using the APIto set the parameter values required to enable rising edge hardware acquisition start triggering withline 1 as the trigger source:// Set the acquisition mode to continuous(the acquisition mode must// be set to continuous when acquisition start triggering is on)Camera.AcquisitionMode.SetValue( AcquisitionMode_Continuous );// Select the acquisition start triggerCamera.TriggerSelector.SetValue( TriggerSelector_AcquisitionStart );// Set the mode for the selected triggerCamera.TriggerMode.SetValue( TriggerMode_On );// Set the source for the selected triggerCamera.TriggerSource.SetValue ( TriggerSource_Line1 );// Set the activation mode for the selected trigger to rising edgeCamera.TriggerActivation.SetValue( TriggerActivation_RisingEdge );// Set the acquisition frame countCamera.AcquisitionFrameCount.SetValue( 5 );// Execute an acquisition start command to prepare for frame acquisitionCamera.AcquisitionStart.Execute( );while ( ! finished ){// Apply a rising edge of the externally generated electrical signal// (ExASTrig signal) to input line 1 on the camera// Perform the required functions to parameterize the frame start// trigger, to trigger 5 frame starts, and to retrieve 5 frames here}Camera.AcquisitionStop.Execute( );You can also use the Basler pylon Viewer application to easily set the parameters.For more information about the pylon Viewer, see Section 3.1 on page 43.