Advantech USB-4761 user manual Programming with Device Drivers Function Library

Page 14

1.5.2Programming with Device Drivers Function Library

Advantech Device Drivers offer a rich function library that can be uti- lized in various application programs. This function library consists of numerous 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.

USB-4761 User Manual

8

Image 14
Contents USB-4761 Channel Relay, 8-channel IDI USB ModuleCopyright Acknowledgements Product Warranty 2 years Technical Support and Assistance Contents Appendix Specifications Introduction Features Wide Input Range Reset Protection for Industrial ApplicationsRobust Protection Plug & Play FunctionInstallation Guide ApplicationsInstallation Flow Chart Device Drivers Software OverviewProgramming Choices for DA&C Module Device Driver Programming Programming ToolsTroubleshooting Device Drivers Error Programming with Device Drivers Function LibraryInstallation Unpacking After taking out the module, you should firstDriver Installation CD-ROMHardware Installation Driver InstallationDevice Name on the Device Manager Device Setup & Configuration Setting Up the DeviceConfiguring the Device Device Manager Dialog BoxDevice Testing Device Setting Dialog BoxTesting Digital Input Function Testing Digital Output FunctionHardware Uninstallation Digital Output Tab in Device Test DialogUnplug or Eject Hardware Dialog Please make sure that you have closed the application Signal Connections Pin Assignment I/O ConnectorsOverview I/O Connector Pin Assignment 2 I/O Connector Signal Description LED Indicator Status DescriptionSingle-ended Channel Connections Isolated Digital Input ConnectionsRelay Connections Field Wiring Considerations Specifications Isolated Digital Input Relay OutputGeneral Page Function Block Appendix B Function Block