Advantech 4718 user manual Programming with Device Drivers Function Library

Page 13

1.5.2Programming with Device Drivers Function Library

Advantech Device Drivers offer a rich function library that can be utilized in various application programs. This function library consists of numer- ous APIs that support many development tools, such as Visual C++, Visual Basic, Delphi and C++ Builder.

1.5.3Troubleshooting Device Drivers Error

Driver functions will return a status code when they are called to perform a certain task for the application. When a function returns a code that is not zero, it means the function has failed to perform its designated func- tion. To troubleshoot the Device Drivers error, you can pass the error code to DRV_GetErrorMessage function to return the error message. Alternatively, you can refer to the Device Drivers Error Codes Appendix in the Device Drivers Manual for a detailed listing of Error Codes, Error IDs and the Error Messages.

7

Chapter1

Image 13
Contents Channel Thermocouple Input Module USB-4718Copyright Acknowledgements Product Warranty 2 years Technical Support and Assistance Safety Precaution Static ElectricityDocument Feedback Contents Appendix Function Block Appendix C Firmware Download Utility Introduction Applications FeaturesInstallation Guide Installation Flow Chart Programming Choices for DA&C Module Software OverviewDevice Drivers Programming Tools Device Driver Programming Roadmap\Program Files\Advantech\ADSAPI\Examples Programming with Device Drivers Function Library Troubleshooting Device Drivers ErrorPage Installation After taking out the module, you should first UnpackingCD-ROM Driver InstallationDriver Installation Hardware InstallationDevice Manager Screen USB-4718 Device Speed Device Setup & ConfigurationConfiguring the Device Setting Up the DeviceDevice Setting Dialog Box Gain Code Setting Testing Analog Input Function Device TestingAnalog Input Tab/Device Test Dialog Testing Analog Output FunctionTesting Digital Output Function Testing Digital Input FunctionRed lamp High Green lamp Low Testing Counter Function Hardware Uninstallation11 Unplug or Eject Hardware Dialog Signal Connections Overview I/O ConnectorsPin Assignment I/O Connector Pin Assignment LED Indicator Status Description 2 I/O Connector Signal DescriptionJP1~JP8 Input Mode Setting for Analog Input Channels 4 3.2.4 Jumper Setting DescriptionHow to Reset USB-4718 Manually JP13 Watchdog Timer SettingIsolated Digital Input Connections Analog Input ConnectionsDigital Input Channel Connections Isolated Digital Output ConnectionsIsolated Digital Input Channel Connections Field Wiring ConsiderationsPage Specifications Accuracy for Thermocouple Analog InputIsolated Digital Output Isolated Digital InputTable A.5 General 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 Voltage Input Calibration Appendix D Analog Input CalibrationFigure D.1 USB-4718 Device Setting window Figure D.2 USB-4718 Calibration Wizard Figure D.4 Full range calibration Current Input Calibration Figure D.6 Select the current input range setting