Linux-tiscamera-Programming-Samples icon indicating copy to clipboard operation
Linux-tiscamera-Programming-Samples copied to clipboard

How to call trigger software in cpp

Open Bardia-Khodadadeh opened this issue 2 years ago • 1 comments

Hi how can I call the trigger software function used in tcam-Capture application in cpp 20230603_163828

Bardia-Khodadadeh avatar Jun 03 '23 12:06 Bardia-Khodadadeh

Hello

After building your pipeline, you enable the trigger mode by

 tcam_property_provider_set_tcam_enumeration(TCAM_PROPERTY_PROVIDER(source), "TriggerMode", "On", &err);

You fire a software trigger by

   tcam_property_provider_set_tcam_command(TCAM_PROPERTY_PROVIDER(source), "TriggerSoftware", &err);

You may refer to the software trigger sample at https://github.com/TheImagingSource/tiscamera/blob/master/examples/c/06-softwaretrigger.c. After installing the dev packages from https://github.com/TheImagingSource/tiscamera/releases, this sample should be on your computer.

Stefan

TIS-Stefan avatar Jun 05 '23 14:06 TIS-Stefan