Check if axes is updated or plotting asynchronous
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su MATLAB Support Package for IP Cameras in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!