MATLAB Answers

Data acquisition and Visualisation of LIDAR sensor in REAL TIME

3 views (last 30 days)
Hello Guys :)
I have a LIDAR sensor with CANOpen Communication, which sends/has 11 beams in an angle of 88°. I already created a Simulink-Model where the distance for each beam are visible. Now I would like to create a Visualization for the LIDAR sensor, please look at the attachment.
The problem is, I don't know how to realize the live or real time Visualization. I would be thanksful for each recommendation.

  0 Comments

Sign in to comment.

Accepted Answer

Thomas Satterly
Thomas Satterly on 12 Nov 2019
Matlab isn't very good at graphics with high update rates, but it is doable. I'd suggest looking at the line and scatter objects closely, specifically the XData, YData, and ZData properties. You can continuously update properties in line or scatter (or any graphics primitive) object and make a call to drawnow to re-draw the plot, which is about the fastest method for animating data. You should also minimize the number of graphics objects that are in the plot, i.e., a single line object with 10,000 points is much more graphically efficient than 100 lines with 100 points each. A scatter type might be more helpful in your case because you can also set the color per data point, as is seen in your example images.

More Answers (0)

Sign in to answer this question.