Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 11 months ago.
Matlab Interface with Mbed USB port
I used the USBdevice example to send random data to the PC through the USB, is there a way to receive this data by the PC using Matlab? Anyone can help
I've managed to use MatLab serial comunication once with my Arduino Uno, i haven´t tried with mbed, but i can't think of a reason why it wouldn't work. You could try following this link: http://www.mathworks.com/help/matlab/matlab_external/getting-started-with-serial-i-o.html
posted by Thiago . 07 Dec 2015no problem with receiving and sending serial data with matlab to/from Mbed, the problem is with receiving and sending data using USB
posted by Asmaa Farahat 07 Dec 2015So what problem do you have?
posted by Erik - 07 Dec 2015i need a matlab host program that can send/receive data between the mbed USB and the PC
posted by Asmaa Farahat 07 Dec 2015Oh you don't want to use USB CDC (USBSerial) to do it? That is in principle the easiest solution to use.
posted by Erik - 07 Dec 2015if i did this, i will be limited with the serial interface data transfer speed rates, and i need to transfer data with the USB rates, is there a solution?
posted by Asmaa Farahat 07 Dec 2015Yep, you are limitted to about 1mbit/s, but I don't know if you are going to get much faster using normal USB HID.
posted by Erik - 07 Dec 2015and how can i use 1mbits/s and the maximum baudrate for the serial object created by matlab is 115200 ?
posted by Asmaa Farahat 07 Dec 2015