visual basic to basic
ouconvert
Posts: 17
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
·the microcontroller? Pretend Im the dumbest guy in the world, i·would love a good explanation, other documentation, other references, anything. thanks.
sean
Comments
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