This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How can I send data from Concerto F28M35x to Computer using a serial COM port?

Hi

I have a array of data and I wanted to send it to matlab. How can I send data from Concerto F28M35x to Computer using a serial COM port?

I am trying to understand the example USB_DEV_SERIAL M3 but I can not make it to send data to serial COM port. In the device manager it does show the COM6 working fine.

Here is matlab code that I am using to receive the data:

s = serial('COM6','BaudRate',115200);
fopen(s);

an = fscanf(s,'%c');

fclose(s)
delete(s)
clear s

Other suggestions on how to transmit data to computer through COM port will be appreciated. 

Thank you

Mandy