フィルターのクリア

how to use parallel processing for plotting data in an online manner!?

2 ビュー (過去 30 日間)
sajjad hosseinifard
sajjad hosseinifard 2018 年 7 月 19 日
編集済み: sajjad hosseinifard 2018 年 7 月 19 日
hello everyone I'm working on the some gyro sensor! I should receive their data simultaneously and plot them in an online manner!! When MATLAB tries to plot the data, it could not plot data in the speed that data is received on COM port! So showing data by graph is accompanied with delay!I could not remove this delay! I think parallel processing and using GPU increase the speed and remove or decrease the delay in online plotting! I use set() function to update data for online plotting! Who can help me!? following code is a part of my code!this part is used for plotting data in an online manner...
plotGraph1 = plot(time,data1,'-mo',...
'LineWidth',1,...
'MarkerEdgeColor','k',...
'MarkerFaceColor',[.49 1 .63],...
'MarkerSize',2);
title(plotTitle1,'FontSize',10);
xlabel(xLabel,'FontSize',10);
ylabel(yLabel,'FontSize',10);
axis([0 10 min max]);
hold on;
grid(plotGrid);
set(plotGraph1,'XData',time(time > time(counter)-scrollWidth),'YData',data1(time > time(counter)-scrollWidth));
hold on;
axis([time(counter)-scrollWidth time(counter) min max]);

回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by