Difficulty triggering hardware frame grabs on Matrox board

10 views (last 30 days)
I have a Matrox Solios EVCL board and Matlab 2014b. Triggering works as expected within Matrox Intellicam (Mil 9). I then use the same .dcf file in Matlab and see strange behavior. In short, my sequence of frames will not begin grabbing until the second or third TTL is sent to the board.
Here is how I configure my video object:
triggerconfig(vid, 'hardware', 'risingEdge', 'ttl0-DB9');
vid.TriggerRepeat = 0;
vid.FramesPerTrigger = 10;
Next,
>>start(vid)
>>
(At this point I have control of the command line. The first TTL does nothing and nothing is indicated in the vid log structure. Then, reliably, when I put the second TTL on the line, my 10 frames will begin grabbing. )
>> [x t] = getdata(vid);
>> t
t =
0
0.1002
0.2004
0.3008
0.4011
0.5013
0.6015
0.7019
0.8022
0.9024
My camera is set to 10 fps, so the above is correct.
N.B. The above behavior happens only after I first initialize everything. Things change on the subsequent attempts at arming the trigger:
>>start(vid)
Command line hangs after this next attempt at arming the trigger, but command line access will return after I send over one TTL. The first of my 10 frames will grab on the second TTL I send. However, it will wait until the third TTL to begin acquiring the remaining 9 images. The time between my 2nd and 3rd TTL in the example below was exactly 1.3 seconds. The remaining frames were grabbed at 10 Hz.
>> [x t] = getdata(vid);
>> t
t =
0
1.3036
1.4039
1.5042
1.6044
1.7047
1.8050
1.9053
2.0056
2.1058
I'm using a Dalsa 1M60 camera.

Answers (0)

Community Treasure Hunt

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

Start Hunting!