8 years, 4 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

Question relating to:

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 2015

no 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 2015

So what problem do you have?

posted by Erik - 07 Dec 2015

i need a matlab host program that can send/receive data between the mbed USB and the PC

posted by Asmaa Farahat 07 Dec 2015

Oh 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 2015

if 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 2015

Yep, 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 2015

and 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
Be the first to answer this question.