Shop OBEX P1 Docs P2 Docs Learn Events
.exe programming — Parallax Forums

.exe programming

NikolayNikolay Posts: 8
edited 2008-12-16 03:33 in BASIC Stamp
Is it possible to create executable files in Windows to control the BASIC STAMP mc? Like for exapmle compiling a .exe in QBASIC and then downloading it to the mc.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-12-15 02:41
    1) Please don't post duplicate messages. You can delete your message by clicking on the X icon in the upper right hand corner of the message box.

    2) You have to create programs specifically for the Basic Stamp (in Parallax Basic). The Stamp Editor is an IDE (Integrated Development Environment) that combines an editor with a compiler and downloader. The Stamp Editor can save the compiled program as a Windows file for downloading later to the Stamp. The Editor can also create an .exe file that includes the compiled program and a downloader. When it's run, it downloads the program to a connected Stamp. This is used when a Stamp programmer wants to be able to distribute a finished program to customers who may need to update their Stamp-based system, but without distributing the source code with the Stamp Editor.

    3) QBASIC is a compiler specifically for Windows and an Intel processor. It can't be used to compile programs for a Stamp.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-12-15 16:42
    Unfortunately posts can not be deleted by members once a reply has been made. I did however removed the duplicate post.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • NikolayNikolay Posts: 8
    edited 2008-12-15 22:06
    How can you create a standalone application for BASIC STAMP?
  • Mike GreenMike Green Posts: 23,101
    edited 2008-12-15 22:19
    If by "standalone application" you mean an application that runs on a Stamp without an attached PC,
    most Stamp applications are standalone. Once the Stamp Editor downloads the program to the Stamp
    it is stored in the EEPROM on the Stamp module. Whenever you reset the Stamp including when you
    power it up, the stored program will begin executing. Unless you write your program to require the
    presence of a PC, there's none required. Using a DEBUG statement without a PC attached will cause
    the debug information to be transmitted out the programming serial port. There's no checking to make
    sure there's a PC present. If you use a DEBUGIN statement, then there has to be a PC or other serial
    device attached to the programming port because the DEBUGIN statement waits for data to be received.
  • NikolayNikolay Posts: 8
    edited 2008-12-15 22:31
    Nope, more like creaing an executable that will download to the basic stamp and then close itself, and then start a new one.
  • FranklinFranklin Posts: 4,747
    edited 2008-12-16 01:24
    When you find that out please post back here. There are several people that want to do that but as far as I know it is not possible.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • NikolayNikolay Posts: 8
    edited 2008-12-16 02:20
    Mike Green, you said
    "The Editor can also create an .exe file that includes the compiled program and a downloader. When it's run, it downloads the program to a connected Stamp"

    Could you please explain where to find this option and how to use it.
  • SRLMSRLM Posts: 5,045
    edited 2008-12-16 03:33
    The best reference is the BS Syntax and Reference Manual. It includes a section on the IDE. To create an EXE, use the Generate Object Code on the file menu.
Sign In or Register to comment.