Send data from Explorer16 to Matlab ?

Create new topics, add your comment, remark, bugs...
Post Reply
laurent841
Posts: 4
Joined: Mon Apr 13, 2009 4:47 pm

Send data from Explorer16 to Matlab ?

Post by laurent841 » Mon Apr 13, 2009 5:07 pm

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
Last edited by laurent841 on Mon Apr 13, 2009 6:22 pm, edited 1 time in total.

laurent841
Posts: 4
Joined: Mon Apr 13, 2009 4:47 pm

Re: Send data from Explorer16 to Matlab ?

Post by laurent841 » Mon Apr 13, 2009 6:14 pm

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

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: Send data from Explorer16 to Matlab ?

Post by LubinKerhuel » Tue Apr 14, 2009 1:05 pm

Hi laurent,
Thanks for sharing your experience.

Lubin

Post Reply

Who is online

Users browsing this forum: No registered users and 39 guests