UDP Real Time Plotting Animated Lines

Udp Real Time Plotting Using animatedLines
383 Downloads
Updated 25 Jul 2016

View License

Udp Real Time Plotting using animatedLines. It plots multiple animatedLines on a single Axes. Uses the callback bytesAvailableFcn to schedule when to read and plot the data. Hopefully this will help people who are also trying to do real time udp data plotting. You may need to change different values to get the code to work for you. Some parts of the code are designed for how I'm formatting the udp data I'm sending to the computer running the matlab script. Therefore this code may not work for you unless you tweak it but I hope it helps.
Please note that you need to hard Code the IP address of the server (other computer sending the data) for you to be able to receive the data. Good luck on your project

Cite As

Matthew Mellor (2024). UDP Real Time Plotting Animated Lines (https://www.mathworks.com/matlabcentral/fileexchange/58379-udp-real-time-plotting-animated-lines), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on View and Analyze Simulation Results in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

Updated to show the use of a server IP address instead of a server hostname
Just changed the title so it is more readable