Categories

Products
Software
Example Projects
Tutorials
Forums
International Ordering
Services
Contact
Mailing List
User Projects

Stay current ! Subscribe to the RSS feed.

 

 

Software Development

PCTx C++ Sample || Multiple PCTx C++ Sample || PCTx VB.NET Sample || Analog Reader Sample || Sample Servo Sequencer || 25 Servo Controller Sample || Web Interface || API's || How To Setup a Project || Common Mistakes

The following sample applications have been created using Visual Studio .NET 2003 and 2005. Use these sample projects as a starting point for your own creation.

 

PCTx C++ Sample Source Code



c++_example_vspj.zip


 

Multiple PCTx C++ Sample Source Code


c++_multiple_example_vspj.zip


 

PCTx VB.NET Sample Source Code

 

vb_example_vspj.zip


 

Analog Reader Sample Application

 

Analog_Reader.zip


 

Sample Servo Sequencer Source Code

 

sequencer.zip


 

25 Servo Controller Sample Source Code

 

25_channel_controller_vspj.zip

 


 

Web interface to PCTx or Servo Controllers Sample Source Code

 

client.zip
server.zip

 


Tips on using the web interface:

  1. Make sure that port 81 is open if you are using a firewall on either the server or client PC's.
  2. Port forwarding may be necessary
  3. 127.0.0.1 will not work for a local IP address. Use the actual IP of the machine.
  4. Test the server and client locally to verify it is working before moving each part to separate PC's

API's

C++ API
VB.NET API


 

How to create a project in Visual Studio .NET 2003

The following will describe the steps necessary to set up a project in Visual Studio .NET 2003.

  1. Download the following files from the Windows Driver Development Kit.

    setupapi.lib
    hid.lib
    hidpi.h
    hidsdi.h
    hidusage.h
    setupapi.h

  2. In the left pane Click on the Project menu and go to the project properties
  3. Click on Linker and select Input
  4. In the right pane click on Additional Dependencies
  5. Under Additional Dependencies add the path to the .lib files you just downloaded
  6. Implement the controller source files into your project or use them to write your own implementation

 

Common mistakes when setting up a VS Project

  1. If you get the error "fatal error C1083: Cannot open include file: 'hidsdi.h': No such file or directory" make sure that the file hdisdi.h is located in the root directory of your VS project folder.
  2. Add all required libraries to the project settings.

Links










Tower Hobbies Home Page



© 2008, Endurance R/C