Shop OBEX P1 Docs P2 Docs Learn Events
Visual Basic and the BS2 — Parallax Forums

Visual Basic and the BS2

ArchiverArchiver Posts: 46,084
edited 2002-05-09 17:46 in General Discussion
I want to use a Visual Basic program to take parameters input in a
window and turn that input into a program running on a BS2. Has
anyone written or seen a compiler that can load from VBasic to a BS2?
Alternatively, does anyone have other suggestions on how to
accomplish this task?

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-05-04 01:17
    Go to www.rentron.com They have a great tutorial on how to do this. There are
    also many other sites that my help you. Try doing a Google search for { Basic
    Stamp Visual Basic }
    Jim Gorbet

    mtlhead7 <renegade.engineer@v...> wrote: I want to use a Visual Basic
    program to take parameters input in a
    window and turn that input into a program running on a BS2. Has
    anyone written or seen a compiler that can load from VBasic to a BS2?
    Alternatively, does anyone have other suggestions on how to
    accomplish this task?


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and Body of
    the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/




    Do You Yahoo!?
    Yahoo! Health - your guide to health and wellness

    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-04 02:34
    After reading your question again Im not sure that I answered you correctly.
    You can send data to or from the stamps program using vb. If your talking about
    loading a complete compiled program to the stamp, I have never seen this done.
    If someone were to do this they should go ahead and use a pic and use vb to
    compile the program "If this is even possible". Hope this helps. Sorry Im not a
    VB expert. I bet some other stampers may be able to help you out more.
    Jim Gorbet
    mtlhead7 <renegade.engineer@v...> wrote: I want to use a Visual Basic
    program to take parameters input in a
    window and turn that input into a program running on a BS2. Has
    anyone written or seen a compiler that can load from VBasic to a BS2?
    Alternatively, does anyone have other suggestions on how to
    accomplish this task?


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and Body of
    the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/




    Do You Yahoo!?
    Yahoo! Health - your guide to health and wellness

    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-04 03:01
    Hi;

    The Basic Stamp is an interpreter chip and uses only Pbasic, but either the
    Atom or the Basic X-24 chip will
    do the task. I am not sure which one though can be programed with Visual Basic.

    Have Fun !!
    Dale Fleischmann

    mtlhead7 wrote:

    > I want to use a Visual Basic program to take parameters input in a
    > window and turn that input into a program running on a BS2. Has
    > anyone written or seen a compiler that can load from VBasic to a BS2?
    > Alternatively, does anyone have other suggestions on how to
    > accomplish this task?
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and Body
    of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-04 04:00
    No processor actually uses Visual Basic although some look more like VB
    than others (which I'm not convinced is a good thing).

    However, what you probably want to do is send VB data to the Stamp via
    RS232. I've had some projects of the months about that although I don't
    know if any are online. You can see how it works in reverse (stamp ->
    VB) in http://www.al-williams.com/stampcom.zip.

    www.rentron.com may have some stuff. Also check out www.lvr.com

    Al Williams
    AWC
    * Floating point math for the Stamp, PIC, SX, or any microcontroller
    http://www.al-williams.com/awce/pak1.htm



    >
    Original Message
    > From: Dale Fleischmann [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=LmoCDJC7SU6a48fuWVx5Sb1X7hZRjo82q5Bm6pHdS2Nz8_-hORzPz103grqwhztJ42GQV-WoBuS90uWqMxMDDw]fleidale@c...[/url
    > Sent: Friday, May 03, 2002 9:01 PM
    > To: basicstamps@yahoogroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] Visual Basic and the BS2
    >
    >
    > Hi;
    >
    > The Basic Stamp is an interpreter chip and uses only
    > Pbasic, but either the Atom or the Basic X-24 chip will do
    > the task. I am not sure which one though can be programed
    > with Visual Basic.
    >
    > Have Fun !!
    > Dale Fleischmann
    >
    > mtlhead7 wrote:
    >
    > > I want to use a Visual Basic program to take parameters
    > input in a
    > > window and turn that input into a program running on a BS2. Has
    > > anyone written or seen a compiler that can load from VBasic
    > to a BS2?
    > > Alternatively, does anyone have other suggestions on how to
    > > accomplish this task?
    > >
    > > To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > > from the same email address that you subscribed. Text in
    > the Subject
    > > and Body of the message will be ignored.
    > >
    > >
    > > Your use of Yahoo! Groups is subject to
    > > http://docs.yahoo.com/info/terms/
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-06 23:17
    Hello,

    What you could do is use the Command Line switches available on the
    new stamp software. You would input the parameters in VB, output a
    *.BS2 file and then call the STAMPW.EXE file with a few command line
    switches and download the new program. It is very easy to do from
    VB. I am working on a project that is similar to this and think I
    might have found a small bug in the STAMPW software. Just waiting on
    a reply from Parallax tech support before I finish it.

    The command line documentation is available on the Parallax
    site. If you need some help just let me know and I might be able to
    help.

    Jared Hoylman
    VB Overdrive
    http://vboverdrive.extreme-vb.net/



    --- In basicstamps@y..., "mtlhead7" <renegade.engineer@v...> wrote:
    > I want to use a Visual Basic program to take parameters input in
    a
    > window and turn that input into a program running on a BS2. Has
    > anyone written or seen a compiler that can load from VBasic to a
    BS2?
    > Alternatively, does anyone have other suggestions on how to
    > accomplish this task?
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-06 23:23
    Yes, I would like you're input on this. I actually ended up trying more
    or less what you said, except I was just using the Start>Run windows
    dialogue as a quick command line interface. I had a problem with the
    \download qualifier in that it is trying to interpret the ">" as another
    master document. Is this more or less the bug you mentioned?
    FYI I found the command line details in the stamp editor .pdf that is
    installed with the updated editor.
    Don
    Original Message
    From: "electrolinx" <electrolinx@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Monday, May 06, 2002 3:17 PM
    Subject: [noparse][[/noparse]basicstamps] Re: Visual Basic and the BS2


    > Hello,
    >
    > What you could do is use the Command Line switches available on the
    > new stamp software. You would input the parameters in VB, output a
    > *.BS2 file and then call the STAMPW.EXE file with a few command line
    > switches and download the new program. It is very easy to do from
    > VB. I am working on a project that is similar to this and think I
    > might have found a small bug in the STAMPW software. Just waiting on
    > a reply from Parallax tech support before I finish it.
    >
    > The command line documentation is available on the Parallax
    > site. If you need some help just let me know and I might be able to
    > help.
    >
    > Jared Hoylman
    > VB Overdrive
    > http://vboverdrive.extreme-vb.net/
    >
    >
    >
    > --- In basicstamps@y..., "mtlhead7" <renegade.engineer@v...> wrote:
    > > I want to use a Visual Basic program to take parameters input in
    > a
    > > window and turn that input into a program running on a BS2. Has
    > > anyone written or seen a compiler that can load from VBasic to a
    > BS2?
    > > Alternatively, does anyone have other suggestions on how to
    > > accomplish this task?
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-07 00:05
    Yes, I would like you're input on this. I actually ended up
    trying more
    or less what you said, except I was just using the Start>Run windows
    dialogue as a quick command line interface. I had a problem with the
    \download qualifier in that it is trying to interpret the ">" as
    another
    master document. Is this more or less the bug you mentioned?
    FYI I found the command line details in the stamp editor .pdf that is
    installed with the updated editor.
    Don


    --- In basicstamps@y..., "electrolinx" <electrolinx@y...> wrote:
    > Hello,
    >
    > What you could do is use the Command Line switches available on the
    > new stamp software. You would input the parameters in VB, output a
    > *.BS2 file and then call the STAMPW.EXE file with a few command
    line
    > switches and download the new program. It is very easy to do from
    > VB. I am working on a project that is similar to this and think I
    > might have found a small bug in the STAMPW software. Just waiting
    on
    > a reply from Parallax tech support before I finish it.
    >
    > The command line documentation is available on the Parallax
    > site. If you need some help just let me know and I might be able
    to
    > help.
    >
    > Jared Hoylman
    > VB Overdrive
    > http://vboverdrive.extreme-vb.net/
    >
    >
    >
    > --- In basicstamps@y..., "mtlhead7" <renegade.engineer@v...> wrote:
    > > I want to use a Visual Basic program to take parameters input
    in
    > a
    > > window and turn that input into a program running on a BS2. Has
    > > anyone written or seen a compiler that can load from VBasic to a
    > BS2?
    > > Alternatively, does anyone have other suggestions on how to
    > > accomplish this task?
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-07 00:14
    Just go to the directory where STAMPW.EXE is located and type STAMPW /? and
    press <ENTER>. The program will show you all the command line switches.


    **********

    > Yes, I would like you're input on this. I actually ended up
    > trying more
    > or less what you said, except I was just using the Start>Run windows
    > dialogue as a quick command line interface. I had a problem with the
    > \download qualifier in that it is trying to interpret the ">" as
    > another
    > master document. Is this more or less the bug you mentioned?
    > FYI I found the command line details in the stamp editor .pdf that is
    > installed with the updated editor.
    > Don
    >
    >
    > --- In basicstamps@y..., "electrolinx" <electrolinx@y...> wrote:
    > > Hello,
    > >
    > > What you could do is use the Command Line switches available on the
    > > new stamp software. You would input the parameters in VB, output a
    > > *.BS2 file and then call the STAMPW.EXE file with a few command
    > line
    > > switches and download the new program. It is very easy to do from
    > > VB. I am working on a project that is similar to this and think I
    > > might have found a small bug in the STAMPW software. Just waiting
    > on
    > > a reply from Parallax tech support before I finish it.
    > >
    > > The command line documentation is available on the Parallax
    > > site. If you need some help just let me know and I might be able
    > to
    > > help.
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-07 00:26
    Yes, I know all the command line parameters. The problem is that
    the /download parameter isn't working correctly. It returns an error
    no matter what you put in.


    --- In basicstamps@y..., Rodent <daweasel@s...> wrote:
    > Just go to the directory where STAMPW.EXE is located and type
    STAMPW /? and
    > press <ENTER>. The program will show you all the command line
    switches.
    >
    >
    > **********
    >
    > > Yes, I would like you're input on this. I actually ended up
    > > trying more
    > > or less what you said, except I was just using the Start>Run
    windows
    > > dialogue as a quick command line interface. I had a problem with
    the
    > > \download qualifier in that it is trying to interpret the ">" as
    > > another
    > > master document. Is this more or less the bug you mentioned?
    > > FYI I found the command line details in the stamp editor .pdf
    that is
    > > installed with the updated editor.
    > > Don
    > >
    > >
    > > --- In basicstamps@y..., "electrolinx" <electrolinx@y...> wrote:
    > > > Hello,
    > > >
    > > > What you could do is use the Command Line switches available on
    the
    > > > new stamp software. You would input the parameters in VB,
    output a
    > > > *.BS2 file and then call the STAMPW.EXE file with a few command
    > > line
    > > > switches and download the new program. It is very easy to do
    from
    > > > VB. I am working on a project that is similar to this and
    think I
    > > > might have found a small bug in the STAMPW software. Just
    waiting
    > > on
    > > > a reply from Parallax tech support before I finish it.
    > > >
    > > > The command line documentation is available on the Parallax
    > > > site. If you need some help just let me know and I might be
    able
    > > to
    > > > help.
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-07 01:22
    So are you doing the source file and the output file? Is the $STAMP
    statement in the code?

    Original Message


    > Yes, I know all the command line parameters. The problem is that
    > the /download parameter isn't working correctly. It returns an error
    > no matter what you put in.
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-07 01:26
    I input this on the Run line:

    "C:\Program Files\Parallax Inc\Stamp Editor v1.\Stampw.exe" /download
    texttst2.bs2 > output.txt

    But it returns an Error:

    "Duplicate command-line option: '>'.
    Only one input filename (object_file or master_file) is allowed."

    Thats all I get


    --- In basicstamps@y..., Rodent <daweasel@s...> wrote:
    > So are you doing the source file and the output file? Is the $STAMP
    > statement in the code?
    >
    >
    Original Message
    >
    >
    > > Yes, I know all the command line parameters. The problem is
    that
    > > the /download parameter isn't working correctly. It returns an
    error
    > > no matter what you put in.
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-07 02:01
    Edit out the quotes "

    Do it in DOS and not from the Windows RUN tool.

    Try >> instead of the single >.

    Original Message

    > I input this on the Run line:
    >
    > "C:\Program Files\Parallax Inc\Stamp Editor v1.\Stampw.exe" /download
    > texttst2.bs2 > output.txt
    >
    > But it returns an Error:
    >
    > "Duplicate command-line option: '>'.
    > Only one input filename (object_file or master_file) is allowed."
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-07 02:11
    Ok, works in DOS, gonna have to get with my VB programmer to see
    how we run it from a VB GUI.

    Thanks for the help!
    Don

    BTW trying the ">>" didn't help, nor did moving around the quotes or
    eliminating them altogether.
    Thanks Again
    Don


    --- In basicstamps@y..., Rodent <daweasel@s...> wrote:
    > Edit out the quotes "
    >
    > Do it in DOS and not from the Windows RUN tool.
    >
    > Try >> instead of the single >.
    >
    >
    Original Message
    >
    > > I input this on the Run line:
    > >
    > > "C:\Program Files\Parallax Inc\Stamp Editor
    v1.\Stampw.exe" /download
    > > texttst2.bs2 > output.txt
    > >
    > > But it returns an Error:
    > >
    > > "Duplicate command-line option: '>'.
    > > Only one input filename (object_file or master_file) is allowed."
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-07 14:30
    How I've been doing it from VB is by creating a *.BAT file and then
    executing it. You must convert the filenames to the short DOS
    versions.

    I tried calling the STAMPW.EXE with the command line directly from VB
    via the ShellExecute API function, but haven't had much luck using
    the WaitForSingleObject function to let me know when the process is
    complete so that I can open the output file to get the results.

    So I use the BAT file and simply check for the output files
    existence. You must also check to make sure the output file contains
    data as well before trying to get the reults. Once StampW opens the
    output file for writing, it will exist on the system, but contain no
    data. You must wait for StampW to close the ouput file before you
    can grab the result data.

    I will write an example VB project for doing this after work and post
    it to the group for those of you interested.

    Jared Hoylman
    VB Overdrive
    http://vboverdrive.extreme-vb.net/




    --- In basicstamps@y..., "mtlhead7" <renegade.engineer@v...> wrote:
    > Ok, works in DOS, gonna have to get with my VB programmer to
    see
    > how we run it from a VB GUI.
    >
    > Thanks for the help!
    > Don
    >
    > BTW trying the ">>" didn't help, nor did moving around the quotes
    or
    > eliminating them altogether.
    > Thanks Again
    > Don
    >
    >
    > --- In basicstamps@y..., Rodent <daweasel@s...> wrote:
    > > Edit out the quotes "
    > >
    > > Do it in DOS and not from the Windows RUN tool.
    > >
    > > Try >> instead of the single >.
    > >
    > >
    Original Message
    > >
    > > > I input this on the Run line:
    > > >
    > > > "C:\Program Files\Parallax Inc\Stamp Editor
    > v1.\Stampw.exe" /download
    > > > texttst2.bs2 > output.txt
    > > >
    > > > But it returns an Error:
    > > >
    > > > "Duplicate command-line option: '>'.
    > > > Only one input filename (object_file or master_file) is
    allowed."
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-08 02:46
    As promised, I threw an example project together to show how to
    program a Stamp from VB. The file "bs2download.zip" is in
    the "Files" section on Yahoo Groups or can be downloaded here:

    http://vboverdrive.extreme-vb.net/bs2download.zip

    Once you run the project, simply point to STAMPW.EXE and the file you
    wish to download. Then press the "Download" button. You can also
    choose whether or not to show prompts and debug windows...

    I added comments to help understand my coding.

    Jared Hoylman
    VB Overdrive
    http://vboverdrive.extreme-vb.net/





    --- In basicstamps@y..., "electrolinx" <electrolinx@y...> wrote:
    > How I've been doing it from VB is by creating a *.BAT file and then
    > executing it. You must convert the filenames to the short DOS
    > versions.
    >
    > I tried calling the STAMPW.EXE with the command line directly from
    VB
    > via the ShellExecute API function, but haven't had much luck using
    > the WaitForSingleObject function to let me know when the process is
    > complete so that I can open the output file to get the results.
    >
    > So I use the BAT file and simply check for the output files
    > existence. You must also check to make sure the output file
    contains
    > data as well before trying to get the reults. Once StampW opens
    the
    > output file for writing, it will exist on the system, but contain
    no
    > data. You must wait for StampW to close the ouput file before you
    > can grab the result data.
    >
    > I will write an example VB project for doing this after work and
    post
    > it to the group for those of you interested.
    >
    > Jared Hoylman
    > VB Overdrive
    > http://vboverdrive.extreme-vb.net/
    >
    >
    >
    >
    > --- In basicstamps@y..., "mtlhead7" <renegade.engineer@v...> wrote:
    > > Ok, works in DOS, gonna have to get with my VB programmer to
    > see
    > > how we run it from a VB GUI.
    > >
    > > Thanks for the help!
    > > Don
    > >
    > > BTW trying the ">>" didn't help, nor did moving around the quotes
    > or
    > > eliminating them altogether.
    > > Thanks Again
    > > Don
    > >
    > >
    > > --- In basicstamps@y..., Rodent <daweasel@s...> wrote:
    > > > Edit out the quotes "
    > > >
    > > > Do it in DOS and not from the Windows RUN tool.
    > > >
    > > > Try >> instead of the single >.
    > > >
    > > >
    Original Message
    > > >
    > > > > I input this on the Run line:
    > > > >
    > > > > "C:\Program Files\Parallax Inc\Stamp Editor
    > > v1.\Stampw.exe" /download
    > > > > texttst2.bs2 > output.txt
    > > > >
    > > > > But it returns an Error:
    > > > >
    > > > > "Duplicate command-line option: '>'.
    > > > > Only one input filename (object_file or master_file) is
    > allowed."
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-08 02:48
    Sorry, that URL should have been:
    http://vboverdrive.extreme-vb.net/bsdownload.zip



    --- In basicstamps@y..., "electrolinx" <jared@v...> wrote:
    > As promised, I threw an example project together to show how to
    > program a Stamp from VB. The file "bs2download.zip" is in
    > the "Files" section on Yahoo Groups or can be downloaded here:
    >
    > http://vboverdrive.extreme-vb.net/bs2download.zip
    >
    > Once you run the project, simply point to STAMPW.EXE and the file
    you
    > wish to download. Then press the "Download" button. You can also
    > choose whether or not to show prompts and debug windows...
    >
    > I added comments to help understand my coding.
    >
    > Jared Hoylman
    > VB Overdrive
    > http://vboverdrive.extreme-vb.net/
    >
    >
    >
    >
    >
    > --- In basicstamps@y..., "electrolinx" <electrolinx@y...> wrote:
    > > How I've been doing it from VB is by creating a *.BAT file and
    then
    > > executing it. You must convert the filenames to the short DOS
    > > versions.
    > >
    > > I tried calling the STAMPW.EXE with the command line directly
    from
    > VB
    > > via the ShellExecute API function, but haven't had much luck
    using
    > > the WaitForSingleObject function to let me know when the process
    is
    > > complete so that I can open the output file to get the results.
    > >
    > > So I use the BAT file and simply check for the output files
    > > existence. You must also check to make sure the output file
    > contains
    > > data as well before trying to get the reults. Once StampW opens
    > the
    > > output file for writing, it will exist on the system, but contain
    > no
    > > data. You must wait for StampW to close the ouput file before
    you
    > > can grab the result data.
    > >
    > > I will write an example VB project for doing this after work and
    > post
    > > it to the group for those of you interested.
    > >
    > > Jared Hoylman
    > > VB Overdrive
    > > http://vboverdrive.extreme-vb.net/
    > >
    > >
    > >
    > >
    > > --- In basicstamps@y..., "mtlhead7" <renegade.engineer@v...>
    wrote:
    > > > Ok, works in DOS, gonna have to get with my VB programmer
    to
    > > see
    > > > how we run it from a VB GUI.
    > > >
    > > > Thanks for the help!
    > > > Don
    > > >
    > > > BTW trying the ">>" didn't help, nor did moving around the
    quotes
    > > or
    > > > eliminating them altogether.
    > > > Thanks Again
    > > > Don
    > > >
    > > >
    > > > --- In basicstamps@y..., Rodent <daweasel@s...> wrote:
    > > > > Edit out the quotes "
    > > > >
    > > > > Do it in DOS and not from the Windows RUN tool.
    > > > >
    > > > > Try >> instead of the single >.
    > > > >
    > > > >
    Original Message
    > > > >
    > > > > > I input this on the Run line:
    > > > > >
    > > > > > "C:\Program Files\Parallax Inc\Stamp Editor
    > > > v1.\Stampw.exe" /download
    > > > > > texttst2.bs2 > output.txt
    > > > > >
    > > > > > But it returns an Error:
    > > > > >
    > > > > > "Duplicate command-line option: '>'.
    > > > > > Only one input filename (object_file or master_file) is
    > > allowed."
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-09 17:07
    This message is mostly directed to Jon Williams, but anyone who
    can help explain please feel free to do so (in simple terms please).
    I am not highly versed in programming (though I'm getting reasonably
    decent with PBasic [noparse]:)[/noparse]).

    I'm wondering why Parallax can't or hasn't created some reduced
    form of the stamp editor (perhaps similar to the StampLoader.exe)
    that can be called by a VBasic, JAVA, or other GUI App, to compile
    and load a text file to a stamp (presuming BS2 or higher)? Can you
    not create something (perhaps a single executable) that can be
    distributed with a VBasic app, such that the source code is still
    protected, as you discussed in the "new compiler" thread earlier?

    The scenario I imagine is that the GUI App generates a text file
    following PBasic protocol, and then sends that text file to a stamp
    compiler/loader to run the program on a stamp.
    I know the group has been over this because of one of my previous
    questions, and I really appreciate all the advice and references I
    received, but the project I am working on could be made much easier
    if the above were possible, as opposed to merely communicating new
    data and/or variables to the stamp through a serial port.

    Thanks in advance!
    Don
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-09 17:38
    You can do that now -- with the version 1.31 compiler. The 1.31 compiler can
    be called from other programs with command line switches that will cause it
    to run silently, compiling downloading and running a program. There is even
    an option to open the DEBUG window (if you have DEBUG in your code) -- while
    the rest of the compiler runs "silent."

    I documented this in a Nuts & Volts article some time ago. But so you don't
    have to look it up, here's the command line I send to the Stamp compiler from
    EditPlus -- my favorite programming editor:

    C:\Parallax\stampw.exe /download /noprompts "$(FilePath)"

    The quotes are necessay if your path to the PBASIC program includes spaces
    (long file names).

    To get the complete list of switches (normally displayed when you select the
    Custom option during install), you can do this:

    1. Open a DOS Window
    2. Move to your Stamp compiler directory
    3. Enter: stampw /help

    -- Jon Williams
    -- Parallax


    In a message dated 5/9/02 11:10:23 AM Central Daylight Time,
    renegade.engineer@v... writes:


    > This message is mostly directed to Jon Williams, but anyone who
    > can help explain please feel free to do so (in simple terms please).
    > I am not highly versed in programming (though I'm getting reasonably
    > decent with PBasic [noparse]:)[/noparse]).
    >
    > I'm wondering why Parallax can't or hasn't created some reduced
    > form of the stamp editor (perhaps similar to the StampLoader.exe)
    > that can be called by a VBasic, JAVA, or other GUI App, to compile
    > and load a text file to a stamp (presuming BS2 or higher)? Can you
    > not create something (perhaps a single executable) that can be
    > distributed with a VBasic app, such that the source code is still
    > protected, as you discussed in the "new compiler" thread earlier?
    >
    > The scenario I imagine is that the GUI App generates a text file
    > following PBasic protocol, and then sends that text file to a stamp
    > compiler/loader to run the program on a stamp.
    > I know the group has been over this because of one of my previous
    > questions, and I really appreciate all the advice and references I
    > received, but the project I am working on could be made much easier
    > if the above were possible, as opposed to merely communicating new
    > data and/or variables to the stamp through a serial port.
    >
    > Thanks in advance!
    > Don
    >




    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-09 17:46
    Thanks for responding so quick Jon!
    I will get with the VB programmer I am working with and see if she can
    build something simple to try this!
    Regards
    Don
    Original Message
    From: <jonwms@a...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, May 09, 2002 9:38 AM
    Subject: Re: [noparse][[/noparse]basicstamps] Visual Basic and the BS2


    > You can do that now -- with the version 1.31 compiler. The 1.31 compiler
    can
    > be called from other programs with command line switches that will cause
    it
    > to run silently, compiling downloading and running a program. There is
    even
    > an option to open the DEBUG window (if you have DEBUG in your code) --
    while
    > the rest of the compiler runs "silent."
    >
    > I documented this in a Nuts & Volts article some time ago. But so you
    don't
    > have to look it up, here's the command line I send to the Stamp compiler
    from
    > EditPlus -- my favorite programming editor:
    >
    > C:\Parallax\stampw.exe /download /noprompts "$(FilePath)"
    >
    > The quotes are necessay if your path to the PBASIC program includes spaces
    > (long file names).
    >
    > To get the complete list of switches (normally displayed when you select
    the
    > Custom option during install), you can do this:
    >
    > 1. Open a DOS Window
    > 2. Move to your Stamp compiler directory
    > 3. Enter: stampw /help
    >
    > -- Jon Williams
    > -- Parallax
    >
    >
    > In a message dated 5/9/02 11:10:23 AM Central Daylight Time,
    > renegade.engineer@v... writes:
    >
    >
    > > This message is mostly directed to Jon Williams, but anyone who
    > > can help explain please feel free to do so (in simple terms please).
    > > I am not highly versed in programming (though I'm getting reasonably
    > > decent with PBasic [noparse]:)[/noparse]).
    > >
    > > I'm wondering why Parallax can't or hasn't created some reduced
    > > form of the stamp editor (perhaps similar to the StampLoader.exe)
    > > that can be called by a VBasic, JAVA, or other GUI App, to compile
    > > and load a text file to a stamp (presuming BS2 or higher)? Can you
    > > not create something (perhaps a single executable) that can be
    > > distributed with a VBasic app, such that the source code is still
    > > protected, as you discussed in the "new compiler" thread earlier?
    > >
    > > The scenario I imagine is that the GUI App generates a text file
    > > following PBasic protocol, and then sends that text file to a stamp
    > > compiler/loader to run the program on a stamp.
    > > I know the group has been over this because of one of my previous
    > > questions, and I really appreciate all the advice and references I
    > > received, but the project I am working on could be made much easier
    > > if the above were possible, as opposed to merely communicating new
    > > data and/or variables to the stamp through a serial port.
    > >
    > > Thanks in advance!
    > > Don
    > >
    >
    >
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
Sign In or Register to comment.