필터 지우기
필터 지우기

External trigger to start recording of multiple frames

조회 수: 2 (최근 30일)
Oliver Köhn
Oliver Köhn 2019년 2월 18일
댓글: Andrew Weitz 2019년 5월 20일
I would like to start recording a certain number of frames after an external trigger has been detected. The following code just records a single frame each time the external trigger is detected. I was expecting 600 frames in this example, because the parameter vid.FramesPerTrigger is set to 600.How can i detect N frames with a certain fps if triggered instead of just one single frame?
"start"
clear all
vid = videoinput('tisimaq_r2013_64', 1, 'Y800 (1280x1024)');
config = triggerinfo(vid);
s = vid.Source;
triggerconfig(vid, 'hardware', 'hardware', 'hardware');
vid.FramesPerTrigger = 600;
vid.TriggerRepeat = 0;
start(vid);
wait(vid, 10);
stop(vid);
[data,d] = getdata(vid, vid.FramesAvailable);
"end"
  댓글 수: 1
Andrew Weitz
Andrew Weitz 2019년 5월 20일
Hi, did you ever figure out a solution? I am having the same problem with a TIS camera.

댓글을 달려면 로그인하십시오.

답변 (0개)

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by