Advantech PCI-1718 User Manual

PCI-1718 Series
12-bit Multifunction Cards with Universal PCI Bus
User Manual
Copyright
The documentation and the software included with this product are copy­righted 2005 by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements in the products described in this manual at any time without notice. No part of this man­ual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd. Information provided in this manual is intended to be accurate and reli­able. However, Advantech Co., Ltd. assumes no responsibility for its use, nor for any infringements of the rights of third parties, which may result from its use.
Acknowledgements
Intel and Pentium are trademarks of Intel Corporation.
Microsoft Windows and MS-DOS are registered trademarks of
Microsoft Corp.
All other product names or trademarks are properties of their respective owners.
This Manual Covers the Following Models
• PCI-1718HDU
• PCI-1718HGU
Part No. 2003171800 1st Edition
Printed in Taiwan March 2005
PCI-1718 Series User Manual ii
Product Warranty (2 years)
Advantech warrants to you, the original purchaser, that each of its prod­ucts will be free from defects in materials and workmanship for two years from the date of purchase.
This warranty does not apply to any products which have been repaired or altered by persons other than repair personnel authorized by Advantech, or which have been subject to misuse, abuse, accident or improper instal­lation. Advantech assumes no liability under the terms of this warranty as a consequence of such events.
Because of Advantech’s high quality-control standards and rigorous test­ing, most of our customers never need to use our repair service. If an Advantech product is defective, it will be repaired or replaced at no charge during the warranty period. For out-of-warranty repairs, you will be billed according to the cost of replacement materials, service time and freight. Please consult your dealer for more details.
If you think you have a defective product, follow these steps:
1. Collect all the information about the problem encountered. (For example, CPU speed, Advantech products used, other hardware and software used, etc.) Note anything abnormal and list any onscreen messages you get when the problem occurs.
2. Call your dealer and describe the problem. Please have your man­ual, product, and any helpful information readily available.
3. If your product is diagnosed as defective, obtain an RMA (return merchandize authorization) number from your dealer. This allows us to process your return more quickly.
4. Carefully pack the defective product, a fully-completed Repair and Replacement Order Card and a photocopy proof of purchase date (such as your sales receipt) in a shippable container. A product returned without proof of the purchase date is not eligible for war­ranty service.
5. Write the RMA number visibly on the outside of the package and ship it prepaid to your dealer.
iii
CE
This product has passed the CE test for environmental specifications when shielded cables are used for external wiring. We recommend the use of shielded cables. This kind of cable is available from Advantech. Please contact your local supplier for ordering information.
Technical Support and Assistance
Step 1. Visit the Advantech web site at www.advantech.com/support
where you can find the latest information about the product.
Step 2. Contact your distributor, sales representative, or Advantech's cus-
tomer service center for technical support if you need additional assistance. Please have the following information ready before you call:
- Product name and serial number
- Description of your peripheral attachments
- Description of your software (operating system, version, appli­cation software, etc.)
- A complete description of the problem
- The exact wording of any error messages
Packing List
Before setting up the system, check that the items listed below are included and in good condition. If any item does not accord with the table, please contact your dealer immediately.
• PCI-1718HDU/HGU DA&C card
• PCI-1718HDU/HGU User Manual
• Companion CD-ROM with DLL drivers
Safety Precaution - Static Electricity
Follow these simple precautions to protect yourself from harm and the products from damage.
1. To avoid electrical shock, always disconnect the power from your PC chassis before you work on it. Don't touch any components on the CPU card or other cards while the PC is on.
2. Disconnect power before making any configuration changes. The sudden rush of power as you connect a jumper or install a card may damage sensitive electronic components.
PCI-1718 Series User Manual iv
Contents
Chapter 1 Introduction ..................................................... 2
1.1 Features ............................................................................. 3
1.2 Applications ..................................................................... 4
1.3 Installation Guide ............................................................. 5
1.4 Software Overview ........................................................... 7
1.5 Device Driver Programming Roadmap ............................ 8
1.6 Accessories...................................................................... 10
Chapter 2 Installation ..................................................... 12
2.1 Unpacking ....................................................................... 12
2.2 Driver Installation ........................................................... 13
2.3 Hardware Installation ...................................................... 15
2.4 Device Setup & Configuration ....................................... 16
Chapter 3 Signal Connections ........................................ 20
3.1 Overview ......................................................................... 20
3.2 Switch and Jumper Settings ........................................... 20
3.3 Signal Connections.......................................................... 28
Figure 1.1:Installation Flow Chart ................................. 6
Figure 2.1:Setup Screen of Automation Software ....... 14
Figure 2.2:Different Options for Driver Setup ............ 14
Figure 2.3:The Device Manager Dialog Box ............... 16
Figure 2.4:The Device Setting Dialog Box ................. 17
Figure 2.5:Device Name Appearing on the List of Devic-
es Box .............................................................. 17
Figure 2.6:The Test Utility Dialog Box ....................... 18
Figure 3.1:Card Conn., Jumper & Switch Locations ... 20
3.2.1 Setting the BoardID Switch (SW1) ............................. 21
Table 3.1:Board ID Setting (SW1) .............................. 21
3.2.2 Channel Configuration, S/E or DIFF (SW2) ............... 22
Table 3.2:Summary of Switch SW2 Settings .............. 22
3.2.3 D/A Reference Voltage, int./ext. (JP11) ...................... 22
Table 3.3:Summary of Jumper JP11 Settings .............. 22
3.2.4 Internal Voltage Reference, -10 V or -5 V (JP10) ....... 23
Table 3.4:Summary of Jumper JP10 Settings .............. 23
3.2.5 Timer Clock Selection (JP8) ........................................ 24
Table 3.5:Summary of Jumper JP8 Settings ................ 24
3.2.6 Ext. trigger and Counter Gate 0 Control (JP5) ............ 25
Table 3.6:Summary of Jumper Settings ....................... 25
3.2.7 Digital Output, 20-pin or 37-pin Connector (JP1) ....... 25
Table 3.7:Summary of Jumper Settings ....................... 26
3.2.8 Setting the Time to Reset Digital Outputs ................... 27
Table 3.8:JP21 Jumper Settings ................................... 27
Figure 3.2:I/O Connector Pin Assignments for the PCI-
1718 Series ....................................................... 28
3.3.1 I/O Connector Signal Description ................................ 29
v
Table 3.9:I/O Connector Signal Descriptions .............. 29
3.3.2 Analog Input Connections ........................................... 30
Figure 3.3:Analog Output Connections ....................... 33
3.3.3 Digital Signal Connections .......................................... 34
3.4 Field Wiring Considerations .......................................... 35
Chapter 4 Programming Guide ..................................... 38
4.1 Overview ......................................................................... 38
4.2 Programming with the Driver ......................................... 38
4.3 Register Programming..................................................... 38
4.3.1 Software Trigger and Polling ....................................... 39
4.3.2 Pacer Trigger Mode with Interrupt .............................. 41
4.3.3 Pacer Trigger Mode with Interrupt and FIFO .............. 45
4.4 Programming with LabVIEW and ActiveDAQ .............. 49
Appendix A Specifications ................................................. 52
A.1 Analog Input.................................................................... 52
A.2 Analog Output ................................................................. 53
A.3 Digital Input .................................................................... 53
A.4 Digital Output.................................................................. 54
A.5 Counter/Timer ................................................................. 54
A.6 General ............................................................................ 55
Appendix B Block Diagrams ............................................. 58
Appendix C Register Structure & Format ....................... 60
C.1 Overview ......................................................................... 60
C.2 I/O Port Address Map .................................................... 60
C.3 A/D Data and Channels — BASE+00H~01H ................ 64
C.4 Software A/D Trigger — BASE+00H ............................ 64
C.5 A/D Range Control — BASE+01H ............................... 65
C.6 MUX Scan Channel Control — BASE+02H.................. 67
C.7 MUX Scan Channel Status — BASE+02H .................... 68
C.8 Digital I/O Registers - BASE + 03/0BH ......................... 68
C.9 D/A Output — BASE+04/05H ....................................... 69
C.10 FIFO Interrupt Control — BASE+06H........................... 70
C.11 Clear Interrupt Request — BASE+08H .......................... 71
C.12 A/D Status — BASE+08H .............................................. 71
Table C.1:PCI-1718HDU/HGU Reg. Format (Part 1) 61 Table C.2:PCI-1718HDU/HGU Reg. Format (Part 2) 62 Table C.3:PCI-1718HDU/HGU Reg. Format (Part 3) 63
Table C.4:Register for A/D Data and Channels .......... 64
Table C.5:Register for Software A/D Trigger ............. 64
Table C.6:Register for A/D Range Control ................. 65
Table C.7:Register for MUX Scan Channel Control ... 67
Table C.8:Register for MUX Scan Channel Status ..... 68
Table C.9:Register for Digital Output ......................... 68
Table C.10:Register for Digital Output ...................... 69
Table C.11:Register for D/A Output ........................... 69
Table C.12:Register for FIFO Interrupt Control .......... 70
Table C.13:Register for Clear Interrupt Request ......... 71
Table C.14:Register for A/D Status ............................. 71
PCI-1718 Series User Manual vi
C.13 A/D Control — BASE+09H ........................................... 73
C.14 Timer/Counter Enable — BASE+0AH ........................... 74
Table C.15:Register for A/D Control ......................... 73
C.15 Programmable Timer/Counter — BASE+0C~0FH ........ 74
Table C.16:Register for Timer/Counter Enable ........... 74
C.16 Clear FIFO Interrupt Request — BASE+14H ................ 75
C.17 A/D Data and Channel from FIFO - BASE + 17/18H .... 75
Table C.17:Register for Clear FIFO Interrupt Request 75
Table C.18:Register for A/D Data and Channel from
FIFO ................................................................. 75
C.18 FIFO Status — BASE+19H ............................................ 76
C.19 FIFO Clear — BASE+19H ............................................. 76
Table C.19:Register for FIFO Status ........................... 76
C.20 Register Programming Flow Chart ................................. 77
Table C.20:Register for FIFO Clear ............................ 76
C.20.1 Software Trigger Mode with Polling ........................... 77
C.20.2 Pacer Trigger Mode with Interrupt .............................. 78
C.20.3 Pacer Trigger Mode with Interrupt [FIFO Used] ......... 79
Appendix D Calibration ..................................................... 82
D.1 VR Assignment .............................................................. 83
D.2 A/D Calibration ............................................................... 84
D.3 D/A Calibration ............................................................... 85
Figure D.1:PCI-1718 VR Assignment ......................... 83
vii
PCI-1718 Series User Manual viii
2
1
CHAPTER
Introduction
This chapter introduces the PCI-1718 cards and their typical applications.
Sections include:
• Features
• Applications
• Installation Guide
• Software Overview
• Device Driver Programming Road­map
• Accessories

Chapter 1 Introduction

Thank you for buying the Advantech PCI-1718HDU/HGU. PCI­1718HDU/HGU is a PCI-Bus multifunction card for IBM PC/XT/AT or compatible computers. It offers the five most desired measurement and control functions:
• 12-bit A/D conversion
• D/A conversion
• Digital input
• Digital output
• Timer/counter.
A programmable-gain instrument amplifier lets you acquire different input signals without external signal conditioning. An onboard 1 K word FIFO buffer provides high-speed data transfer and predictable perfor­mance under Windows. Automatic channel scanning circuitry and onboard SRAM let you perform multiple-channel A/D conversion with DMA and individual gains for each channel.
PCI-1718HDU/HGU is compatible* with its ISA-Bus predecessor, the PCL-818HD/HG. This puts rich software support and a wide variety of external signal conditioning boards at your disposal.
The following sections of this chapter will provide further information about features of the multifunction cards, a Quick Start for installation, together with some brief information on software and accessories for the PCI-1718 cards.
Note*
PCI-1718 Series User Manual 2
1. PCI-1718HDU/HGU is register-level- pro­gramming compatible with PCL-818HD/HG
2. Due to the difference between ISA and PCI architecture, we use “interrupt + FIFO” to emu­late the DMA function. But it makes no differ­ence to your programming and applications.

1.1 Features

• Register level programming compatible with PCL-818HD/HG
• 16 single-ended or 8 differential A/D inputs, switch selectable
• 12-bit A/D converter, up to 100 kHz sampling rate
• Programmable gain for each input channel
• Automatic Channel/Gain Scanning
• On-board 1 K word FIFO buffer with software selectable interrupt
• Software selectable Bipolar/Unipolar analog input ranges
• 16 digital inputs and 16 digital outputs, TTL/DTL compatible
• One 12-bit analog output channel
• Data transfers by program control and interrupt handler routine
• Universal PCI-Bus (Support 3.3V or 5V PCI-Bus signal)
• BoardID switch
PCI-1718HDU/HGU offers the following main features:
PCI-Bus Plug & Play
The PCI-1718 cards use a PCI controller to interface the card to the PCI bus. The controller fully implements the PCI bus specification Rev 2.2. All configurations related to the bus, such as base address and interrupt assignment, are automatically controlled by software. No jumper or switch is required for user configuration.
Automatic Channel/Gain Scanning
PCI-1718HDU/HGU features an automatic channel/gain scanning circuit. This circuit, instead of your software, controls multiplexer switching dur­ing sampling. On-board SRAM stores different gain values for each chan­nel. This combination lets user perform multi-channel high-speed sampling (up to 100 kHz) for each channel.
3 Chapter 1
Onboard FIFO
There are 1 K samples FIFO for A/D (AI) on PCI-1718HDU/HGU. This is an important feature for faster data transfer and more predictable per­formance under Windows system.
Onboard Programmable Timer/Counter
PCI-1718HDU/HGU provides a programmable timer counter for generat­ing pacer trigger for the A/D conversion. The timer/counter chip is 82C54, which includes three 16-bit counters of 10 MHz clock. One counter is used as an event counter for counting events coming from the input channel. The other two are cascaded together to make a 32-bit timer for pacer trigger time base.
BoardID Switch
PCI-1718HDU/HGU has a built-in DIP switch that helps define each card’s ID when multiple PCI-1718HDU/HGU cards have been installed on the same PC chassis. The BoardID setting function is very useful when building a system with multiple PCI-1718 cards. With the correct Boar­dID settings, you can easily identify and access each card during hard­ware configuration and software programming.
Note: For detailed specifications of the PCI-
1718HDU/HGU, please refer to Appendix A.

1.2 Applications

• Transducer and sensor measurements
• Waveform acquisition and analysis
• Process control and monitoring
• Vibration and transient analysis
PCI-1718 Series User Manual 4

1.3 Installation Guide

Before you install your PCI-1718HDU/HGU card, please make sure you have the following necessary components:
• PCI-1718HDU/HGU DA&C card
• PCI-1718HDU/HGU User Manual
• Driver software Advantech DLL drivers (included in the companion CD-ROM)
• Personal computer or workstation with a PCI-bus slot (running Win­dows 98/2000/XP)
• PCL-10120 or PCL-10137 Wiring cable (optional)
• ADAM-3920/3937, PCLD-7216/780/782/782B/785/785B/786/788/ 789D/880/885/8115 Wiring board (optional)
Some other optional components are also available for enhanced opera­tion:
• ActiveDAQ, ADAQView, LabView or other third-party software pack­ages
After you get the necessary components and maybe some of the accesso­ries for enhanced operation of your multifunction card, you can then begin the installation procedure. Figure 1.1 on the next page provides a concise flow chart to give users a broad picture of the software and hard­ware installation procedures:
5 Chapter 1

Figure 1.1: Installation Flow Chart

PCI-1718 Series User Manual 6

1.4 Software Overview

Advantech offers a rich set of DLL drivers, third-party driver support and application software to help fully exploit the functions of your PCI­1718HDU/HGU card:
• Device Drivers (on the companion CD-ROM)
• LabVIEW driver
• Advantech ActiveDAQ
• Advantech ADAQView
Programming choices for DA&C cards
You may use Advantech application software such as Advantech Device Drivers. On the other hand, advanced users can use register-level pro­gramming, although this is not recommended due to its laborious and time-consuming nature.
Device Drivers
Advantech Device Driver software is included on the companion CD­ROM at no extra charge. It also comes with all Advantech DA&C cards. Advantech’s Device Drivers features a complete I/O function library to help boost your application performance. Advantech Device Drivers for Windows 98/2000/XP works seamlessly with development tools such as Visual C++, Visual Basic, Borland C++ Builder and Borland Delphi.
Register-level Programming
Register-level programming is available for experienced programmers who find it necessary to write code directly at the level of the device reg­ister. Since register-level programming requires much effort and time, we recommend that you use the Advantech Device Drivers instead. How­ever, if register-level programming is indispensable, you should refer to the relevant information in Appendix C, Register Structure and Format, or to the example codes included on the companion CD-ROM.
7 Chapter 1

1.5 Device Driver Programming Roadmap

This section will provide you a roadmap to demonstrate how to build an application from scratch using Advantech Device Drivers with your favorite development tools such as Visual C++, Visual Basic, Delphi and C++ Builder. 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.
Programming Tools
Programmers can develop application programs with their favorite devel­opment tools:
• Visual C++
• Visual Basic
• Delphi
• C++ Builder
For instructions on how to begin programming works in each develop­ment tool, Advantech offers a Tut orial 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\Advantech Automation\Device Manager\Device Driver's Manual
The example source code could be found under the corresponding instal­lation folder such as the default installation path:
Program Files\Advantech\ADSAP\Examples
For information about using other function groups or other development tools, please refer to the Creating Windows 98/2000/XP Application with
Device Drivers chapter and the Function Overview chapter on the Device Drivers Manual.
PCI-1718 Series User Manual 8
Programming 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.
According to their specific functions or services, APIs can be categorized into several function groups:
• Analog Output Function Group
• Digital Input/Output Function Group
• Counter Function Group
• Port Function Group (direct I/O)
• Event Function Group
For the usage and parameters of each function, please refer to the Func- tion Overview chapter in the Device Drivers Manual.
Troubleshooting 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 Error Messages.
9 Chapter 1

1.6 Accessories

Advantech offers a complete set of accessory products to support the PCI-1718HDU/HGU card. These accessories include:
Wiring Cables
PCL-10120
The PCL-10120 cable is a 20-pin flat cable for PCI-1718HDU/HGU cards.
PCL-10137
The PCL-10137 shielded cable is specially designed for PCI-1718HDU/ HGU cards to provide high resistance to noise. To achieve a better signal quality, the signal wires are twisted in such a way as to form a “twisted­pair cable”, reducing cross-talk and noise from other signal sources. Fur­thermore, its analog and digital lines are separately sheathed and shielded to neutralize EMI/EMC problems.
Wiring Boards
ADAM-3920 20-pin wiring terminal for DIN-rail mounting
ADAM-3937 37-pin D-type wiring terminal for DIN-rail mounting
PCLD-7216 16-channel SSR I/O module carrier board
PCLD-780 Universal screw-terminal board
PCLD-782 16-channel opto-isolated D/I board
PCLD-782B 24-channel opto-isolated D/I board
PCLD-785 16-channel relay output board
PCLD-785B 24-channel relay output board
PCLD-786 8-channel SSR I/O module carrier board
PCLD-788 16-channel relay multiplexer board
PCLD-789D Amplifier and multiplexer board
PCLD-880 Universal screw-terminal board
PCLD-885 16-channel power relay output board
PCLD-8115 Industrial wiring terminal with CJC circuit
PCI-1718 Series User Manual 10
2
2
CHAPTER
Installation
This chapter provides a packaged item checklist, proper instructions for unpacking and step-by-step procedures for both driver and card installation..
Sections include:
• Unpacking
• Driver Installation
• Hardware Installation
• Device Setup & Configuration

Chapter 2 Installation

2.1 Unpacking

After receiving your PCI-1718HDU/HGU package, please inspect its contents first. The package should contain the following items:
• PCI-1718HDU or PCI-1718HGU card
• Companion CD-ROM (Device Drivers included)
• User Manual
The PCI-1718 cards harbor certain electronic components vulnerable to electrostatic discharge (ESD). ESD can easily damage the integrated cir­cuits and certain components if preventive measures are ignored.
Before removing the card from the antistatic plastic bag, you should take the following precautions to ward off possible ESD damage:
• Touch the metal part of your computer chassis with your hand to dis­charge the static electricity accumulated on your body. Alternatively, one can also use a grounding strap.
• Touch the anti-static bag to a metal part of your computer chassis before opening the bag.
• Take hold of the card only by the metal bracket when removing it out of the bag.
After taking out the card, you should first:
• Inspect the card for any possible signs of external damage (loose or damaged components, etc.). If the card is visibly damaged, please notify our service department or our local sales representative immedi­ately. Do not install a damaged card into your system.
Also, pay extra caution to the following aspects during installation:
• Avoid physical contact with materials that could hold static electricity such as plastic, vinyl and Styrofoam.
• Whenever you handle the card, grasp it only by its edges. DO NOT TOUCH the exposed metal pins of the connector or the electronic com­ponents.
PCI-1718 Series User Manual 12
.
Note: Keep the anti-static bag for future use. You
might need the original bag to store the card if you have to remove the card from a PC or trans­port it elsewhere.

2.2 Driver Installation

We recommend you install the driver before you install the PCI­1718HDU/HGU card into your system, since this will guarantee a smooth installation process.
The Advantech Device Drivers Setup program for the PCI-1718HDU/ HGU card is included in the companion CD-ROM that is shipped with your DA&C card package. Please follow the steps below to install the driver software:
1. Insert the companion CD-ROM into your CD-ROM drive.
2. The Setup program will be launched automatically if you have the
autoplay function enabled on your system. When the Setup Pro­gram is launched, you will see the following Setup Screen.
Note: If the autoplay function is not enabled on
your computer, use Windows Explorer or Windows Run command to execute SETUP.EXE on the companion CD-ROM.
13 Chapter 2

Figure 2.1: Setup Screen of Advantech Automation Software

3. Select the Device Drivers option.
4. Select the specific device then just follow the installation instruc-
tions step by step to complete your device driver installation and setup.

Figure 2.2: Different Options for Driver Setup

For further information on driver-related issues, an online version of the
Device Drivers Manual is available by accessing the following path:
Start/Advantech Automation/Device Manager/Device Driver’s Manual
PCI-1718 Series User Manual 14

2.3 Hardware Installation

Note: Make sure you have installed the
driver before you install the card (please refer to chapter 2.2 Driver Installation)
After the Device Drivers installation is completed you can install the PCI­1718HDU/HGU card into any PCI slot on your computer. However, it is suggested that you refer to the computer’s user manual or related docu­mentation if you have any doubts. Please follow the steps below to install the card onto your system.
1. Turn off your computer and unplug the power cord and cables.
TURN OFF your computer before installing or removing any com­ponents on the computer.
2. Remove the cover of your computer.
3. Remove the slot cover on the back panel of your computer.
4. Touch the metal part on the surface of your computer to neutralize
the static electricity that might be on your body.
5. Insert the PCI-1718HDU/HGU card into a PCI slot. Hold the card
only by its edges and carefully align it with the slot. Insert the card firmly into place. Use of excessive force must be avoided; other­wise, the card might be damaged.
6. Fasten the bracket of the PCI card on the back panel rail of the
computer with screws.
7. Connect appropriate accessories (37-pin cable, wiring terminals,
etc. if necessary) to the PCI card.
8. Replace the cover of your computer chassis. Re-connect the cables
you removed in step 2.
9. Plug in the power cord and turn on the computer.
After your card is properly installed on your system, you can now config­ure your device using the Advantech Device Manager Program that has itself already been installed on your system during driver setup. A com­plete device installation procedure should include device setup, configu- ration and testing. The following sections will guide you through the Setup, Configuration and Testing of your device.
15 Chapter 2

2.4 Device Setup & Configuration

The Advantech Device Manager program is a utility that allows you to set up, configure and test your device, and later stores your settings on the system registry. These settings will be used when you call the APIs of Advantech Device Drivers.
Setting Up the Device
1. To install the I/O device for your card, you must first run the
Device Installation program (by accessing Start/Advantech Auto­mation/Device Manager/Advantech Device Manager ).
2. You can then view the device(s) already installed on your system
(if any) on the Installed Devices list box. Since you have not installed any device yet, you might see a blank list such as the one below (Fig. 2-3).

Figure 2.3: The Device Manager Dialog Box

3. Scroll down the List of Devices box to find the device that you wish
to install, then click the Add… button. You will see a Device Set-
ting dialog box such as the one in Fig. 2-4.
PCI-1718 Series User Manual 16
Configuring the Device
4. On the Device Setting dialog box (Fig. 2-4), you can configure the
A/D channels configuration either as 8 Differential or 16 Single-
ended, and specify the D/A voltage reference either as External or Internal.

Figure 2.4: The Device Setting Dialog Box

5. After you have finished configuring the device, click OK and the
device name will appear in the Installed Devices box as seen below:

Figure 2.5: Device Name Appearing on the List of Devices Box

17 Chapter 2
After your card is properly installed and configured, you can click the Tes t… button to test your hardware by using the testing utility supplied.

Figure 2.6: The Test Utility Dialog Box

For more detailed information, please refer to Chapter 2 of the Device Drivers Manual.
You can also find rich examples on the CD-ROM to speed up your pro­gramming.
PCI-1718 Series User Manual 18
2
3
CHAPTER
Signal Connections
This chapter provides useful informa­tion about how to connect input and output signals to the PCI-1718 cards via the I/O connector..
Sections include:
• Overview
• Switch and Jumper Settings
• Signal Connections
• Field Wiring Considerations

Chapter 3 Signal Connections

3.1 Overview

Maintaining signal connections is one of the most important factors in ensuring that your application system is sending and receiving data cor­rectly. A good signal connection can avoid unnecessary and costly dam­age to your PC and other hardware devices. This chapter provides useful information about how to connect input and output signals to the PCI­1718 cards via the I/O connector.

3.2 Switch and Jumper Settings

PCI-1718 cards have two function switches and five jumper settings.

Figure 3.1: Card Connector, Jumper and Switch Locations

JP Description SW/CN Description
JP1 Digital Output Connector Setting SW1 BoardID Setting JP5 Trigger Source & Gate Control
Setting JP8 Timer Clock Setting CN1 IDE 20-pin Header 1 JP10 Internal Reference Voltage Set-
ting Jp11 D/A Reference Voltage Setting CN3 DB-37 Pin Connector JP21 Reset Protection Setting
PCI-1718 Series User Manual 20
SW2 S.E/Diff Connection
Setting
CN2 IDE 20-pin Header 2

3.2.1 Setting the BoardID Switch (SW1)

BoardID settings are used to set a board’s unique identifier when multiple identical cards are installed in the same system.
PCI-1718 cards have a built-in DIP switch (SW1), which is used to define each card’s unique identifier. You can determine the unique identifier in the register as shown in Table 3.1. If there are multiple identical cards in the same chassis, the BoardID switch helps differentiate the boards by identifying each card’s device number with the switch setting. The Boar­dID switch’s unique identifier has been set to 0 at the factory.
If you need to adjust it to other numbers, set SW1 by referring to DIP switch settings below.
Table 3.1: Board ID Setting (SW1)
SW1 3 2 1 0
BoardID ID3 ID2 ID1 ID0
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ON ON ON ON
ON ON ON OFF
ON ON OFF ON
ON ON OFF OFF
ON OFF ON ON
ON OFF ON OFF
ON OFF OFF ON
ON OFF OFF OFF
OFF ON ON ON
OFF ON ON OFF
OFF ON OFF ON
OFF ON OFF OFF
OFF OFF ON ON
OFF OFF ON OFF
OFF OFF OFF ON
OFF OFF OFF OFF
Default Setting is 0
21 Chapter 3
Loading...
+ 65 hidden pages