arduino interface with matlab

2 次查看(过去 30 天)
hi and good day to all,
i want to ask about the interface with arduino and matlab..i am now trying to get the data from potentiometer which is attached at my stepper motor shaft..can anybody tell me how to get the data from potentiometer through arduino board to my computer(MATLAB) and try to plot the graph at the same time?..i have the code to plot the graph but i cant run both files at the same..
either i run my motor or get data from potentiometer by turning the potentiometer how do i solve this??..
anyone would be so kind to help out here??
thanks in advance^^


Javier Ruiz
Javier Ruiz 2011-3-19
Can you provide more information? Are you successfully acquiring the data from Arduino to MATLAB?
  2 个评论
fremond khoo
fremond khoo 2011-3-19
yup..i successfully acquire data from arduino to matlab already..
my project is to connect and run a two-link robot attaching a potentiometer at each of the motor shaft, i am required to obtain the data from the potentiometer to know the rotation of my motor shaft..but i need to use arduino to get the data then transfer the data to matlab and plot the graph..
now i have successfully acquire the data from arduino to matlab by manually rotating the potentiometer myself and not by the motor..
my stepper motors operate by using MATLAB GUI so since i have to operate my motor to move the potentiometer i cant open another file at the same time to acquire the data from potentiometer..
the problem is how do i acquire the data from arduino to matlab by operating my stepper motor at the same time?..i wish to acquire the real result of my potentiometer while attaching to my moving stepper motor do i do that? i need to combine both the files together??
thanks again for your information^^
fremond khoo
fremond khoo 2011-3-19
can anyone help me out??..please?


更多回答(3 个)

Tee 2011-3-19

Tee 2011-3-19
now, i try learning IO package, but don't know how to link with Matlab GUI, after u learnt this data acquisition teach me, haha

Tee 2011-3-19
i think i have to use it, cause i need control the motor through it...


Help CenterFile Exchange 中查找有关 Arduino Hardware 的更多信息


Community Treasure Hunt

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

Start Hunting!

Translated by