Shop OBEX P1 Docs P2 Docs Learn Events
Sample QBasic program to talk to BS2? Found Answer — Parallax Forums

Sample QBasic program to talk to BS2? Found Answer

ArchiverArchiver Posts: 46,084
edited 2000-10-14 09:25 in General Discussion
I forgot about Stamp Plot Lite from the Stamps in Class site. I'm
happily graphing and storing data to file. I did play with the Basic
example and got the hang. I can build on that code. Thanks.

--- In basicstamps@egroups.com, rheine@m... wrote:
> Can anyone point me to some sample Basic program code running on a
PC
> that will listen to the stamp on a com port and retrieve data for
> file operations.
> Thanks
> Rick Heine

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-10-14 09:25
    You can use :
    OPEN "COM1:19200,N,8,1,DS0" FOR RANDOM AS #1
    PRINT #1, CHR$(27); "PE1;"; 'for output
    in$ = INPUT$(1, #1) 'for input

    These are some lines I've used to have the PC talk with a micro (using a
    max232).
    I really don't know why DS (Data Set Ready) had to be 0 in my case, but it
    worked.


    Original Message
    From: <rheine@m...>
    To: <basicstamps@egroups.com>
    Sent: Friday, October 13, 2000 1:24 PM
    Subject: [noparse][[/noparse]basicstamps] Re: Sample QBasic program to talk to BS2? Found
    Answer


    > I forgot about Stamp Plot Lite from the Stamps in Class site. I'm
    > happily graphing and storing data to file. I did play with the Basic
    > example and got the hang. I can build on that code. Thanks.
    >
    > --- In basicstamps@egroups.com, rheine@m... wrote:
    > > Can anyone point me to some sample Basic program code running on a
    > PC
    > > that will listen to the stamp on a com port and retrieve data for
    > > file operations.
    > > Thanks
    > > Rick Heine
    >
    >
    >
    >
Sign In or Register to comment.