
Other Generic Sample Projects:
Small Additions to Generated Code
The sample projects that you can download from this page are all generic: they don't try to read any buttons or do any other I/O that would be specific to a particular PC board.
However, some small additions have been made to customize the generated code: to change the PC side display, to modify the test data, or perhaps both.
|
Running the "Graph" Sample Project:
As HIDmaker FS originally generates it, the PC side program looks like this:
In the as-generated programs, when data is either received by the PC or sent from the PC, the value of each data item is also displayed in the text box marked "Results:". Displaying of all this text in is slow: it can take more time than it takes to get the data from the device.
To give you a better sense of the speed of a HIDmaker FS program, the "Graph" sample has been slightly customized. It is based on the "BigRpt" sample project, that sends a 320 byte Input Report. We've added a simple graph to the PC program to show how quicky the data is updated:

We also added some fake noise to the data sent by the device, so you can see something changing each time the curve is updated.
Download the sample project, program the hex file into a device, run it, and when the PC has finished "recognizing" the device and installing it in its database, then run the PC program. Click the "Read All Reports" button a few times, first: you should see that the graph appears to update instantly.
Now check the "Update Continuously" checkbox, and really let 'er rip!
Home | About
Us | Contact Us
USB Tools | Consulting
