Vimba C++ GigE external trigger

This C++ sample code for VimbaCPP shows how to configure the external trigger mode of GigE cameras.
During continuous acquisition, each frame should be triggered by an external signal with rising edge on Input1.

/// Declaration
FeaturePtr feature;
CameraPtr camera;

/// Select ExposureStart trigger
camera->GetFeatureByName( "TriggerSelector", feature);
feature->SetValue("FrameStart");

/// Select Input1 as trigger source
camera->GetFeatureByName( "TriggerSource", feature);
feature->SetValue("Line1");

/// Configure rising edge trigger
camera->GetFeatureByName( "TriggerActivation", feature);
feature->SetValue("RisingEdge");

/// Enable trigger
camera->GetFeatureByName( "TriggerMode", feature);
feature->SetValue("On");



Back to list