vb to stamp communication
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?
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
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?