Omega Vehicle Security USB-4761 manual Device Driver Programming, Programming Tools

Page 12
1.5 Device Driver Programming

1.5 Device Driver Programming

This section will provide a roadmap to demonstrate how to build an appli- cation from scratch using the Device Drivers with your favorite development tools such as Visual C++, Visual Basic. The step-by-step instructions on how to build your own applications 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

For instructions on how to begin programming in each development tool, a Tutorial Chapter in the Device Drivers Manual is included 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/Omega USB-4700 Series/Device Driver’s Manual

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

C:/Program Files/Omega/USB-4700/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 12
Contents User’s Guide USB-47618 Channel Relay/Isolated DI USB Data Acquisition Module Shop online atOMEGAnet Online Service omega.com Internet e-mail info@omega.comServicing North America For immediate technical or application assistanceUser Manual 8-channel Relay / Isolated DI USB Data Acquisition ModuleUSB-4761 Signal Connections ChapterContents InstallationA Specifications AppendixB Function Block Introduction Features Applications Installation Guide Software Overview1.1 Features You can install up to sixteen USB-4761’s to aThe power output of an USB port is 500 mA external power supply to support more than one1.1.3 Reset Protection for Industrial Applications 1.1.1 Robust Protection1.1.2 Wide Input Range 1.1.4 Plug & Play Function1.3 Installation Guide 1.2 ApplicationsFigure 1.1 Installation Flow Chart 1.4 Software Overview 1.4.1 Programming Choices for DA&C Module1.4.2 Device Drivers 1.5 Device Driver Programming 1.5.1 Programming ToolsStart/Programs/Omega USB-4700 Series/Device Driver’s Manual C/Program Files/Omega/USB-4700/Examples1.5.3 Troubleshooting Device Drivers Error 1.5.2 Programming with Device Drivers Function LibraryInstallation Unpacking Driver Installation Hardware InstallationDevice Setup & Configuration Device Testing Hardware Uninstallation Chapter 2 Installation 2.1 UnpackingAfter taking out the module, you should first 2.2 Driver Installation If the auto-play function is not enabled on yourcommand to execute Setup.exe on the companion computer, use Windows Explorer or Windows Run2.3 Hardware Installation Make sure you have installed the software driverbefore you install the module please refer to Section 2.2 Driver InstallationIf your module is properly installed, you should installed. In this case, remove the mod- ule fromthe driver installation process again Figure 2.2 Device Name on the Device Manager2.4 Device Setup & Configuration 2.4.1 Setting Up the Device2.4.2 Configuring the Device Figure 2.4 Device Manager Dialog Boxcan’t find it in Device Manager, please close the Device Manager and restart it2.5 Device Testing Figure 2.5 The Device Setting Dialog BoxPlease refer to the software manual download utility guidance and further information2.5.1 Testing Digital Input Function 2.5.2 Testing Digital Output FunctionFigure 2.6 Digital Input Tab in Device Test Dialog 2.6 Hardware Uninstallation Figure 2.7 Digital Output Tab in Device Test DialogFigure 2.8 Unplug or Eject Hardware Dialog Figure 2.9 Stop a Hardware device dialog boxStep3 Select “USB4711 Device” and press “Stop” Button some unexpected system errors or damages may hap Please make sure that you have closed the applicationprograms before unplugging the USB device, otherwise Step4 Unplug your USB device from the USB portSignal Connections Sections include Overview I/O Connectors Field Wiring ConsiderationsChapter 3 Signal Connections 3.2 I/O Connectors3.1 Overview 3.2.1 Pin AssignmentFigure 3.1 I/O Connector Pin Assignment Chapter33.2.2 I/O Connector Signal Description 3.2.3 LED Indicator Status DescriptionTable 3.1 I/O Connector Signal Description Table 3.2 LED Indicator Status Description3.3 Isolated Digital Input Connections 3.4 Relay Connections3.3.1 Single-ended Channel Connections Figure 3.2 Isolated Digital Input Connections3.5 Field Wiring Considerations Specifications Appendix A Specifications A.1 Isolated Digital InputA.2 Relay Output A.3 General AppendixAUSB-4761 User Manual Function Block Appendix B Function Block WARRANTY/DISCLAIMER RETURN REQUESTS/INQUIRIESTEMPERATURE PRESSURE, STRAIN AND FORCEFLOW/LEVEL pH/CONDUCTIVITY