Advantech 4718 user manual Device Driver Programming Roadmap, Programming Tools

Page 12

1.5 Device Driver Programming Roadmap

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.

USB-4718 User Manual

6

Image 12
Contents USB-4718 Channel Thermocouple Input ModuleCopyright Acknowledgements Product Warranty 2 years Safety Precaution Static Electricity Technical Support and AssistanceDocument Feedback Contents Appendix Function Block Appendix C Firmware Download Utility Introduction Features ApplicationsInstallation Guide Installation Flow Chart Software Overview Programming Choices for DA&C ModuleDevice Drivers Device Driver Programming Roadmap Programming Tools\Program Files\Advantech\ADSAPI\Examples Troubleshooting Device Drivers Error Programming with Device Drivers Function LibraryPage Installation Unpacking After taking out the module, you should firstDriver Installation CD-ROMHardware Installation Driver InstallationDevice Manager Screen Device Setup & Configuration USB-4718 Device SpeedSetting Up the Device Configuring the DeviceDevice Setting Dialog Box Gain Code Setting Device Testing Testing Analog Input FunctionTesting Analog Output Function Analog Input Tab/Device Test DialogTesting Digital Input Function Testing Digital Output FunctionRed lamp High Green lamp Low Hardware Uninstallation Testing Counter Function11 Unplug or Eject Hardware Dialog Signal Connections I/O Connectors OverviewPin Assignment I/O Connector Pin Assignment 2 I/O Connector Signal Description LED Indicator Status Description4 3.2.4 Jumper Setting Description JP1~JP8 Input Mode Setting for Analog Input ChannelsJP13 Watchdog Timer Setting How to Reset USB-4718 ManuallyAnalog Input Connections Isolated Digital Input ConnectionsIsolated Digital Output Connections Digital Input Channel ConnectionsField Wiring Considerations Isolated Digital Input Channel ConnectionsPage Specifications Analog Input Accuracy for ThermocoupleIsolated Digital Input Isolated Digital OutputGeneral Table A.5 GeneralFunction Block Appendix B Function Block Firmware Download Utility Appendix C Firmware Download Utility Figure C.2 USB Download Utility Figure C.4 Firmware Download Completed Analog Input Calibration Appendix D Analog Input Calibration Voltage Input CalibrationFigure D.1 USB-4718 Device Setting window Figure D.2 USB-4718 Calibration Wizard Figure D.4 Full range calibration Figure D.6 Select the current input range setting Current Input Calibration