필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

trigger occasionally fails to log frames to memory

조회 수: 2 (최근 30일)
Hyunsung
Hyunsung 2013년 5월 1일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi
Can some one shed a light on the reasons why Matlab sometime fails to log frames to memory. after running for appprox. 3-5 min the following code, i found trigger(vid) is not able to log any frame to memory even if I extend my wait time(found by using 'isloging' and 'FramesAvailable' commands).My vid is running the whole time checked using 'isrunning' inside the loop.
-----------------------------this is the code i use---------------------------
imaqmem(1000000000);
vid = videoinput('gige',1,'RGB8Packed');
src = getselectedsource(vid);
src.PacketDelay = 1000;
src.PacketSize = 9000;
triggerconfig(vid, 'manual');
set(vid,'TriggerRepeat',inf);
set(vid,'FramesPerTrigger',2);
preview(vid);
start(vid);
pause(2)
for i = 1:10000000
Trigger = i
trigger(vid);
wait(vid,240,'logging')
RGBimage = getdata(vid,1);
flushdata(vid);
end
stoppreview(vid);
delete(vid);
clear all
close all
  댓글 수: 1
Hyunsung
Hyunsung 2013년 5월 3일
편집: Hyunsung 2013년 5월 3일
After digging a little bit deeper, it seems like a my object's Timeout value was never reached which causes the failure. is there a way I can monitor my obj's running timeout value constantly so I can verify my assumption?
thx

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by