chamakov 2 Posted April 13, 2013 Share Posted April 13, 2013 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 =) Quote Link to post Share on other sites
mbeals 74 Posted April 13, 2013 Share Posted April 13, 2013 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. chamakov 1 Quote Link to post Share on other sites
chamakov 2 Posted April 13, 2013 Author Share Posted April 13, 2013 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 =) Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.