Subject:
|
Problem with VB an cybermaster
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Sun, 28 Feb 1999 21:19:00 GMT
|
Viewed:
|
989 times
|
| |
| |
Hi
Seems that I am a litle bit stupid. I am fighting with Visual Basic the
first time.
I want to program my Cybermaster.
If I press alive I get correctly that the Cybermaster is turned on.
But if I press Battery I get the errormessage "can not communcate with brick
in Method PBbattery".
The cybermaster also will not do any other commands. What 's wrong?
Perhaps some one has a small programm, so I can learn how to do it.
My programm
Private Sub alivechek_Click()
If PBrickCtrl.PBAliveOrNot Then
alive.Caption = "true"
Else
alive.Caption = "false"
End If
End Sub
Private Sub Batterychck_Click()
battery.Caption = PBrickCtrl.PBBattery()
End Sub
Private Sub Form_Load()
PBrickCtrl.LinkType = Radio
PBrickCtrl.PBrick = Spirit
PBrickCtrl.ComPortNo = COM4
PBrickCtrl.InitComm
End Sub
|
|
Message has 1 Reply:
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|