Jump to content
43oh

Recommended Posts

Hi everybody, im new at this forum ant i love energia, a simple and fast ide for develope with the msp430 lauchpad.

i have a question, its possible to make a bidirectional communication from lauchpad to pc using energia and matlab?

anybody can explain to me how ca i do this?? thanks =)

Link to post
Share on other sites

Yes indeed

 

What you want is the Serial library.  If you look in the examples, there are multiple sample sketches that show how to set up serial communication.

 

Half of the task will involve programming the launchpad to process incoming commands and transmit back something useful.  You can debug this step with just a simple terminal session.

 

The second half of the task is interfacing to MATLAB, which will involve setting up a socket connection to the TTY port.  If you google 'matlab serial communication', you will find lots of sample code, as there are multiple ways to go about it, depending on what you need to do.

Link to post
Share on other sites

Yes indeed

 

What you want is the Serial library.  If you look in the examples, there are multiple sample sketches that show how to set up serial communication.

 

Half of the task will involve programming the launchpad to process incoming commands and transmit back something useful.  You can debug this step with just a simple terminal session.

 

The second half of the task is interfacing to MATLAB, which will involve setting up a socket connection to the TTY port.  If you google 'matlab serial communication', you will find lots of sample code, as there are multiple ways to go about it, depending on what you need to do.

Thanks a lot, this information was so useful for mi work, now i have a half of my project =)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...