Shop OBEX P1 Docs P2 Docs Learn Events
Run Time — Parallax Forums

Run Time

jhwattsjhwatts Posts: 35
edited 2007-11-11 05:49 in BASIC Stamp
I am new at this but wondering if I can execute code without the use of the Basic Stamp Editor. IS there a run time engine and can you tokenize the BAS files to operate the run time? I would like to build stand alone executables with source code to send and receive information from my Stamp.

Comments

  • Steve JoblinSteve Joblin Posts: 784
    edited 2007-11-10 21:56
    I'm a bit confused what you are asking for... the Basic Stamp Editor is used to write pbasic programs and download them to the Stamp where they are run by the Stamp (without a PC connected)... that is, once the program is loaded on the Stamp, the Stamp does not need to be connected to anything for it to run (except for a battery of course!). pbasic will only run on a Stamp... it will not run on a PC... If you want to run Basic on your PC, there are many solutions including QBASIC and others. You can communicate between your Stamp and your PC using a serial connection.
  • Mike GreenMike Green Posts: 23,101
    edited 2007-11-10 23:58
    The Stamp Editor includes an editor, compiler, and downloader. The compiler translates the source programs to an interpretive byte code for the interpreter that's stored in the Stamp's processor. The byte code is downloaded to an EEPROM on the Stamp module where it can be executed by the interpreter without the Stamp Editor present.
  • jhwattsjhwatts Posts: 35
    edited 2007-11-11 04:21
    I bought this http://www.parallax.com/Portals/0/Downloads/docs/prod/stamps/BS1USB-v1.1.pdf and would like to build apps with a GUI (using another programming language) on a PC that controls and changes the device usage.
  • Mike GreenMike Green Posts: 23,101
    edited 2007-11-11 05:49
    This one is a little harder to use that way. The USB connection is used for programming the device, but is very limited in what communication is possible between the PC and BS1USB. There is a DEBUG statement that normally communicates from the BS1 via USB to the Stamp Editor's debug window on the PC and the protocol involved has been documented in one of the Nuts and Volts columns downloadable from Parallax's website. There is no way to communicate from the PC to the BS1 through the USB programming interface (other than by downloading a new program). It is possible to use another BS1 I/O pin and another USB adapter to communicate from the PC to the BS1, but that's probably not what you want to do.

    The Basic Stamp "tokenizer" is downloadable from Parallax for use as a DLL. You might be able to use that from your program to take a computer generated source program, compiler it to byte codes, and download it (yourself) to the Stamp. I'm not sure if the BS1 tokenizer is available this way since it's separate from the BS2 tokenizer and the download protocol is different.

    You might consider the Prop Dongle from Hitt Consulting (www.hittconsulting.com). It's more expensive (like $70), but vastly more powerful and can be powered and controlled via the USB port. There's a simple Basic interpreter that runs on it that can be programmed via the USB port and can control the I/O pins brought out to the breadboard area.

    Post Edited (Mike Green) : 11/11/2007 5:57:57 AM GMT
Sign In or Register to comment.