Check if axes is updated or plotting asynchronous
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on MATLAB Support Package for IP Cameras in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!