ServoCenter3.1 ActiveX Control Examples Visual Basic 6.0

ServoCenter3.1 ActiveX Control Examples  Visual Basic 6.0Short Description
Adding the ServoCenter Control to a Visual Basic 6.0 project … the methods described in Section 4.3.4 of the ServoCenter 3.1 manual. …

Website: tech.yostengineering.com | Filesize: 239kb

Content
ServoCenter3.1 ActiveX Control Examples - Visual Basic 6.0
1. Overview
To avoid the raw serial method of programming the ServoCenter 3.1 board, the YEIServoCenter ActiveX
Control can be used (in a Visual Basic 6.0 project). This Control is designed to allow the programmer to
concentrate on controlling the servos without having to worry about the ServoCenter 3.1 communications
protocol. Below is an explanation of how to program the ServoCenter 3.1 using the YEIServoCenter
ActiveX Control.
2. Installing the ActiveX Control
1. Copy YEIServoControl.ocx from the CD to the ActiveX control directory. In Windows 95/98/ME,
ActiveX controls are stored in C:WINDOWSSYSTEM. In Windows 2000/XP, they are stored in
C:WINDOWSSYSTEM32.
2. Register YEIServoControl.ocx. To do this, click the Start button, and then select Run. Into the Run
dialog box, type “Regsvr32.exe” followed by a space and then the path and filename of the
ServoControl.
If the control is successfully registered, you will see a dialog box like this.
The Control is now installed and ready for use!
.2004 Yost Engineering, Inc. 1/83. Adding the ServoCenter Control to a Visual Basic 6.0 project
1. Open a new project in the Visual Basic 6.0 editor.
2. Add the YEIServoControl to your project. To do this, click the “Project” menu at the top of the
editor and then select “Components”. This should bring up a menu that looks like this:
If the YEIServoControl was copied to the correct directory, it should appear in the list in the dialog
box. If not, it can still be added by clicking the “Browse” button and browsing to the directory
where it is stored.
Once the YEIServoControl has been selected, click the “OK” button to add it to your project.
3. With the YEIServoControl now added to your project, select it from the toolbox and draw it on the
form.
4. In the “Properties” pane of the VB editor, specify the communications port (ComPort property) by
which the control will communicate with the ServoCenter 3.1 board. A ComPort property of 1 will
signify Com1, a 2 will signify Com2, and so on up to Com4.
.2004 Yost Engineering, Inc. 2/8…

Get the file Download here

AddThis Social Bookmark Button
Related Books:
  • ServoCenter3.1 Direct Serial I/O Examples Visual Basic 6.0
  • ServoCenter3.1 DLL Control Examples Visual Basic 6.0
  • Visual Basic 6 and Visual Basic .NET Differences
  • Using Visual Basic 6 with Visual Basic .NET COM Interop
  • Visual Basic 6.0 Training
  • Smart Cards in the Visual Basic applications. Developers Manual.
  • Upgrading Visual Basic 6.0 Applications to Visual Basic .NET and …
  • Learn Visual Basic 6.0

  • Related Searches: , , , ,



    Comments

    Leave a Reply




    Search engine terms: browse button C -C#,