MATLAB Answers

0

arduino interface with matlab

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

  0 Comments

Sign in to comment.

Tags

4 Answers

Answer by Javier Ruiz on 19 Mar 2011
 Accepted Answer

Can you provide more information? Are you successfully acquiring the data from Arduino to MATLAB?

  2 Comments

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^^
can anyone help me out??..please?

Sign in to comment.


Tee
Answer by Tee
on 19 Mar 2011

=.=

  0 Comments

Sign in to comment.


Tee
Answer by Tee
on 19 Mar 2011

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

  0 Comments

Sign in to comment.


Tee
Answer by Tee
on 19 Mar 2011

i think i have to use it, cause i need control the motor through it...

  0 Comments

Sign in to comment.