Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
sajjad hosseinifard
sajjad hosseinifard le 19 Juil 2018
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]);

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by