MATLAB Answers

How much speed MATLAB can access arduino serial port for data acquisiton?

26 views (last 30 days)
Naveen  kumar
Naveen kumar on 29 Oct 2020
Answered: Saurav Chaudhary on 2 Nov 2020
I am reading a sample from arduino using script available at https://in.mathworks.com/matlabcentral/fileexchange/46775-arduino-serial-data-acquisition
so my question
  1. How much fast can i store the data from the serial port of the device to MATLAB workspace? Is there any upper limit to access the serial data from the arduino? simply, I would like to know i need to store the data with higher sampling frequency > 5000 samples/sec
for example, I want to access the data with 100 Hz sinusoidal singal with a sampling frequency of 10000. It means i can store 100 samples in a variable for a duration of 1 Sec.
2. can i access data acquisiton tool box for arudino?

  0 Comments

Sign in to comment.

Answers (1)

Saurav Chaudhary
Saurav Chaudhary on 2 Nov 2020
  1. Refer this https://www.mathworks.com/matlabcentral/answers/327998-maximum-sampling-frequency-of-analog-input-through-arduino-uno MATLAB answer to find more about it. But again everything depends on "how you" implemented it. If you used a timer to start the acquisition then the sampling time is the timer period. If you just wrote the acquisition in the loop function and there are other routines in there then the sampling interval can vary and depends on what is being executed.
  2. Yes, "Data Aquistion Toolbox" (DAQ) is used to read data from various input devices.The toolbox supports a variety of DAQ hardware. Aso the toolbox functions give you the flexibility to control the analog input, analog output, counter/timer, and digital I/O subsystems of a DAQ device.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by