Press record button in external program and then resume MATLAB code?

1 view (last 30 days)
I want MATLAB to pause somewhere in the code until I press the video "record" button in an external program (in my case FlyCapture2 from Point Grey). Is this possible?

Answers (1)

Walter Roberson
Walter Roberson on 4 Sep 2015
According to http://www.ptgrey.com/Content/Images/uploaded/FlyCapture2Help/flycapture/03demoprogram/gpio%20and%20trigger.html you can configure those kinds of cameras to strobe a GPIO signal under programmable conditions. There is an item there about synchronizing multiple cameras, which is the same process, effectively. You would configure MATLAB to wait until it was triggered by the input signal.
Responding to trigger signals especially in GPIO pins, would generally be something you would use the Data Acquisition Toolbox for, but another route would be to have a Raspberry Pi reading the GPIO pin and talking to MATLAB about it; see http://www.mathworks.com/help/supportpkg/raspberrypiio/ref/readdigitalpin.html

Community Treasure Hunt

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

Start Hunting!