Advantech USB-4761 user manual Device Driver Programming, Programming Tools

Page 13

1.5 Device Driver Programming

This section will provide a roadmap to demonstrate how to build an appli- cation from scratch using Advantech Device Drivers with your favorite development tools such as Visual C++, Visual Basic, Delphi, or C++ Builder. The step-by-step instructions on how to build your own applica- tions using each development tool will be given in the Device Drivers Manual. Moreover, a rich set of example source code is also given for your reference.

1.5.1 Programming Tools

Programmers can develop application programs with the following devel- opment tools:

Visual C++

Visual Basic

Delphi

C++ Builder

For instructions on how to begin programming in each development tool, Advantech offers a Tutorial Chapter in the Device Drivers Manual for your reference. Please refer to the corresponding sections in this chapter on the Device Drivers Manual to begin your programming efforts. You can also look at the example source code provided for each programming tool, since they can get you very well oriented.

The Device Drivers Manual can be found on the companion CD-ROM. Alternatively, if you have already installed the Device Drivers on your system, The Device Drivers Manual can be readily accessed through the Start button:

Start/Programs/Advantech Automation/Advantech Device Manager /Device Driver’s Manual

The example source code can be found under the corresponding installa- tion folder such as the default installation path:

\Program Files\Advantech\ADSAPI\Examples

For information about using other function groups or other development tools, please refer to Creating Windows 2000/XP Applications with Device Drivers chapter and the Function Overview chapter in the Device Drivers Manual.

7

Chapter1

Image 13
Contents Channel Relay, 8-channel IDI USB Module USB-4761Copyright Acknowledgements Product Warranty 2 years Technical Support and Assistance Contents Appendix Specifications Introduction Features Robust Protection Reset Protection for Industrial ApplicationsWide Input Range Plug & Play Function Applications Installation GuideInstallation Flow Chart Programming Choices for DA&C Module Software OverviewDevice Drivers Programming Tools Device Driver ProgrammingProgramming with Device Drivers Function Library Troubleshooting Device Drivers ErrorInstallation After taking out the module, you should first UnpackingCD-ROM Driver InstallationDriver Installation Hardware InstallationDevice Name on the Device Manager Setting Up the Device Device Setup & ConfigurationDevice Manager Dialog Box Configuring the DeviceDevice Setting Dialog Box Device TestingTesting Digital Output Function Testing Digital Input FunctionDigital Output Tab in Device Test Dialog Hardware UninstallationUnplug or Eject Hardware Dialog Please make sure that you have closed the application Signal Connections Overview I/O ConnectorsPin Assignment I/O Connector Pin Assignment LED Indicator Status Description 2 I/O Connector Signal DescriptionRelay Connections Isolated Digital Input ConnectionsSingle-ended Channel Connections Field Wiring Considerations Specifications Relay Output Isolated Digital InputGeneral Page Function Block Appendix B Function Block