To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 4056
4055  |  4057
Subject: 
Problem with VB an cybermaster
Newsgroups: 
lugnet.robotics
Date: 
Sun, 28 Feb 1999 21:19:00 GMT
Viewed: 
893 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:
  Re: Problem with VB an cybermaster
 
Stefan Prescher wrote in message ... (...) brick (...) You left out the opening ceremonies. See (URL) Brok (26 years ago, 1-Mar-99, to lugnet.robotics)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR