Subject:
|
Re: Program VB Light Sensor RCX
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Sat, 27 Feb 1999 09:05:24 GMT
|
Original-From:
|
Peter Hesketh <pbh@phesk.demon.STOPSPAMMERSco.uk>
|
Viewed:
|
1219 times
|
| |
| |
In article <000001be61ff$638703a0$419433cf@toshiba>, John Brubaker
<photoman@novagate.com> writes
> Bob - Here's a VB program that does what you want. This assumes that Spirit
> .ocx is named "PbrickCtrl" as in the Mindstorm SDK examples. Substitute my
> statements in the "getstarted" example. I hope this helps! --- John.
>
> Private Sub DownPrgm_Click()
> 'Load to program # 1 in RCX
> PBrickCtrl.SelectPrgm 0
>
> PBrickCtrl.BeginOfTask 1
[snip rest of program]
That is an excellent example to demonstrate the use of VB to load a
program; once you have got that working the next thing you might find
difficult will be either:
1. Doing cleverer things with the VB side, or
2. Doing clever things with the RCX code.
I'll leave others to give you further examples of #1, but there are lots
of examples of #2 on the mindstorms CD. Check out any file of the .scr
type on the CD.
> -----Original Message-----
> From: news-gateway@lugnet.com [mailto:news-gateway@lugnet.com] On Behalf Of
> Bob Fay
> Sent: Friday, February 26, 1999 7:00 PM
> To: lugnet.robotics@lugnet.com
> Subject: Program VB Light Sensor RCX
>
> I am struggling with learning to program the RCX with Visual Basic. I want
> to have motor "B" run untill my light sensor "2" sees a level of 50. I am at
> a total loss on how to write this. Is there a site where I can down load
> some typical programs that I might gleen some better perspective of the
> programng format? The "getstarted" program on MindStorms just is not enough
> for me. Any help is appreciated.
> --
> Bob Fay
> --
> Did you check the web site first?: http://www.crynwr.com/lego-robotics
--
Regards - Peter Hesketh, Mynyddbach, Mon.
Forty reasons why a dog is better than a woman: number 27
"Dogs don't worry about germs."
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
Message is in Reply To:
| | RE: Program VB Light Sensor RCX
|
| Bob - Here's a VB program that does what you want. This assumes that Spirit .ocx is named "PbrickCtrl" as in the Mindstorm SDK examples. Substitute my statements in the "getstarted" example. I hope this helps! --- John. Private Sub DownPrgm_Click() (...) (26 years ago, 27-Feb-99, to lugnet.robotics)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|