Shop OBEX P1 Docs P2 Docs Learn Events
vb to stamp communication — Parallax Forums

vb to stamp communication

ArchiverArchiver Posts: 46,084
edited 2004-03-02 23:02 in General Discussion
Hail,
I am looking to use a pc, via visual basic 6, to control relays and
to interpret logic inputs. I have configured the stamp to drive the
necessary shift registers for the i/o control but how do i get a
simple vb application to write boolean data to the stamp through a
com port?

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-03-02 23:02
    In the Groups.Yahoo.Com/group/basicstamps, see
    the 'File' area. There is a folder called
    "AlDemo". Get the BS2_VB.ZIP example. This
    has both the BS2 and VB6 side code, as well as
    full instructions to do it from scratch on the
    VB side.

    For 'Boolean' data, on the BS2 side you
    probably want:
    SERIN 16, 16384, [noparse][[/noparse]BIN MyVar]

    Then on the PC side, you can write
    MSCOMM.Send "10011000"

    And BIN MyVar will convert the string of
    1's and Zero's to a single value inside
    the BS2.


    --- In basicstamps@yahoogroups.com, "slavorkian" <pnf2000@y...> wrote:
    > Hail,
    > I am looking to use a pc, via visual basic 6, to control relays and
    > to interpret logic inputs. I have configured the stamp to drive the
    > necessary shift registers for the i/o control but how do i get a
    > simple vb application to write boolean data to the stamp through a
    > com port?
Sign In or Register to comment.