Shop OBEX P1 Docs P2 Docs Learn Events
trying to send data from matlab to basic stamp editor and viceversa — Parallax Forums

trying to send data from matlab to basic stamp editor and viceversa

Gayatri318Gayatri318 Posts: 2
edited 2006-04-19 12:03 in BASIC Stamp
Hi,
I am trying to send data from matlab to basic stamp editor and viceversa.
I'd like to know if there is any method by which I can directly write the incoming data onto the EEPROM of basic stamp?
Also,how can I check if my data that has been sent out from matlab being read at the basic stamp?


Right now am using the SERIN command---

DEBUG "before"
SERIN 16,240,[noparse][[/noparse]dec data]
DEBUG "after"

and on running my stamp(after the matlab,for sending data),stamp does not read the SERIN line ....that is here only "before" appears in the debug terminal.


What is the ideal way of programming for reading from serial port?Please suggest.

Thanks
Gayatri.

I have been referring to the attached document for syntax commands.

Post Edited By Moderator (Chris Savage (Parallax)) : 4/19/2006 6:11:41 AM GMT

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-04-19 12:03
    · You can pre-program DATA into the STAMP eeprom when you program it.·
    · You can WRITE DATA (received from some source serially or the results of calculations internal, etc.) to the STAMP's un-used addresses when it is running its program.· This derived DATA cannot be·read using the PBASIC IDE (editor) per se.· It can only be read by the STAMP itself as part of its program, and then displayed on an LCD or by using DEBUG.
    · Study the use of READ, WRITE, and DATA in PBASIC Help.
Sign In or Register to comment.