External Triggering of Image Acquisition

7 views (last 30 days)
Aleksandr Bashkatov
Aleksandr Bashkatov on 21 Jul 2019
Answered: Jeremy on 31 Jul 2019
Hello everybody,
I have met a problem regarded to the triggering of the camera using Image Acquisition toolbox. If anyone can help me, that would be great, thanks in advance.
So, I am using a JAI camera which connected through 'gentl' adaptor. I would like to trigger the acquisition via an external button trigger (home-builded). The day of seeking did not bring me any idea of how to come up with a solution.
As far as I understood I need to use hardware Triggertype rather than a manual one, however, I cannot understand how to get TriggerCondition and TriggerSource which are the DeviceSpecific. Should I know the Trigger properties from the producer (workshop)? Or should I define them by myself?
Thank you.

Answers (1)

Jeremy
Jeremy on 31 Jul 2019
I don't have any experience with JAI cameras and might be of little help, but I had the same problem with FLIR cameras, for which the hardware trigger is not straigthforward to set in Matlab.
If you haven't tried yet, I would start by just opening the "videosource" object by double-clicking it from the workspace.
Cam = videoinput('gentl');
CamSource = Cam.Source; % ← This "videosource"
This displays an interface in which you can see the different parameters and their accepted values... and try to identify the one that could be the hardware trigger, which you would then have to change accordingly, on top of changing the "normal" trigger properties as you suggested. It could require to change several values (e.g. one to select the input line, and one to enable "external triggers").
You could also look into the SDK manual from JAI to try and find some clues, but it would probably be easier to directly contact someone from JAI and ask for the property names.

Products


Release

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!