Propeller meets MATLAB
chazbrazil
Posts: 27
I am trying to send information serially from MATLAB to the Propeller. I have imported the BS2Function library for the propeller, and have been trying to use the SERIN_STR function. So far, I have been unable to do a successful read, even though the RX LED on the Prop Plug has been flashing whenever I try to write. I will post my source code whenever I get a chance, but any ideas and/or help is greatly appreciated!
Thanks in advance!
Thanks in advance!
Comments
So you are sending strings from Matlab?
First I would recommend building your program up in small building blocks.· You can use the Basic Stamp functions you mentioned, but I second DynamoBen's recommendation to use FullDuplexSerial.· Create a simple program that reads data from the serial port and sends it back.· Use Hyperterminal or similar to test this program.· From there move into testing strings and then finally testing with Matlab.·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter
www.brilldea.com·- check out the uOLED-IOC, an I/O expansion for the uOLED-96-PROP
www.tdswieter.com
One little spark of imagination is all it takes for an idea to explode