Vimba C++ FireWire external trigger

Example for FireWire (IEEE 1394) external trigger using Vimba C++:

FeaturePtr feature;
CameraPtr camera;
std::string lineMode;

// Select Line0
camera->GetFeatureByName( "LineSelector", feature);
feature->SetValue("Line0");
// Make sure that Line0 is an input
camera->GetFeatureByName( "LineMode", feature);
feature->GetValue(lineMode);
if (lineMode == "Input" ) throw 666;
// Configure Line0 as trigger input
camera->GetFeatureByName( "LineRouting", feature);
feature->SetValue("Trigger");
// Set trigger type to ExposureStart
camera->GetFeatureByName( "TriggerSelector", feature);
feature->SetValue("ExposureStart");
// Switch TriggerMode on
camera->GetFeatureByName( "TriggerMode", feature);
feature->SetValue("On");



Back to list