arduino interface with matlab

조회 수: 2 (최근 30일)
fremond khoo
fremond khoo 2011년 3월 19일
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 myself..so 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 arm..by 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 simultaneously..how do i do that?..do 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
Tee 2011년 3월 19일
=.=

Tee
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
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