필터 지우기
필터 지우기

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 CenterFile Exchange에서 2-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