Get the Flash Player to see this player.
Home 7: Test Code
 
Step 7: Test Your Code PDF Print E-mail

Now, you’re ready to test.

Plug the peripheral device into a USB cable connected to the device, and check with Control Panel to verify that the device enumerates properly. Once that happens, you are ready to run the PC-side application. The code that HIDmaker FS generates will create some fixed “dummy” data (with values you specified using Visual Data Designer), in a section of the code that is clearly marked by comments as being there for test purposes only. The PC-side application is a true GUI program that will allow you to send this dummy data back and forth between the PC and the USB HID peripheral device, to verify that the USB connection works.

Running the PC Side Program

When you compile and run the PC side program that HIDmaker generates, it tries to find and open the specific USB HID device that you specified in your design. If this device has not been connected to your PC, the program will display the following dialog box:

HIDmaker FS, USB HID, USB Human Interface Device

If, and only if, you connect the USB Human Interface Device that matches your HIDmaker project's design, the generated PC side program will show its main window:

 

HIDmaker FS, USB HID, USB Human Interface Device

The PC side programs generated by HIDmaker FS are real Windows GUI programs. Regardless of the PC side programming language(s) you choose when you generate code for your project, the compiled program from each language looks like the screen shot above when you run it. The main differences appear in the source code.

 

 

Meet Dr. Bob at His Class at Microchip Masters 2011!

SponsorAd-728x90

Click here to visit the Microchip Masters 2011 Web Site

 

Questions? See our FAQ, contact us by email, or call us at 1-888-474-1041 (toll free in US)
We GUARANTEE our generated code to work correctly, PERFECTLY, every time, or we will make it right!

Home | About Us | Contact Us | USB Tools | TCPmaker Tools | Consulting | Site Map