Filter löschen
Filter löschen

Real time plot for 4 sensor data

4 Ansichten (letzte 30 Tage)
vinutha sampaath
vinutha sampaath am 9 Apr. 2017
Kommentiert: vinutha sampaath am 15 Apr. 2017
The output of four sensors has been acquired using arduino and I need to make a real time plot for it in MATLAB.I have attached the images for your reference.The first image is output of 4 sensors that is acquired in arduino When I made a MATLAB coding for it only the first plot appeared and the other three sensor data was not plotted.So I made a small change by adding some variables in between,I have attached an image for it and this is the second image.While I was doing in this way, only the first two sensor data was acquired.Kindly suggest me with the changes to be made and will I lose any data if I am plotting by this code or should I use multithreading concept.

Antworten (1)

Nick
Nick am 10 Apr. 2017
Hi I've attached code that I have used in the past to graph values from the Arduino, it should get you started. It should be noted that I was using this code before the Arduino support package was around so I am getting data/ connecting to Arduino in a different way so you will need to change that.
  1 Kommentar
vinutha sampaath
vinutha sampaath am 15 Apr. 2017
I will check this out and see whether there is no lag in data acquisition

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by