how to use parallel processing for plotting data in an online manner!?
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!