Page 1 of 1

Send data from Explorer16 to Matlab ?

Posted: Mon Apr 13, 2009 5:07 pm
by laurent841
Hi Lubin,

I started to use the toolbox for a couple of days. I work on the Explorer 16 board and I'm currently trying to send data to Matlab using the UART, but it doesn't work.

In order to begin with a very simple model, I just want to send a constant (uint16) to Matlab using UART communication.

Since I don't have any DB9 port on my computer, I use a serial to serial (USB) adaptater. Matlab doesn't even seem to recognize when I unplug the USB port because it still gives me this message when I click on "Connexion" in the rs232gui :

Connecting... May take few seconds...
Port COM1 successfully open at 19200............OK

I let the original plot commands in the script frame of rs232gui. If I let the USB cable plugged, Matlab displays the following message when I click on Start :

redefinition SerialCOM

and nothing else happens.

Is there any test I can perform to check if data are sended from the board trough UART ? Am I right to precise COM1 in the model if I use an USB adaptator ?

Thank you in advance for your reply,
Kind regards,

Laurent

Re: Send data from Explorer16 to Matlab ?

Posted: Mon Apr 13, 2009 6:14 pm
by laurent841
Ok it seems to work fine now. I used UART1 but only UART2 is cabled on Explorer16.

In addition, the USB adaptater was in fact the port COM8 instead of COM1.

Have a nice Easter Eggs,
Kind regards,

Laurent

Re: Send data from Explorer16 to Matlab ?

Posted: Tue Apr 14, 2009 1:05 pm
by LubinKerhuel
Hi laurent,
Thanks for sharing your experience.

Lubin