Hey everyone,
I have a problem with my project, I want my arduino to process my encoder data and have a final value of dis (displacement), and my Matlab to process my kinect Data and have a final value of phi, then I want to use the both values together.
Here is my problem: How should I send data from my arduino to matlab noting that I want them both process separately?
please help me.
best regards
Ahmad
Hi Ahmad,
The best place to find some information about interfacing your Arduino with MATLAB would be here and on the MATLAB forums.
Sincerely,
thank you a lot for your advice but what I am asking is not that,
I am asking how should my arduino and matlab process separately and in the end I use them both outputs?
by other words, how can I run a program in arduno and export the output value of that program into my matlab workspace?(while my matlab is doing another program)
A possible, simple approach would be to write code for your Arduino to obtain your data and send it out by the serial interface (USB). Then, you can use MATLAB to retrieve this data (info here, here and here) and process it as needed.
Your MATLAB code would have to process your other data and also read from your Arduino’s virtual COM port (VCP).
You can also use MATLAB and Simulink to program the Arduino directly. You can read more here (you can get there from our previous link).
Please note that we typically offer support for product selection and issues specifically for robotics. You would most likely be better off asking in-depth question about programming in MATLAB for concurrent programs (MATLAB & Arduino) in that software’s forum.
Sincerely,
thank you a lot Scharette, The reason that I post a question like that in this forum is that I always get good answers, thanks so much for your concern.
regards
Ahmad