Shop OBEX P1 Docs P2 Docs Learn Events
visual basic to basic — Parallax Forums

visual basic to basic

ouconvertouconvert Posts: 17
edited 2006-02-16 23:13 in BASIC Stamp
try to follow me, we have this program in Vis Basic that lets us choose different options, specifically container numbers (1-100). we have our microcontroller that will take these choices we made in vis basic and than do the corresponding code. How can we communicate·from vis basic·to
·the microcontroller? Pretend Im the dumbest guy in the world, i·would love a good explanation, other documentation, other references, anything. thanks.
sean

Comments

  • Kevin WoodKevin Wood Posts: 1,266
    edited 2006-02-16 23:13
    Here is a post that might help:

    http://forums.parallax.com/showthread.php?p=567277

    Essentially what you want to do is establish a serial connection to the BS2, and use SERIN (on the BS2) to receive your input number. Set a variable so that the value runs the corresponding code block. You could probably use IF..THEN..ELSE, IF..ELSEIF..ELSE, CASE, or look-up tables.

    For the VB side, create a form with an input field, enter your number and transmit the data on a button click. Open and close the connection with buttons, or on form load and exit.

    Post Edited (Kevin Wood) : 2/16/2006 11:21:35 PM GMT
Sign In or Register to comment.