View Full Version : DMK42BUC03 External Hardware Trigger in Matlab

October 28, 2016, 21:01:38
I am looking to capture two simultaneous images using the external trigger on the DMK42BUC03. In Matlab I am trying to set triggertype to "hardware" but for some reason that is not a valid argument. Matlab documentation (https://www.mathworks.com/help/imaq/specifying-the-trigger-type.html) says that only a subset of image acquisition hardware is capable of performing an external trigger. Is there some sort of work-around to use the triggering device on these cameras to set this external trigger. Since this function works for these cameras in IC capture, I can not imagine this is impossible to also do in Matlab.

Thanks in advance!
Sarang Yeola

Stefan Geissler
October 31, 2016, 09:29:10

triggertype "hardware" is not available, because I simply did not implement it in the plugin. However, in the properties of the camera you will find a "Trigger" property, which can be enabled. Matlab code using that will look like

vid = videoinput('tisimaq_r2013', 2, 'Y800 (1280x960)');

src = getselectedsource(vid);

%triggerconfig(vid, 'hardware'); % No such field, only 'Immediate ' or 'manual'
src.Trigger = 'Enable'; % That enables the trigger mode

vid.FramesPerTrigger = 10;
wait(vid, 10);

I hope, this helps.