Modify drawnow limitrate to update only 10 frames per second.

22 ビュー (過去 30 日間)
Kishore Kumar
Kishore Kumar 2021 年 11 月 16 日
編集済み: Jan 2021 年 11 月 16 日
My work is based on real time data acquisition and I am plotting the data in real time. My program currently reads 200 sets of data per second. I have used
drawnow limitrate
to speed up the process. But is there any way to reduce the frame update to 10 per second?
I also have annotation that specify values of peaks which will be also be updated with all 200 sets of data. Does drawnow work on annotaion as well or will it just work on plot?
Thank you for any help.

採用された回答

Jan
Jan 2021 年 11 月 16 日
編集済み: Jan 2021 年 11 月 16 日
figure;
axes('NextPlot', 'add');
tic;
while 1
plot(rand, rand)
if toc > 0.1
drawnow;
tic;
end
end
drawnow triggers the update of the contents of the figure. This concerns annotations also.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by