Check if axes is updated or plotting asynchronous
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi!
I am writing a camera software in appdesigner with the purpose of recording frames and displaying some live analysis of the frames at the same time.
The camera is high frequency and I can acquire frames much faster than I can display them. With my code right now when I am recording frames I get limited by this display time. I am wondering if there is any way of doing the plotting asyncronously for example something similar to this:
p = gcp();
frame = app.Camera.acquireFrame();
plottingStatus = parfeval(p,@app.displayFrame,1,frame);
while app.ShouldRecordFrames
frame = app.Camera.acquireFrame();
app.writeFrameToFile(frame);
if isequal(plottingStatus,'done')
plottingStatus = parfeval(p,@app.displayFrame,1,frame); % The function displayFrame returns the string 'done' when done plotting
end
end
This does not work due to some warning about parfeval not working on uifigure. Are there any other solution for this?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!