peekdata help
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi folks,
I'm having a bit of trouble with peekdata.
I have a video object created called 'vid',
I'm using
triggerconfig(vid,'manual');
start(vid);
RGBData = peekdata(vid,1);
This works fine, I get a 3d array in RGBData. But it only works in debug mode. As soon as I run it from the GUI I get...
"Warning: PEEKDATA could not return all the frames requested."
and RGBData is now empty... I can't understand why it works in debug but not when running normally.
thanks in advance, this is driving me nuts. Ollie
p.s. i'm trying to gather frames from a webcam indefinitely, is there's a better way to go about it?
댓글 수: 0
답변 (3개)
Walter Roberson
2012년 3월 11일
Possibly there simply has not been enough time for the data to arrive. Try adding a small pause()
참고 항목
카테고리
Help Center 및 File Exchange에서 Acquisition Using Any Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!