FORUM TOPIC · READ ONLY

Send data from Explorer16 to Matlab ?

Send data from Explorer16 to Matlab ?

Forum : General Remark and Questions

3 message(s) · archive en lecture seule

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
laurent841

Re: Send data from Explorer16 to Matlab ?

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

Re: Send data from Explorer16 to Matlab ?

Hi laurent,

Thanks for sharing your experience.



Lubin