Isolated high-functional
Analog Input Board for PCI
ADI12-16(PCI)
User’s Guide
CONTEC CO., TD.
BoardCD-RO
M
[API-P
AC(W3
2)]
Fi
rst step gu
ide
Che ck Yo ur Package
Thank you f or purcha sing th e CONT EC pr o du c t .
The product consists of the items listed below.
Check, with the fo llowing list, that your package is complete. If you discover damaged or missing
items, contact your retailer.
Product Config uration List
- Board [ADI12-16(PCI)] …1
- First step guide …1
- CD-ROM *1 [API-PAC(W32)]…1
*1 The CD-ROM contains the driver software and User’s Guide (this guide)
ADI12-16(PCI)
i
Copyright
Copyright 1999 CONTEC CO., LTD. ALL RIGHTS RESERVED
No par t of this docu m e nt may be co pie d or reproduce d in any for m by a n y m eans wi thou t pri or writte n
consent of CONTEC CO., LTD.
CONTEC CO., LTD. makes no commitment to update or keep current the information contained in this
document. The information in this document is subject to change without notice.
All relevant issues have been considered in the preparation of this document. Should you notice an
omission or any questionable item in this document, please feel free to notify CONTEC CO., LTD.
Regardless of the foregoing statement, CONTEC assumes no responsibility for any errors that may
appear in this document or for results obtained by the user as a result of using this product.
Trademarks
MS, Microsoft, Windows and Windows NT are trademarks of Microsoft Corpor ation. Other brand and
product names are trademarks of their respective holder.
ADI12-16(PCI)
ii
Table of Contents
Check Your Package .................................................................................................................................... i
Copyright ..................................................................................................................................................... ii
Trademarks .................................................................................................................................................. ii
Table of Contents ....................................................................................................................................... iii
1. BEFORE USING THE P RODUCT 1
About the Board .......................................................................................................................................... 1
Features ................................................................................................................................................. 1
Support Software.................................................................................................................................. 2
Customer Support ........................................................................................................................................ 4
Web Site................................................................................................................................................ 4
How to Obtain Service ................................................................................................................................ 4
What is Setup? ............................................................................................................................................. 9
Using the Board under Windows Using the Driver Library API-PAC(W32) ................................ 9
Using the Board under Windows Using Software Other than the Drive r Library API-
Diff e rential I nput ............................................................................................................................... 44
Current Input ...................................................................................................................................... 45
Digit al I/O signals and Cont rol signals Connection ............................................................................... 46
Connecting the input signal .............................................................................................................. 46
Connecting the output signal ............................................................................................................ 48
Surge Voltage Countermeas ures ...................................................................................................... 50
4. FUNCTIONS 51
Analog Input Function .............................................................................................................................. 51
1. Setting the C onversion Conditions .............................................................................................. 52
Digit al Input Function............................................................................................................................... 62
Digit al Output Fu n ction ............................................................................................................................ 63
Timing of Sampling Control Sign als ....................................................................................................... 84
Digit al Filter ....................................................................................................................................... 85
Control Signal Delay Time ............................................................................................................... 85
About Calibration ...................................................................................................................................... 86
ADI12-16(PCI)
v
ADI12-16(PCI)
vi
1. Before Usin g t h e Produ ct
1. Befo re Us ing the Product
About the Board
ADI12-16(PCI ) i s PCI -compliant interface boards that convert analog input signals to digital
equivalents (performing analog-to-digital conversion).
ADI12-16(PCI) can perform A-D conversion at a conversion speed of 20µsec per channel and a
resolution of 12-bit.
Using the bundled driver library [API-PAC(W32)], you can create Windows a pplication software for
this board in your favorite pr ogramming language supporting Win32 API functions, such as Visual
Basic or Visua l C++ .
Features
Bus-isolation by an optocoupler
PC and external I/O circuit is isola ted f rom each other by an optocoupler, offering good noise immunity.
Sixteen single-ended channels and eight differential channels (Analog input function)
Either board allows the single-ended or differential input mode to be selected with on-board jumpers.
The order o f channels subject to signal conver sion can be preset in the dedicated register.
On-board buffer memory (Analog input fu nction)
The board has buffer memory available as a FIFO or ring buffer to hold 256 kilobytes of data. T his
enables samp l i ng to b e ex e cut e d in the background independently of the processing power of the PC.
Assorted sampling control functions (Analog input function)
The board ca n control the starting and stopping of sampling not only with software commands but also
by detecting analog signal strength or digital signals. The board offers a choice of sa mpling clocks
selectable to determine the sampling speed: the internal sampling clock using the on-board clock
generator and the external sampling clock using the digital signal input from an external device.
Digit al input/output function
The b oa rd ha s o ptoc oupler iso la tio n ope n -collector output (sink type) digital output 4 channels,
optocoupler isolation input (corresponding to sink output) digital input 4 channels and can monitor,
control the external dev ice.
Software-based calibration function
Calibration of analog input can be all performed by software. Apart from the adjustment information
prepared before shipment, additional adjustment infor mation can be stored accor ding to the use
environment.
Abundant optional units
Optional units are available for enhancements.
Using optional units enhances boar d functions and facilitates connections.
ADI12-16(PCI)
1
1. Before Usin g t h e Produ ct
For more details on the option, please refer to this chapter “Cable & Connector” or
“Accessories (Option)”.
Support Software
You should use CONTEC support softwar e according to your purpose and development environment.
Windows version of analog I/O driver
API-AIO(WDM) / API-AIO(98/PC)
[Stored on the bundled CD-ROM driver library API-PAC(W32)]
The API-AIO(WDM) / API-AIO(98/PC) is the Windows version driver library software that provides products in the
form of Win32 API functions (DLL). Various sample programs such as Visual Bas ic and Visual C++, etc and
diagnostic program *1useful for checking operation i s provided.
For mo re det a il s on the su pport ed OS, a pp l icable langua ge and new inf o r m a t ion, pl ease visit the CONT EC’s Web site.
Linux version of analog I/O dr i ver
API-AIO(LNX)
[Stored on the bundled CD-ROM driver library API-PAC(W32)]
The API-AIO(LNX) is the Linux version driver soft ware which provides device drivers (modules) by shared library
and ke r ne l version . Various sample pro gr a m s of gcc a r e pro vided.
For mo re det a il s on the su pport ed OS, a pp l icable langua ge and new inf o r m a t ion, pl ease visit the CONTEC’s Web site.
Data acquisition VI library for La bVI EW
VI-DAQ
(Available for downloading (free of charge) from the CONTEC web site.)
This is a VI library to use in National Ins truments LabVIEW.
VI-DAQ is created with a function form similar to that of LabVIEW's Data Acquisition VI, allowing you to use
vari o us devices w ithou t c o m pl icated settings.
For mo re det a il s on the library and download of VI-DAQ, please visi t the C ONTE C ’s Web site.
ADI12-16(PCI)
2
1. Before Usin g t h e Produ ct
Cable & Co nn ect or (Option)
Flat Cable with One 37-pin D-SUB Connector : PCA37P-1.5 (1.5m)
Shielded Cable with One 37-pin D-SUB Connector : PCA37PS-0.5P (0.5m)
: PCA37PS-1.5P (1.5m)
Flat Cable with Two 37-pin D-SUB Connectors : PCB37PS-1.5(1.5m)
Shielded Cable with Two 37-pin D-SUB Connectors : PCB37PS-0.5P (0.5m)
: PCB37PS-1.5P (1.5m)
Flat Cable with One 15-pin D-SUB Connector : PCA15P-1.5 (1.5m)
Flat Cable with Two 15-pin D-SUB Connectors : PCB15P-1.5 (1.5m)*1
Coax i a l Cable f or Single -ended Inputs (16 channels) : PCC16PS-1.5 (1.5m)
: PCC16PS-3 (3m)
2 Wires Shielded Cable for Differential Inputs (8 channels) : PCD8PS-1.5 (1.5m)
: PCD8PS-3 (3m)
Flat Cable with 1 Sided 16-Pin Header Connector (1.5m) : DT/E1
Conversion Cable (16Pin to 15Pin) with Bracket : DT-E3
37-pin Male Connector Set (5 Pieces) : CN5-D37M
*1 For FTP-15 only
Accessories (Option)
Termination pa nel with Screw Terminals for Spade Lugs(M3 screw, 37points)
: DTP-3A *2
Term ination p ane l with Screw Terminals(M2.6 screw, 37points) : DTP-4A *2
Screw Terminal(M3 screw, 37points) : EPD-37A *2*3
Screw Terminal(M3.5 screw, 37points) : EPD-37 *2
Termination pa nel for Digital I/O on Analog Multi-function Boards : FTP-15 *4
Termination pa nel with BNC connectors for Analog Multi-function Boards(Analog Input 16ch)
: ATP-16 *2
8ch-Isolati on Acc e s s o ry B oa rd for Anal o g I n put s : ATII-8C *2*5
Low pass filter expansion board : ATLF-8A *2*5
Buffer amplifier termination panel for analog mu lti-function box(16ch type) : ATBA-16E*2
*2 A PCB37P or PCB37PS optional cable is required separately.
*3 “Spring-up” type term inal i s used to pre vent t erminal scr ews from falling off.
*4 A DT-E3 and PCB15P-1.5 optional cable is required separately.
*5 Exter nal P ower supply is required separately.
* Check the CONTEC’s Web site for more information on these options.
ADI12-16(PCI)
3
1. Before Usin g t h e Produ ct
Custo mer Suppo rt
CONTEC provides the following support services for you to use CONTEC products more efficiently
and comfortably.
Web Site
https://www.contec.com/
Latest product informatio n
CONTEC provides up-to-date information on products.
CONTEC also provides product manuals and various technical documents in the PDF.
Free download
You can download updated driver software and differential files as well as sample pr ograms available in
several languages.
Note! For product information
Contact your retailer if you have any technical question about a CONTEC product or need its price,
deliver y time, or estimate information.
Limited Three-Years Warranty
CONTEC Interface products are warranted by CONTEC CO., LTD. to be free from defects in material
and workmanship for up to three years fr om the date of purchase by the original purchaser.
Repair will be free of charge only when this device is returned freight prepaid with a copy of the
original invoice and a R e turn M erchandi s e Aut ho r i zati o n to the di stribu tor or the CONT EC group
offi c e, fro m w h ich it was pu rchased.
This warranty is not applicable for scratches or normal wear, but only for the electronic circuitry and
original products. The warranty is not applica bl e i f th e devi c e has b e e n tamp ered wi th or dama ged
through abuse, mistre atmen t, neg lect, or unreasonable use, or if the original invoice is not included, in
which case repairs will be consi dered beyond the warranty policy.
How to Obtain Service
For r eplacement or repair, return the device freight prepaid, with a copy of the original invoice. Please
obtain a Return Merchandise Authorization number (RMA) from the CONTEC group office where you
purchased before returning any pr oduct.
* No product will be a c c e pted by CONTEC grou p w i thou t t he RMA numb er.
Liability
The obligation of the warrantor is solely to repair or replace the product. In no event wi ll the
warrantor be liable for any incidental or consequ ential damages due to such defect or consequences that
arise from inexperienced usage, mi suse, or malfunction of this device.
ADI12-16(PCI)
4
1. Before Usin g t h e Produ ct
DAN
GER
WARNING
C
AU
TION
Safety Precautions
Understand the following definitions and precautions to use the product safely.
Safety Info rmation
This document provides s afety information using the following symbols to prevent accidents resulting
in injury or death and the destruction of equipment and resources. Understand the meanings of these
labels to opera te the equipment safely.
DANGER indicates an imminently hazardous situation which, if not avoided, will
result in death or serious injury.
WARNING indicates a potentially hazardous situation which, if not avoided, could
result in death or serious injury.
CAUTION indicates a potentially hazardous situation which, if not avoided, may
result in minor or moderate injury or in property damage.
ADI12-16(PCI)
5
1. Before Usin g t h e Produ ct
DA
NGER
CAUTION
Handling Precautions
Do not use the product wher e it is exposed to flammable or corrosive gas. Doing so may result in
an explosion, fire, electric shock, or failure.
- There are switches a nd jumpers on the board that need to be set in advance.
Be sure to check these before installing t o the expansion slot.
- Only set the switches and jumpers on the board to the speci fied settings.
Otherwise, the board may malfunction, overheat, or cause a failure.
- Do not strike or bend the board.
Otherwise, the board may malfunction, overheat, cause a failure or breakage.
- Do not touch the board's metal plated terminals (edge connector) with your hands.
Otherwise, the board may malfunction, overheat, or cause a failure.
If the terminals are touched by someone's hands, clean the terminals with industrial alcohol.
- Do not install or remove the board to or from the expansion slot while the comput er's power or
expansion unit is turned on.
Otherwise, the board may malfunction, overheat, or cause a failure.
Be sure that the personal comput er power is turned off.
- Make sure that your PC or expansion unit ca n supply ample power to all the boards installed.
Insufficiently energized boards could malfunction, overheat, or cause a failure.
- The specifications of this product are subject to change without notice for enhancement and quality
improvement.
Even when using the product continuously, be sure to read the user’s guide and understand the
contents.
- Do not modify the product. C ONTEC will bear no responsibility for any problems, etc., resulting
from modifying this product.
- Regardless of the foregoing statements, CONTEC is not liable for an y dama g e s w ha tsoe ver
(including da mages for loss of business pr ofits) arising o u t of th e use or inability to use this
CONTEC product or the information contained herein.
- Regarding “CE EMC Directive Notice”.
Please connect the Interface Connector with a shielded cable to meet the mentioned standard above.
ADI12-16(PCI)
6
1. Before Usin g t h e Produ ct
- Th
e gold
-plated
leads
of
the
bus
conn
ector
h
ave
no
sta
in
or cor
rosi
on.
-
C
h
ec
k
t
ha
t
t
he
bo
ar
d
h
as
n
o
d
us
t or
fo
rei
gn
matt
er
adh
erin
g.
- Check tha
t t
he
bus
con
nec
tor
of the boar
d a
nd its cable have
be
en p
lug
g
ed
c
o
rr
e
ct
ly
.
Environment
Use this product in the following environment. If used in an unauthorized environment, the board may
overheat, malfunction, or cause a failure.
Operating temperature
0 - 50°C
Operating humidity
10 - 90%RH (No condensation)
Corrosive gases
None
Floa t i ng du st particles
Not to be excessive
Inspection
Inspect the product periodically as follows to use it safely.
Storage
When storing this product, keep it in its original packing for m.
(1) Put the board in the storage bag.
(2) Wrap it in the packing material, then put it in the box.
(3) Store the package at room temperature at a place free from direct sunlight, moisture, shock,
vibration, magnetism, and static electricity.
Disposal
When disposing of the product, follow the disposa l procedures stipulated under the relevant laws and
muni c ipal ordinanc e s .
ADI12-16(PCI)
7
1. Before Using th e Produ ct
ADI12-16(PCI)
8
2. Setup
2. Setup
This chapter explains how to set up the board.
What is Setup?
Setup means a series of steps to take before the product can be used.
Different steps are required for software and hardware.
The setup procedure varies with the OS and software used.
Using the Board under Windows
Using the Dr iver Library API-PAC(W32)
This section describes the setup procedure to be performed before you can start devel oping application
programs fo r the boa rd using t he bundle d C D-ROM “Dr iver Libra ry API-PAC(W32)”.
Taking the following steps sets up the software and hardware. You can use the diagnosis program later
to check whether the software and hardware function normally.
Step 1 Installing the Software
Step 2 Setting the Hardware
Step 3 Installing the Hardware
Step 4 Initializing the Software
Step 5 Checking Operations with the Diagnosis Program
If Setup fails to be perfor med normally, see the “Setup Troubleshooting” section at the end of this
chapter.
Using the Board under Windows
Using Software Other than the Driver Library
API-PAC(W32)
For setting up software other than API-PAC(W32), refer to the user’s guide for that software. See also
the following parts of this user’s guide as required.
This chapter Step 2 Setting the Hardware
This chapter Step 3 Installing the Hardware
Chapter 3 External Connection
Chapter 6 About Hardware
ADI12-16(PCI)
9
2. Setup
Using the Board under an OS Other than Windows
For using the board under an OS other than Windows, see the following parts of this user’s guide.
This chapter Step 2 Setting the Hardware
Chapter 3 External Connection
Chapter 6 About Hardware
ADI12-16(PCI)
10
2. Setup
Step 1 Installing the Software
This section describes how to insta ll the Driver libraries.
Before installing the hardware on your PC, install the Driver libraries from the bundled
API-PAC(W32) CD-ROM.
The following description assumes the operating system as Windows XP. Although some user
interfaces are different depending on the OS used, the basic procedure is the same.
About the driver to be used
Two analog I/O drivers are available : API-AIO(WDM) and API-AIO(98/PC)W95/NT.
API-AIO(WDM) is a new driver to perform analog input/output under Windows.
API-AIO(WDM) was developed to improve the conventional product version of API-AIO(98/PC) in the
ease of use and functionality.
It is advisable to use API-AIO(WDM) for you to use an analog I/O device. API-AIO(WDM) will
support new OSs and devices in the future but will not support Windows NT 4.0, Windows 95, ISA bus.
Use API-AIO(98/PC) if your operating environment contains such an unsupported piece of software or
hardware.
Check the following selection guide to easily select the driver to be used.
ADI12-16(PCI)
11
2. Setup
CAUTION
Starting the Install Program
(1)
Load the CD-ROM [API-PAC ( W3 2 )] on your PC.
(2)
The AP I-PAC(W32) Installer window appears automatically.
If the panel does not appear, run (CD-ROM drive letter) :\AUTORUN.exe.
(3)
Click on the [Install Development or Execution Environment]] button.
* When using the Windows 7, Vista, driver is automatically installed.
Before installing the software in Windows 7, Vista, XP, Server2003 or 2000, log in as a user with
administrator privileges.
ADI12-16(PCI)
12
2. Setup
Select API-AIO(WDM)
Selecting API-AIO(WDM)
(1)
The following dialog box appears to select “Driver to install” and “Install option”, “Usage of
driver library”.
(2)
Select the "Ad vanced Anal og I/O driver".
(3)
Click on the [Install] button.
* Clicking on the [API-AIO] button under the “Detail” displays detailed information about API-
AIO(WDM) and API-AIO(98/PC).
Run the installation
(1)
Complete the installation by following the instructions on the screen.
(2)
The Readme file appears when t he insta llatio n is complete.
ADI12-16(PCI)
13
2. Setup
Select API-AIO(98/PC)
Selecting API-AIO(98/PC)
(1)
The following dialog box appears to select “Driver to install” and “Install option”, “Usage of
driver library”.
(2)
Select “Classic Analog I/O drive r”.
(3)
Click on the [Install] button.
* Clicking on the [API-AIO] button under the “Detail” displays detailed information on API-
AIO(WDM), API-AIO(98/PC).
ADI12-16(PCI)
14
2. Setup
Executing the Installation
(1)
Follow the on-screen instructions to proceed to install.
(2) When the required files have been copied, the “Perform a hardware setup now(API-TOOL
Configuration)” and “Show readme file” check boxes ar e displayed.
When you are installing t he software or hardwa re for the first time:
1) Uncheck “Perform a hardware setup now”.
2) Click on the [Finish] button.
Go to Step 2 to set and plug the hardware.
* Whe n the har dwar e has already been installed:
Check “Pe r form a hardwar e setup now( API-TOOL Configuration)”, then go to Step 4
“Initializing the Software”.
You have now finished installing the software.
ADI12-16(PCI)
15
2. Setup
Jumper for Voltage/
Current Input Setting
JP1
JP2
1 2 3
1 2 3
JP3
1 2 3
JP4
1 2 3
JP5
1 2 3
JP6
1 2 3
JP7
1 2 3
JP8
1 2 3
JP9
1 2 3
JP10
1 2 3
1 2 3
JP12
JP13
JP11
JP14
1
3
JP15
1
3
JP16
1
3
JP17
1
3
JP18
1
3
JP19
1
3
1 2 3
JP21
VR1 VR2 VR3 VR4 VR5 VR6 VR7
1 2 3
JP22
USE
NOT
USE
INT
SW1
BOARD ID
0
1
2
3
4
5
6
7
9
A
B
C
D
E
F
SW for setting board ID
Jumper for Input
Mode Setting
Jumper for setting
Input Range
CN2 Digital and Control
Signal I/O Connector
Analog Signal
Input Connector
Jumper for interrupt
signal resource setting
Analog input control trimmers
Jumper for setting
Input Range
1 2 3
JP20
Jumper for Input
Mode Setting
Step 2 Setting the Hardware
This section describes how to set the board and plug it on your PC.
The b oa rd ha s some switches and jumper to be preset.
Check the on-board switches and jumpers before plugging the board into an expansion slot.
The board ca n be set up even with the factory defaults untouched. You can change board settings l ater.
Parts of the Board and Facto ry De fau lt s
Figure 2.1. Part N ames
Note that the switch and jumper set ting shown below is the fa ctory default.
ADI12-16(PCI)
16
2. Setup
BOAR
D I
D
(Board ID = 0)
Factory setting:
SW1
0
1
2
3
4
5
6
7
9
A
B
C
D
E
F
JP22
USENO
T USE
1 2 3
INT
JP22
U
SENOT USE
1 2 3
INT
If u
sin
g the interruptIf
not
us
ing th
e in
terr
upt
CAUTION
Setting the Board ID
If you install two or more boards on one personal computer, assign a different ID value to each of the
boards to distinguish them.
The b oa rd ID s can be s et from 0 to F h t o identify up to sixteen boards.
If only one board is used, the original factory setting ( Board ID = 0) should be used.
Setting Procedure
To set the boar d ID, use the rotary switch on the board. Turn the SW1 knob to set the board ID as
shown below.
Figure 2.2. Board ID Se tting s (SW1 )
Setting t h e in t errupt signal resource
If you set up the board not to use interrupts, you can make your PC recognize the board as using no
interrupts to save the PC's interrupt signal resources.
Setup method
Figure 2.3. Setting the interrupt signal resource
When the board uses interrupts, it is assigned an interrupt level by the PC.
API-AIO(WDM) is designed to use interrupts. Set the jumper to use interrupts.
ADI12-16(PCI)
17
2. Setup
Single-ended input
Di
ffe
ren
tial
in
put
J
P13
1 2 3
JP11
1 2 3
JP12
1 2 3
J
P20
1
2 3
JP13
1 2 3
JP11
1 2 3
JP12
1 2 3
JP20
1 2 3
CAUTION
Setting the Analog Input
The analog input is set by specifying the input mode and input range.
For the input mode setting function, see Chapter 4 “Functions”.
Setting the Input Mode
The input mode is the method of connecting analog input signals. The single-ended and differential
input modes are available.
Use JP11 to J P13 to set the desired input mode.
Figure 2.4. Setting the Input Mode
Do not set the jumpers to any strapping pa ttern other than those specified above. D oing so can
result in a fault in the board.
ADI12-16(PCI)
18
2. Setup
1 2 3
JP3
1 2 3
JP4
1 2
3
JP5
1 2 3
JP6
1 2 3
J
P7
1 2 3
JP8
1
2 3
JP9
1 2 3
JP
10
JP
1
JP2
1 2 3
1 2 3
JP21
JP18JP141
3
JP
151
3
JP161
3
JP171
3
1
3
J
P191
3
Bipolar -1
0V
- +
10V
-5
V -
+5
V
-2.5
V -
+2
.5V
-1.
25V
-
+1.
25V
Setting the Input Range
The input range indicates the range of voltages of analog input signals.
The board conver ts the voltages in the preset input range into digital signals according to the resolution.
The input range is common to a ll channels; it is not possible to set a different input range for each
channel. Figures 2.5, 2.6 and 2.7 illustrates the jumper settings on each board.
Set the input range using both of jumpers and software.
Figure 2.5. Setting the Input Range (Bipolar voltage input)
ADI12-16(PCI)
19
2. Setup
1 2 3
JP21
1 2 3
J
P3
1 2 3
J
P4
1 2 3
JP5
1 2
3
JP6
1 2 3
JP7
1
2 3
JP
8
1 2 3
JP9
1 2
3
JP1
0
JP1
JP2
1 2
3
JP
181
3
J
P19
1
3
JP141
3
JP
151
3
JP161
3
JP171
3
U
n
ip
ol
a
r
0
V
-
+
1
0V
0V
-
+5
V
0V - +2.5V
0V - +1.25V
Un
ipola
r 4mA
- 20mA
1 2 3
JP21
JP18
1
3
JP
191
3
JP14
1
3
J
P151
3
JP161
3
JP171
3
JP1
JP2
1 2 3
1 2 3
JP3
1 2 3
JP4
1 2 3
JP5
1 2 3
JP6
1 2 3
J
P7
1 2 3
JP8
1 2 3
JP9
1 2 3
JP
10
CAU
TION
Figure 2.6. Setting the Input Range (Unipolar voltage input)
Figure 2.7. Setting the Input Range (Current input)
For cur rent input, be sure to set the input method to differential input.
Do not set the jumpers to any strapping pattern other than those specified above. Doing so can
result in a fault in the board.
ADI12-16(PCI)
20
2. Setup
CAUTION
Plugging the Boa rd
(1) Before plugging the board, shut down the system, unplug the power code of your PC.
(2) Remove the cover from the PC so that the board can be mount e d .
(3) Plug the board into an expansion slot.
(4) Attach the board bracket to the PC with a screw.
(5) Put the cover back into place.
- Do not touch the board's metal plated terminals (edge connector) with your hands.
Otherwise, the board may malfunction, overheat, or cause a failure.
If the terminals are touched by someone's hands, clean the terminals with industrial alcohol.
- Do not install or remove the board to or from the slot while the computer's power is turned on.
Otherwise, the board may malfunction, overheat, or cause a failure.
Doing so could cause trouble. Be sure that the personal computer or the I/O expansion unit power is
turned off.
- Make sure that your PC or expansion unit can supply ample power to all the boards installed.
Insufficiently energized boards could malfunction, overheat, or cause a failure.
ADI12-16(PCI)
21
2. Setup
CAUTION
Step 3 Installing the Hardwa re
For using an expansion board under Windows, you have to let the OS detect the I/O addresses and IRQ
to be used by the board. The process is referred to as installing the hardware.
In the case of using two or more boards, make sure you install one by one with the Add New Hardware
Wizard.
Turning on th e P C
Turn on the power to your PC.
- The board cannot be properly installed unless the resources (I/O addresses and interrupt level ) for
the board can be allocated. Before attempting to install the board, first determine what PC
resources are free to use.
- The resources used by each board do not depend on the location of the PCI bus slot or the board
itself. I f you remove two or more boards that have a lready been installed and then remount one of
them on the computer, it is unknown that which one of the sets of resources previously assigne d to
the two boards is assigned to the remounted boar d. In this case, you must check the resource
settings.
When Using API-AIO(WDM)
(1) The “Found New Hardware Wizard” will b e sta rt e d .
Select “No, not this time” and then click the “Next” button.
ADI12-16(PCI)
22
2. Setup
(2) When “Multimedia Controller” is displayed, select “In sta l l from a lis t or specific
location[Advanced]” and then specify that folder on the CD-ROM which contains the setup
information (INF) file to register the board.
When the model name of hardware is displayed, select “Install the software a u to matically
[Recommended]” and then clic k on the “Next” button.
Source folder
The setup information (INF) file is contained in the following folder on the bundled CD-ROM.
Windows 7 [64, 32bit], Vist a [64, 32bit], XP [64, 32bit],
Server 2003 [64, 32bit], 2000 \INF\Wdm\Aio
\INF\WDM\AIO
ADI12-16(PCI)
23
2. Setup
* The name of the board
you have just added is
displayed.
- ADI12-16(PCI)
You have now finished installing the hardware.
ADI12-16(PCI)
24
2. Setup
When Using API-AIO(98/PC)
(1) The “Found New Hardware Wizard” will b e sta rt e d .
Select “No, not this time” and then click the “Next” button.
(2) Select “Install from a list or specific location[Advanced]” and then click the “Next” button.
ADI12-16(PCI)
25
2. Setup
(3) Specify that folder on the CD-ROM which contains the se tup information (INF) file to register the
board.
* The name of the board
you have just added is
displayed.
- ADI12-16(PCI)
Source folder
The setup information (INF) file is contained in the following folder on the bundled CD-ROM.
Windows 7 [3 2bit] , Vista [32bit], XP [32bit],
Server 2003 [32bit], 2000 \INF\Win2000\Aio\PCI
Example of specifyin g the folder for use under Windows XP
\INF\Win2000\Aio\PCI
ADI12-16(PCI)
26
2. Setup
CAUTION
In Windows XP, the Hardware Wizard displays the following alert dialog box when you have
loca ted t h e IN F fil e . Thi s dial o g b o x app ears, only i ndica t ing that t h e rele vant drive r has no t
passed Windows Logo testing, and it can be ignored without developing any problem with the
operation of t he board.
In this case, click on the [Continue Anyway] button.
* The name of the board
you have just added is
displayed.
- ADI12-16(PCI)
You have now finished installing the hardware.
ADI12-16(PCI)
27
2. Setup
Step 4 Initializing the Software
The
driver library
initializati on of the
When Using API-AIO(WDM)
Setting the device na me
(1) Run Device Manager. From [My Computer] - [Control Panel], select [System] and then select the
[Devic e M anager] ta b .
(You can also open Device Manager by right clicking on My Computer and selecting Properties.)
requires the initial setting to recognize the execution environment. It is called the
driver library
.
* The name of the board
you have just added is
displayed.
- ADI12-16(PCI)
(2) The installed hardware appears under the CONTEC Devices node. Open the CONTEC Devices
node and select the device you want to setup (the device name should appear highlighted). Click
[Properties].
ADI12-16(PCI)
28
2. Setup
(3) The property page for the device opens.
Enter the device name in the common settings tab page and then click [OK].
The device name you set here is used later when programming.
* The name of the board
you have just added is
displayed.
- ADI12-16(PCI)
* The initial device name that appears is a default value. You can use this default name if you wish.
* Make sure tha t you do not use the same name for more than one device.
You hav e now fin i shed i nstal ling the initial setting of Software.
ADI12-16(PCI)
29
2. Setup
When Using API-AIO(98/PC)
Invoking API-TOOL Confi guration
(1) Open the Start Menu, then select “Programs” – “CONTEC AP I -PAC(W32)” – “API-TOOL
Updating the Set tings
(1) Select “Save setting to registry…” from the “File” menu.
You hav e now fin i shed i nstal ling the initial setting of Software.
ADI12-16(PCI)
30
2. Setup
Analog Ground
(CN1)20pin
CH0
(CN1)1pin
- Single-Ended Input
Board
Signal source
(e.g.Battery etc.)
(CN1)2pin
CH0-
Analog Ground
(CN1)20pin
CH0+
(CN1)1pin
- Differential Input
Board
Signal source
(e.g.Battery etc.)
CAUTION
Step 5 Checking Operations with the Diag nosis
Program
Use the diagnosis program to check t hat the board and driver software work normally, thereby you can
confirm that they have been set up correctly.
What is the Diagnosis P rog ram?
The diagnosis program diagnoses t he states of the board and driver software.
It can also be used as a simple checker when an external device is actually connected.
Using the “Diagnosis Report” feature reports the driver settings, the presence or absence of the board,
I/O status, and in t errupt status.
Check Method
To check analog input data, connect the signal.
The diagrams below show examples of using channel 0 on the ADI12-16(PCI). For details on the
connections, see C hapter 3 “External Connection”. Check the board with the factory defaults
untouched.
Wiring Diagram
<Analog input>
Figure 2.8. Wiring Diagram
- To check the analog input in differential input mode, set the jumpers to change the input mode setting
- Input data remains indeterminate when no input pin is connected. The input pin for the channel
ADI12-16(PCI)
in advance. For deta ils, see “Setting the Analog Input” in this chapter.
not connected to the signal source must be connected to the analog ground. For details, see
“Chapter 3 External Connection”.
31
2. Setup
Using the Diagnosi s Prog ram for Use of API-AIO(WDM)
Starting the Diagnosis Program
Click the [Diagnosis] button on the device property page to start the diagnosis program.
* The name of the board
you have just added is
displayed.
- ADI12-16(PCI)
Analog input
You can select the desired input channel, input mode and input range from the lists.
Input data is plotted on a graph.
ADI12-16(PCI)
32
2. Setup
Digit al input / output
The upper row of circular lamps indicates the di gital input states. Red indicates the bit is ON and
brown indicates OFF.
Clicking the lower row of switches turns the digital output bits ON or OFF.
ADI12-16(PCI)
33
2. Setup
* The name of the board
- ADI12-16(PCI)
* The contents of the
Diagnosis Report
(1) The diagnosis report saves detailed data, including the device settings and settings for each channel,
to a text file and displays the file for you to view.
Clicking [Diagnosis Report] prompts you to specify where to save the report text file.
you have just added is
displayed.
diagnosis report vary
with the boar d mounted.
(2) The diagnosis report contains the following data.
- Version of OS
- Device Information
- File Information
- Diagnosis results for each I/O channel
Execution time measurement
Clicking [Execution Time Measurement] runs the program to measure API function execution speed.
The operation of this program is explained in "API function Execution Speed Measurement Program" in
Chapter 5.
ADI12-16(PCI)
34
2. Setup
Using the Diagnosis Program for Use of API-AIO(98/PC)
Starting the Diagnosis Program
After selecting the board in [API-TOOL Configuration], run the diagnosis program. Follow the on-
screen instructions.
* The name of the board
you have just added is
displayed.
- ADI12-16(PCI)
Checking the Analog Input
ADI12-16(PCI)
35
2. Setup
Analog input
You ca n select the input channel and input range from the lists.
Input data is plotted on a graph.
Diagnosis Report
(1) Clicking on the [Report] button displays detailed data su ch as a board, channel settings and the
diagnosis results while saving them in text for mat.
The results are saved and displayed as a text file (AioRep. txt ) in the install folder
(CONTEC/CONTECW95).
The Diagnosis Program performs “board presence/absence check”, “interrupt test”, “driver file
test”, “board setting test”, and so on.
Click on [Report].
ADI12-16(PCI)
36
2. Setup
* The name of the board
(2) A diagnosis report is di splayed as shown below.
you have just added is
displayed.
ADI12-16(PCI)
37
2. Setup
Setup Troubleshooting
Symptoms and Actions
The board cannot be initialized. [Windows NT 4.0]
The driver may not yet be activated. When your PC is running under Windows NT 4.0, set the PnP OS
option in the BIOS Setup menu to “NO”.
For details on BIOS settings, refe r to the user’s guide f or you r PC.
The b oa rd ca n n ot input or outpu t data normal l y
- Run the Diagnosis Program to check whether the board has been registered correct ly and whether
any initialization error has occurred.
- Check the settings and connections of the board. Also check the input and output ranges. When
your board uses jumpers to set the input/output ranges, correct data ca nnot be obtained unless the
ranges have been adjusted. When no connection has been made, input data remains indeterminate.
The channel to be used must be wired. The channels not to be used must be connected to the
analog ground.
- If there is no appropriate signal source available at voltage input, either connect a cell or connect
the channel to the analog ground to check for 0V.
The board works with the Diagnosis Program but not with an application.
The Diagnosis Program is coded wi th API-TOOL functions. As long as the board operates with the
Diagnosis Program, it is to operate with other applications a s well. In su ch cases, review your program
while paying attention to the following points:
- Check the return values of functions.
- Check the Driver No. and Board No.
The OS won't normally get started or detect the board. [Windows 7, Vista, XP, Server 2003, 2000]
Turn off the power to your PC, then unplug the board. Restart the OS and delete the board set t i ngs of
API-TOOL Configuration. Turn off the PC again, plug the board, and restart the OS. Let the OS detect
the board and use API-TOOL Configuration to register board settings.
If your problem cannot be resolved
Refer to the troubleshooting section of API-AIO HELP. If there is no answer in it, please conta ct you r
retailer.
ADI12-16(PCI)
38
3. Externa l Connection
CN1
3
7
20
19
1
CN2
A8
B8
A1B1
- Connecto
r u
sed
A
37pi
n
D-
S
UB
connector[F(female)type]
DCLC-J37SAF-20L9 [mfd.by JAE]equivalent
- Applicable connector
17JE-23370-02(D8C) [mfd by DDK, M(male)type]
This chapter describes the interface connectors on the board and the external I/O circuits.
Check the information available here when connecting an external device.
Using the On-board Connectors
Connecting a Device to a Connector
To connect an external device to this board, plug the cable from the device into the interface connector
(CN1, CN2) shown below.
The board has two interface connectors: the analog I/O connector (CN1: 37-pin f e mal e D-SUB
connector) and the control signal connector (CN2: 16-pin p in-h eader) for d i g it al i nput/ ou tpu t a nd
cou nt er co ntrol.
Figure 3.1. Interface Connectors and Mating Connectors
ADI12-16(PCI)
39
3. Externa l Connection
Figure 3.2. Examples of Connecting Options
ADI12-16(PCI)
40
3. Externa l Connection
Analog Input15[-]
The numbers correspon d to channel n umbers
CN1
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
N
.C.
Analog
Grou
nd
Analo
g G
rou
nd
Anal
og
Gro
und
An
alog
Gr
oun
d
A
nal
og G
rou
nd
Ana
log
Gro
und
An
alo
g Gr
oun
d
Ana
log
Gro
und
An
alo
g G
roun
d
A
nal
og
Gro
und
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
]
Analog Input 5 [+]
Analog Input 4 [-]
Analog Input 4 [+]
Analog Input 3 [
-
]
Analog Input 3 [+]
Analog Input 2 [
-
]
Analog Input 2 [+]
Analog Input 1 [
-
]
Analog Input 1 [+]
Analog Input 0 [
-
]
Analog Input 0 [+]
CN1
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
N.C.
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
Analog Ground
N.C.
N.C.
N.C.
Analog Input 15
Analog Input 7
Analog Input 14
Analog Input 6
Analog Input 13
Analog Input 5
Analog Input 12
Analog Input 4
Analog Input 11
Analog Input 3
Analog Input 10
Analog Input 2
Analog Input 9
Analog Input 1
Analog Input 8
Analog Input 0
< Single-ended input >< Differential input >
Connector Pin Assignment
Pin Assignment of CN1
Analog In put0 t o Anal og Input15 Analog i nput signal at the time of Single-E nded In put.
The numbers correspon d to channel n umbers.
Analog Input0[+] t o
Analog Input15[+]
Analog Input0[-] t o
Analog input signal at the time of Diffe renti al Inp ut.
The numbers correspon d to channel n umbers.
Analog input signal at the time of Diffe renti al Inp ut.
Analog Gro und Common analog groun d for a nalog input signals.
N.C. No connection to this p in.
Figure 3.3. Pin Assignment of CN1
ADI12-16(PCI)
41
3. Externa l Connection
Digital Input0 to Digital Input2
Digital input signal.
External Start Trigger Input
External tri gger input signal for s tarting sa mpli ng.
External Stop Tri gger Input
External tri gger input signal for s top ping sampling.
input channel.
output cha nnel.
CN2
A8
A7
A6
A5
A4
A3
A2
A1
B8
B7
B6
B5
B4
B3
B2
B1
+Common In
Sampling Clock Output
External Stop Trigger Input
Digital Input 3 / INT Trigger
Digital Input 1
-Common Out
Digital Output 2
Digital Output 0
N. C.
+Common Out
External Sampling Clock Input
External Start Trigger Input
Digital Input 2
Digital Input 0
Digital Output 3
Digital Output 1
Pin Assignment of CN2
Digita l Inp ut3/I NT Trigger Digital input signal. Common for interrupt trigger in put signal.
Digital Output0 to Digital Out3 Digital output signal.
External Samplin g Clock In put External sampling clock input signal.
Sampling Clock Output Sampling cl ock output signal
+Comm on In Connect the plus side of external power supply. Common for each
+Comm on Out Connect the plus side of external power supply. Commo n for each
-Common O ut Connect the minus side of external power supply. Common for each
output cha nnel.
N.C. No connection to this p in.
Figure 3.4. Pin Assignment of CN2
ADI12-16(PCI)
42
3. Externa l Connection
Analog I
nput 0
to
15
An
alog Ground
BOARD
CN
1Cable
Sign
al S
ou
rce
Analog Ground
Shield cable
Analog Input 0 to 15
BOARD
CN1
Signal Source
C
AUTION
Analog Input Signal Connection
The procedur e f or connecting analog signals depends on whether the analog i nput signals are singleended or differential. The sections below describe how to connect the signals using flat cable and
shi elded ca b le.
Single-ended Input
The following figure shows an example of optional flat cable (PCA37P) connection.
Conn e c t s e pa r at e signa l and grou n d w i res f or eac h a nal og i n put channel on CN1.
The following example connects a signal source to the board using a shielded cable such as a coaxial
cable (PCC16PS) available as an option. Use shielded cable if the distance between the signal source
and board is l ong or if you want to provide better protection from noise. For each analog input channel
on CN1, connect the core wire to the signal line and connect the shielding to ground.
- If the signal source contains over 1MHz signals, the signal may effect the cross-talk noise between
channels.
- If the board and the si gnal source receive noise or the distance between the board and the signal
source is too long, data may not be input properly.
- An input analog signal shoul d not exceed the maximum input voltage (relate to the boar d analog
ground). If it exceeds the maximum voltage, the board may be damaged.
- Connect all the unused analog input channels to analog ground.
ADI12-16(PCI)
43
3. Externa l Connection
An
alo
g
In
p
ut
0[+]
t
o
7[
+]
A
n
alo
g
G
ro
u
n
d
B
O
AR
D
C
ab
le
S
igna
l S
ourc
e
Ana
l
og
I
np
ut
0[
-
]
to
7[
-]
CN1
An
al
og
In
pu
t
0[
+]
to
7[
+]
An
alo
g
Gr
ou
nd
BO
AR
D
Sig
nal
Sou
rce
An
a
lo
g I
np
ut
0
[-
]
to
7
[-]
CN1
Shiel
d cabl
e
C
AUTION
Differential Input
The following figure shows an example of optional flat cable (PCA37P) connection.
For ea c h analog i nput channel on CN1, connect the "+" input to the signal and connect the "-" input t o
the signal source ground. Also connect the analog ground on the board to the signal source ground.
The following example connects a signal source to the board using a shielded cable such as a twoconductor shielded cable (PCD8PS) available as an option. Use shielded cable if the distance between
the signal source and board is long or if you want to provide better protection from noise. For each
analog input channel on CN1, connect the "+" input to the signal and connect the "-" input to the signal
source ground. Also connect the a nalog ground on the board and the signal source ground to the
shielding.
- If the signal source contains over 1MHz signals, the signal may effect the cross-talk noise between
channels.
- When the analog ground is not connected, input data comes to be undetermined.
- If the board and the signal source receive noise or the distance between the board and the signal
source is too long, data may not be input properly.
- An input analog signal to both [+] and [-] input should not exceed the maximum input voltage
(relate to the board analog ground). If it exceeds the maximum voltage, the board may be
damaged.
- Connect all the unused analog [+] and [-] input channels to analog ground.
44
ADI12-16(PCI)
3. Externa l Connection
CAUTION
Current Input
The following figure shows an example of optional flat cable (PCA37P) connection.
For ea c h analog i nput channel on CN1, connect the "+" input to the signal and connect the "-" input t o
the signal source ground. Also connect the analog ground on the board to the signal source ground.
Figure 3.9. Current Input Connec t ion (F l at Cable)
The following example connects a signal sou rce t o th e boar d using a shiel d e d cable suc h as a tw o conductor shielded cable (PCD8PS) available as an option. Use shielded cable if the distance between
the signal source and board is long or if you want to provide better protection from noise. For each
analog input channel on CN1, connect the "+" input to the signal and connect the "-" input to the signal
source ground. Also connect the a nalog ground on the board and the signal source ground to the
shielding.
- If the signal source contains over 1MHz signals, the signal may effect the cross-talk noise between
channels.
- When the analog ground is not connected, input data comes to be undetermined.
- If the board and the si gnal source receive noise or the distance between the board and the signal
source is too long, data may not be input properly.
- Voltage of an input analog signal to both [+] and [-] input should not exceed the 1-5V ( relate to th e
boar d a nal o g grou n d). If it exceeds the maximum voltage, Even within the range scope, correct
data input may not be possible.
- An input analog signal to both [+] and [-] in put should not exceed the maximum input voltage
(relate to the board analog ground). If it exceeds the maximum voltage, the board may be
damaged.
- Connect all the unused analog [+] and [-] input channels to analog ground.
ADI12-16(PCI)
45
3. Externa l Connection
External deviceBoard
VCC
VCC
Opto-coupler
Input pin
+Common In
External power supply
12 - 24VDC
Switch
Input pin
Opto-coupler
Switch
5.1Ω
5.1Ω
3kΩ
3kΩ
Digital I/O signals and Control signals
Connection
The digital I/O signals and the control signals (external trigger input signal, sa mpling clock output
signal an d s o on)are interfaced through the connector CN2.
User can use an optional flat cable DT/E1 or DT-E3 (with bracket and a 15-pin D-SUB female
connector) to connect these signals to your external devices.
Connecting the input signal
To the digital input signal and control signal (External Start Trigger Input, External Stop Trigger Input,
External Sampling Clock Input) pins, connect current driven devices su ch as a switch and a transistor
output device. Input circuit is as follows. +Common In is common to individual input signals. An
external power supply is required to drive the input circuit. The power capacity required at this time is
about 8 mA per input channel at 24 VDC (or about 4 mA at 12 VDC).
Figure 3.11. Input Cir cuit
ADI12-16(PCI)
46
3. Externa l Connection
0
OFF
High
Inp
ut p
in
+Co
mmo
n I
n
Board
E
xt
e
rn
al
po
we
r
s
up
p
ly
12
-
24
V
DC
Re
mot
e d
evic
e
Com
mon
pl
us
Ope
n
c
ol
l
ec
to
r
o
u
tp
ut
Co
mmon
mi
nus
VCC
O
pt
o
-c
ou
p
le
r
3
k
Ω
5
.1
kΩ
3kΩ
5
.1kΩ
+
Com
mon
In
1
2 -
24V
DC
Contact p
oint
V
CC
Input pin
Boa
rd
Ext
ern
al
powe
r s
upply
O
pto
-co
uple
r
Figure 3.12. Example of connection of open collector output (current sink type)
Reference
For the operation timings for control signal input, see ”Timing of External Control Signals” in
Chapter 6 “Hardware”.
Figure 3.13. Example of connection to mechanical contact
In the above example, the input signal and data (internal logic) on the PC have the following
relationships.
Table 3.1 Relationshi ps between input signa l and data (internal logic) on the PC
Internal logic Contact poi nt Input pin voltage level
Reference
1 ON Low
For the operation timings for control signal input, see ”Timing of External Control Signals” in
Chapter 6 “Hardware”.
ADI12-16(PCI)
47
3. Externa l Connection
Internal logic
Output trangistor
Output si gnal
0
OFF
High 1 ON
Low
10kΩ
External circuit
+Common Out
Output pin
**
Board
External power supply
12 - 24VDC
VCC
Load
-Common Out
Load
Output pin
10kΩ
1kΩ
1kΩ
CAUTION
Connecting the output signal
To the digital output signal and control signa l (Sampling Clock Output) pins, connect a relay controller
or a current driven control devi ce such as a LED. Output circuit is as follows. +Common Out /
-Common Out is common to individual output s ignals. Output current rating is 100 mA (Max.) per
1 point and 2 A per 1 common.
The output transistor is not associated with a surge voltage protection circuit. When the output signal
is used to drive the inductive load to a relay or lamp, apply surge protection to the load side.
Figure 3.14. Output Cir cui t
Table 3.2 Internal logic and output signal
For using the sampling clock output signal, set the sampling clock to at least 4 milliseco nds , or
normal output may not be obtained.
ADI12-16(PCI)
48
3. Externa l Connection
1k
Ω
10kΩ
-Common Out
+Common
Ou
t
Remote device
Inp
ut
Common plus
External power supp
ly
12 - 24VDC
VCC
Output pin
Board
1kΩ
10kΩ
12V - 24VDC
+5V
TTL
level input
Grou
nd
V
CC
-C
ommo
n O
ut
+C
omm
on
Out
Remote
devi
ce
External power supply
Output pin
Board
Figure 3.15. Example connection to current sink input
Figure 3.16. Example of connection to TTL level input (with pull-up resistor)
ADI12-16(PCI)
49
3. Externa l Connection
+Common Out
-Common Out
+Common Out
-Common Out
+Common Out
-Common Out
+Common Out
-Common Out
- Examples of use of relay coil
Relay coil
External power voltage < Zener diode voltage
Zener diode
Registor
Surge current
prevention registor
Output pin
Diode
- Examples of use of lump
Output pin
Output pin
Relay coil
Output pin
CAUTION
Surge Voltage Coun t ermeasures
When connecting a load that generates surge voltages and inrush currents, such as an induction load
(relay coil) or an incandescent light bulb, to the digital out put, appropriate protection must be provided
in order to prevent damage to the output stage or a malfunction due to noise. The rapid shutoff of a
coil, such as a relay, generates a sudden high-voltage pulse. If this voltage exceeds the voltage
tolerance level of the output transistor, it can cause the transistor to gradually deteriorate, or even
completely damage the transistor. Therefore, when driving an induction load, such as a relay coil, you
should always connect a surge-absorbing device. The following illustrates a su rge voltage
cou nt ermeasure tha t can be em ploy e d:
Figure 3.17. Surge Voltage Countermeasure
In order for a protection circuit to operate effectively, it must be connected within 50cm of a load
and a contact point.
ADI12-16(PCI)
50
4. Functions
Status
Sa
mpling
Repeat
Data
acquisition
Status
Memory
Simultaneo
us Sampl
ing Contr
ol
Channel Expansion
5.Exten
ded function
4.Reset
3.Mo
nit
oring t
he Stat
u
s and
Acq
uiring
Data
2.S
tarting/Stop
ping Oper
ation
1.Sett
in
g t
he
Conv
ersion
C
ond
it
itio
ns
Resolu
tion
Input
Mode
C
hanne
l
Ra
nge
Memory
Rep
eat
Clo
ck
S
ta
rt
Con
di
tion
Stop
Condition
Dela
y
Event
Sta
rt
Stop
4. Functions
This chapter describes the different functions that can be implemented using the hardware and driver
together. Unless sta ted otherwise, the driver is assumed to be API-AIO(WDM).
Analog Input Function
The b oa rd co n v erts analog si gnals to digi t a l data ac co rdin g to th e r e s o luti on and stor e s i t i n m e m ory.
You can set a variety of conditions for analog input, including the input channe l, sampling period, and
sampling start/stop conditions.
Analog input processes are classified as follows:
ADI12-16(PCI)
51
4. Functions
1. Setting the Convers ion Condi tions
First, set the conditions for executing analog input.
Resolution
“Resolution” signifies the number of bits used by an analog input device to represent analog signals.
The higher the resolution, the more finely the voltage range is segmented, allowing the device to convert
anal o g valu e s to digi t a l equival e nts more precisely.
A device with a resolution of 12-bit divides the range width into 4096 segmen ts.
When the device covers the range of 0 - 10V, the minimum unit of converted voltages is
10÷4096≠2.44mV.
If the device has a resolution of 16-bit, it is 10÷65536≠0.153mV instead.
ADI12-16(PCI) : The resolution is 12-bit.
Input Mode
“Input Mode” indicates the method of connect ing analog input signals.
The input modes available are single-ended input and differential input.
The single-ended input mode is sui table for the environment in which the potential difference between
the signal source and ground and noise components can be ignored. For the environment in which they
cannot be ignored, the differential input mode is suitable.
The number of channels available in differential input mode is half that in single-ended input mode.
This device u ses jumpers to set the input mode.
Please refer to the “Chapter2 Setup - Setting the Hardware - Setting the Analog Input”.
Channel
“Channel” represents each point of analog input.
For indivi dual channel nu mb ers, see “Using the On-board Connectors” to “Connector Pin Assignment” in
Chapter 3 "External Connection".
You can specify an arbitrary number of points of analog input by setting the channels by means of
software.
ADI12-16(PCI)
52
4. Functions
Range
“Range” means the range of voltages at whi ch analog input can be per formed.
The input range can be selected by setting the upper and lower input signals.
ADI12-16(PCI) : The range is specified by setting both the jumpers and software.
Please refer to the “Chapter2 Setup - Setting the Hardware - Setting the Analog Input”.
Memory
Device’s or driver’s input data storage memory is used to enable advanced analog input processing at
high speed. For the memory, the FIFO or ring format can be selected by means of software.
- FI FO for mat
In the FIFO (First In First Out) format, inpu t data items are rea d from memory in the same order in
which they were written to the memory. Input data items are fed out of the memory sequentially,
where the oldest one is always read from the memory. The status monitor and application
notification functions are provided, which check and report the state in which the memory has
stor ed a fix e d amount of data or in w hi ch th e m e m ory ha s b e c ome fu ll.
The FIFO m e m ory is u s ed to obtain all input da ta f rom analo g i n put i n a s hort or inf init e peri od of
time.
- Ring format
In the ring format, the memory contains storage areas arranged in a ring. Input data items are
written to the memory sequentially. When it stores data exceeding the limit, it overwrites the area
storing the previous item of input data. The status monitor and application notification functions
are provided, which check and report the state in which data has been written to certain areas of
memory.
The ring memory is used to obtain data where conversion ha s stopped due to some event , usually
without obtaining data in the nor mal state.
ADI12-16(PCI)
53
4. Functions
Repeat
“Repeat” indicates the number of repetitions of sa mpling to be executed, from when the sampling start
condition is satisfied u ntil the end of sampling, including delayed sampling.
The number of repetitions is set by means of software, for which conversion is repeated. You can set
an infinite number of repetitions, in which case the conversion is terminated by the software abort
command.
Input data items are stored to the memory sequentially. The repetition state can be subject to status
monitoring and applica tion notification.
This device does not support the Repeat feature when the sampling start condition is "software".
Clock
The sampling clock controls the sampling frequency. You can select both the internal sampling clock and
the external sampling clock. The sampling clock is selected by means of software.
- Internal sampling clock
The clock si gna l f rom the devi ce cl ock generator is used.
- External sampling clock
The edge of t he digital signal input from an external device is used for the sampling clock.
ADI12-16(PCI)
54
4. Functions
Start Condition
The condition for controlling the start of sampling can be select ed from among software, input data
comparison and an external trigger. The conditions for controlling the start and stop of sampling are
completely independent of each other; they can be set separately.
- Software
The b oa rd sta rts sampl ing and st oring input da ta to m e m ory im m edia t ely a ft e r the operation start
command is issued.
- Input data comparison
When the operation start command is issued, the board compares the analog signal input through a
specified channel to the value of the preset comparison level. I f the analog signal satisfies the
con di t i on, th e board sta rts stori n g inpu t data.
Level comparison conditions a re set as two conditions: level and direction.
The above sketch shows that the level comparison condition is satisfied in the rising direction.
The start condition is satisfied when the analog signal at the specified channel passes the
comparison level in the rising direction. Input data items are stored to memory, starting with those
at solid dots.
The above sketch shows that the level comparison condition is satisfied in the falling direction.
The s tart condition is satisfied when the analog signal at the specified channel passes the
comparison level in the falling direct ion. Input data i t e ms are st or ed to m e m ory, sta rting wi th
those at solid dots.
If you set the level comparison directions to both directions, the start condition is satisfied when the
analog signal passes the level both in the rising and falling directions.
- Externa l tri g g er
The board star ts wai ti n g for an external control signal as soon as the operation start command is
output.
Sampling and data transfer to memory start when the specified edge (rising edge or falling edge) is
input from the external control signal.
ADI12-16(PCI)
55
4. Functions
Stop Condition
The condition for controlling the stop of sampling can be selected from among the last sam pling count,
inpu t da ta co m parison, an external trigg e r , and software abort.
The board stops sa mpling whenever an error occurs irrespective of the stop condition setting.
- Last sampl ing c ount
The b oa rd stops sampling after storing input data to memory for the specified number of times of
sampling.
- Input data comparison
Once the board has started sampling, it compares the analog signal input through a specified
channel to the value of the preset comparison level. If the analog signal satisfies the condition, the
boar d s tops sampling.
Level comparison conditions a re set as two conditions: level and direction.
The above sketch shows that the level comparison condition is satisfied in the rising direction.
The stop condition is satisfied when the analog signal at the specified channel passes the
comparison level in the rising direction. Input data items are stored to memory, ending until those
at solid dots.
The above sketch shows that the level comparison condition is satisfied in the falling direction.
The stop condition is satisfied when the analog signal at the specified channel passes the
comparison level in the falling direct ion. Input data i t e ms are st or ed to m e m ory, ending until
those at solid dots
If you set the level comparison directions to both directions, the start condition is satisfied when the
analog signal passes the level both in the rising and falling directions.
- Externa l tri g g er
The board star ts wai ti n g for an external cont r ol signal after the specified number of samples have been
performed. Sampling stops when the specified edge (rising edge or falling edge) is input from the
external control signa l.
- Software
Sam pl ing c o ntinu e s indefinitely in this mode. Sampling only stops in response to a software
command or an error.
ADI12-16(PCI)
56
4. Functions
Delay
Delayed sampling is performed after the sampling st op condition is satisfied.
When a sampling stop condition ot her than the software abort command is satisfied, the board performs
sampling for the specified number of times of dela yed sampling to store input data to memory.
If you set the number of times of delayed sampling to 0, the board stops sa mpling the moment the
sampling stop condition is satisfied.
Event
“Event” works as a function for reporting the occurrence of a certain board state to the application.
The following events can be used in combination depending on the specifications a nd purpose of the
application.
- “AD conversion start condition satisfied” event
This event occur s when the AD conversion start condition is sat isfied. The event is nullified when
the conversion start condition i s “software”.
- “Repeat end” event
This even occurs whenever a repetition is completed.
- “End of device operation” event
This event occurs when the entire operation including repetitions is completed.
- “Stored specified sampling times” event
This event occur s when sampling has been per formed for the number of times set by software.
- Overflow event
This event occurs at an attempt to store input data with the memory full.
- Sampl ing cl ock er ror e v ent
This event occur s when conversion stops as an error occurs due to a sampling clock period that is
too short.
- AD conversion error event
This event occur s when conversion stops due to an AD conversion error.
2. Starting/Stoppin g Operation
Sampling is started by the software command.
Once started, sampling can be stopped by the software command at any timing.
ADI12-16(PCI)
57
4. Functions
3. Monitoring the Status and Acquiring Data
Software commands are used to monitor the operation status of the device and to acquire input data
from memory. Status monitoring and data acquisition can be performed even during sampling.
Status
The current state of the device can be checked by obtaining the device st a t us.
The following types of device status are available:
- Device operating
The “device operating” status remains O N, after the execution of t he sampling start command until
the board complet es conversion, aborts opera tion due to an error, or stops sampling in response to
the command.
- Waiting fo r sta rt trigg e r
This status rema in s ON, after the board starts sampling until the start trigger is input, if th e
conversion start condition is an external trigger or level comparison. The status is set to OFF
when the input trigger is input to start conver sion.
The status is set to ON whenever the board enters the conversion start wait status even when
repeated operation has been set.
- Specified sampling data stored
This status is se t to ON whe n i n put data stored in m e m o r y has reach e d the a m ount corr e s p o n ding t o
the preset number of times of sampling.
If the memory format is FIFO, the statu s is set to OFF when the am ount o f in put da ta in th e memory
falls below the value corresponding to the preset nu m b e r of times of sampling as data is acquired.
Once the status is set to ON when the memory format is ring, it remains ON until it is reset.
- Overflow
An overflow er r or occurs when an attempt is made to st ore input data to memory while it has been
ful l o f in put data .
When the memory format is FIFO, the board stops conversion.
When the memory format is ring, the board continues conversion while overwriting existing data
with new one.
- Sampli ng clock error
This error occur s when the sampling clock period is too short.
- AD conversion error
If t he “device operating” status remains ON (without terminating conversi on) for an extended
period of time, the driver regards th at state as an operation error and sets this status to ON. This
error stops sampling.
Sampling
The number of sa mpled items of input data stored in memory can be obtained by the software
command.
Repeat
The current repeat count can be obtained by the software command.
ADI12-16(PCI)
58
4. Functions
Data acquisition
The conversion data stored in memory can be retrieved using a software command.
The figure below shows the correspondence between the sampling count and the conversion channel for
the conversion data stored in memory.
Input data is acquired differently depending on the memory format used.
- Data acquisition in FIFO format
When FIFO memory is used, the oldest data is always read first.
The following sk etch shows an image of data acquisition in FIFO format.
When data is acquired from the memory, the free memory space increases by that data size. When
data is acquired next, the oldest one of the existing data items is taken from the memor y in the same
way.
The FIFO memory deletes data once that data is acquired.
ADI12-16(PCI)
59
4. Functions
0V
2048
0V
32768
-0.005V
2047
-0.00030V
32767
- Data acquis ition in ring format
When ring memory is used, data is read always with respect to the current input data write posi tion .
The following sk etch shows an image of data acquisition in ring format.
The sampling count obtained is always the number of times of sa mpling for up to the latest data
(shaded portion below).
The larger the number of samples taken, the older the data item acquired first.
As the ring memory retains data even after that data is acquired, you can fetch the same data any
number of times.
Conversion data
The following equation represents the relationship between input data and voltage.
Voltage = Input data x (Max. range value – Min. range value) ÷ Resolution + Min. range value
The value of resolution for the 12-bit device is 4096; that for the 16-bit device is 65536.
The table below shows the relationship between input data and voltage in the ±10-V range.
Volta ge Conve rsi on data (12-bit) Voltage Conversion data (16-bit)
+9.995V 4095 +9.99970V 65535
: : : :
0.005V 2049 0.00030V 32769
: : : :
-10.000V 0 -10.000V 0
Ex.: When input data 3072 is input at a resolution of 12-bit in the ± 10-V range
Voltage = 3072 x (10 - (-10)) ÷ 4096 + (-10)
= 5.0
ADI12-16(PCI)
60
4. Functions
4. Re set
Various states can be reset by executing the following reset commands:
All reset
This command resets the entire device, thereby initializing the device .
Status
This command resets the sampling clock error status and AD conversion error status.
Memory
This command resets the following memory related states.
- Resets the sampling count to 0.
- Resets the status for the specified sampling co unt to OFF.
- Resets the buffer overflow status to OFF.
- Resets the repeat count to 0.
ADI12-16(PCI)
61
4. Functions
B
it
0
Bit 3
Bit 2 Bit 1
1(ON)
1(O
N) 0
(OF
F)0(OFF)
Bit 0
Bit 3
Bit 2 Bit 1
Digital Input Functio n
Input bit
Individual digital input points are called inpu t bits.
When the number of input points of a device is 4, the bits are deter mined as bit 0 to bit 3.
Input in Bits
The state 1 ( ON) or 0 (OFF) of each input bit can be obtained by specifying the bit.
Input in Bytes
Individual input bits can be input in byte units.
When the number of input points of the device i s 4, the individual input bits are ar ranged as shown
below and the byte data to be input is a value between 0 and 15 depending on the states of the bits.
Ex. Input of bit 3 (OFF), bit 2 (ON), bit 1 (OFF) and bit 0 (ON)
Byt e data = 5(5H)
ADI12-16(PCI)
62
4. Functions
B
it
0
Bit 3
Bit 2 Bit 1
0(O
FF)
0(OFF) 1(ON)1(ON)
Bit 0
Bit 3 Bit 2 Bit 1
Digital Output Function
Output bit
Individual digita l output points are called output bits.
When the number of output points of a device is 4, the bits are deter mined as bit 0 to bit 3.
Output in Bits
The state of each output bit can be changed to ON or OFF by specifying the bit and setting it to 1 or 0.
Output i n Byte s
Individual output bits can be output in byte units. When the number of output points of the device is 4,
the individual output bits are arranged as shown below and byte data to be output is a value between 0
and 15.
Ex. Output of bit 3 (ON), bit 2 (OFF), bit 1 (ON) and bit 0 (OFF)
Byt e data = 10(AH)
ADI12-16(PCI)
63
4. Functions
ADI12-16(PCI)
64
5. About Software
5. About Software
CD-ROM Directory Structure
\
|– Autorun.exe Installer Main Window
| Readmej.html Version information on each driver (Japanese)
| Readmeu.html Version information on each driver (English)
.
| ––Release Driver file on each API-TOOL
| |––API_NT (For creation of a user-specific install program)
| |––API_W95
.
.
| ––UsersGuide Ha rdwar e User's Gu i de(PD F fil es)
ADI12-16(PCI)
65
5. About Software
About Software fo r Windows
The bundled CD-ROM “Drive r li bra ry API-PAC(W32)” contains the functions that provide the
following features:
- Analog input or output through arbitrary channels
- Analog input at arbitrary intervals using the internal or extern al sampling clock
- Simultaneous monitoring of the termination of analog input samplin g, buffer memory usage, and
interrupt events such as occurrences of errors
- Driver option check using a demo driver even without the boar d installed
For details, refer to the help file. The help file provides various items of informa tion such as “Function
Reference”, “Sample Programs” and “Q&A”. Use them for program development and
troubleshooting.
ADI12-16(PCI)
66
5. About Software
When using the API-AIO(WDM)
Accessing the Help File
(1) Click on the [Start] button on the Windows taskbar.
(2) From the Start Menu, select “Programs” – “CONT EC API-PAC(W32)” – “AIOWDM” –
“API-AIO(WD M) HELP” to display help information.
ADI12-16(PCI)
67
5. About Software
Using Sample Programs
Sample programs are provided for each of the ba sic operations. You can use these to check the
operation of t he board and as a reference when writing your own programs.
To u s e the sa m ple pr ogra m s , s p e cify the d e vice name i n t he pro p e r ty pa g e f or the program.
The sample progra m s a r e s t ored in \Program Files\CONTEC\API-PAC(W32)\AIOWDM\Samples.
Running a Sample Program
(1) Click on the [Start] button on the Windows taskbar.
(2) From the Start Menu, select “Programs” – “CONTEC API -PAC(W32)” – “AIOWDM” –
“SAMPLE…”.
(3) A sampl e program i s in vok e d.
ADI12-16(PCI)
68
5. About Software
Sample Programs - Examples
Analog input
- SingleAi Perform single analo g inpu t f rom specifi e d channel
- MultiAi Perform single analog input from mu ltiple channels
- Ai Perform standard analog input using a FIFO buffer
- AiPoll Perform standard analog input by polling
- AiEx Perform a nalog input for multiple cha nnels using a FIFO buffer
- AiLong Perform l ong-duration analog input using a FIFO buffer
- AiExt Perform analog input using an external clock
- AiTrg Perform analog input using an external trigger to start and stop opera tion
- AiLevel1 Use a level trigger to start analog input
- AiLevel2 Use a level trigger to stop analog input
- Ai2 Perform standard analog input using more than one board
Analog output
- SingleAo Perform single analog output from specified channel
- MultiAo Perform single analog outpu t from multiple channels
- Ao Perf orm stan dard analog output using a FIFO buffer
- AoPoll Perform standard analog output by polling
- AoEx Perform analog output for multiple cha nnels using a FIFO buffer
- AoLong Perfo rm l on g-duration analog output using a FIFO buffer
- AoExt Perform analog output using an external clock
- AoRing Perform continuous analog output using a ring buffer
- AoTrg Perform analog output using an external trigger to start and stop operation
- Ao2 Perform standard analog output using mor e than one board
Digit al input/output
- DioBit Perform dig ital I/O u sin g bit values
- DioByte P er fo r m d ig ital I/O u sin g por t values
* Sample programs executable vary with the functions of boards in use.
ADI12-16(PCI)
69
5. About Software
When using the API-AIO(98/PC)
Accessing the Help File
(1) Cli ck o n the [Start] bu t t on on the Windows taskbar.
(2) From the Start Menu, select “Programs” – “CONT EC API-PAC(W32)” – “Aio” –
“API-AIO HELP ” to displ ay help information.
ADI12-16(PCI)
70
5. About Software
Using Sample Programs
Sam pl e progr ams have been p repa red fo r s p e c ific basic a p plica tion s .
To u s e each sample program, enter its device name set by API-TOOL Configuration.
Use these sample programs as references for program development and operation check.
The sample progra m s a r e s t ored in \Program Files\CONTEC\API-PAC(W32)\Aio\Samples.
Running a Sample Program
(1) Click on the [Start] button on the Windows taskbar.
(2) From the Start Menu, select “Programs” – “CONT EC API-PAC(W32)” – “Aio” – “SAMPLE…”.
(3) A sampl e program is i n v oked.
ADI12-16(PCI)
71
5. About Software
Sample Programs - Examples
Analog input
- AI : Use s Ai oInp to convert an analog signal only once and display the data.
- AIBack : Uses AioInpBack to perform memory-less board analog input.
- AIMemory : Uses AioInpBdMem to perform continuous conversion and AioReadBuf to
acquire da t a fro m boar d m e m ory (an exampl e o f using an external clock).
- AIInt : Infinite sampling example that uses AioInpBdMem for half/full interrupts and
AioReadBuf to acquire data at interrupt events.
- AITimer : Infinite sampling example that uses AioInpBdMem to per form continuous
conversion and AioReadBuf to acquire data at system timer events.
- AISync : Sample that uses AioInpBdMem and AioDO to perform simultaneous sampling of
two memory-mounted boards.
- AioInp : Sample console application that uses AioOpenEx and AioInp.
Analog output
- AO : Uses AioOut to perform analog output once.
- AOBack : Uses AioOutBack to perform analog output at fixed intervals.
- AioOut : Sample console ap p lica tion t ha t uses AioOpe n Ex an d A i oO ut.
Digital input and output
- DIO : Uses AioDO an d AioDI to perform di gita l i nput/ output.
Counter
- Timer : Sample program using a timer. It uses the counter function to measure the lapse
of time.
- Counter : S ampl e program usin g a c ounter. It use s t h e counter fu n c tion t o count e xternal
pulses.
The following sa mple program in Vis u al Basic is available.
- ANALOG : Versatile sample program using AioInp, AioInpBack, AioInpBdMem, AioOut,
AioOutBack, AioDO, a nd AioDI
* Sample programs executable vary with the functions of boards in use.
ADI12-16(PCI)
72
5. About Software
AioInp : Simple analog input
AioInpBack
AioInpBdMem
AioOut
AioOutBack
AioDi/AioDo
Using the Utility Progra m
Operation Check Tool
This program is a comprehensive operation check tool that can use all the features of the AioOpen,
AioClose, AioSetRangeAioInp, AioInpBack, AioInpBdMem, AioOut, AioOutBack, AioDo, and AioDi
functions.
Invoke the tool by selecting the Start Menu – “CONT EC API -PAC(W32)” – “AIO” –
“SAMPLE Analog”.
[Main screen]
: Analog input for non Memory-
Board
: A nalog i n put for Me m ory-Board
: Simple analog output
: Analog output in background
: Digital input and output
[Analog input]
ADI12-16(PCI)
73
5. About Software
[Analog output]
[Digital input and output]
ADI12-16(PCI)
74
5. About Software
* The name of the board
- ADI12-16(PCI)
* The name of the board
Uninstalling the Driver Libraries
To uninstall API-PAC(W32), follow the procedur e below.
The method used to uninstall API-PAC(W32) differs depending on which OS you are using.
Follow the procedure given below.
Uninstall procedure for Windows 7 and Windows Vista
< Uninstalling the device driver >
1. Run Device Manager. From [My Computer] - [Control Panel], select [System] and then select the
[Devic e M anager] ta b .
(You can also open D e vice Ma nager by right clicking on My Computer and selecting Properties.)
2. All o f the hardwar e that uses the API -TOOL(WDM ) driver is registered under the CONTEC
Devices tree.
Open the device tree, select the hardware to uninstall, and then right-clic k the hardware.
From the popup menu, select [Uninstall].
you have just added is
displayed.
3. A dialog box opens asking you to confirm whether to uninstall. Select the [Delete the driver
software for this device] check box, and then click [OK].
ADI12-16(PCI)
you have just added is
displayed.
- ADI12-16(PCI)
75
5. About Software
* The name of the driver
* The name of the driver
< Uninstall the development environment >
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall the development
environment.
Select [CONTEC API-***(WDM) VerX.XX (development environment)] and then click [Uninstall].
* "* **" contains the driver category name (AIO, CNT, DIO, SMC, etc.).
you have just added is
displayed.
Uninstall procedure for Windows XP and Windows 2003 Server
< Uninstal l th e device driver >
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall the device driver.
Select [Windows driver package - CONTEC (****)] and then click [Change/Remove].
* "***" contains the driver category name (caio, ccnt, cdio, csmc, etc. ) .
< Uninstall the development environment >
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall the development
environment.
Select [CONTEC API-***(WDM) VerX.XX (development environment)] and then click
[Change/Remove].
* "* **" contains the driver category name (AIO, CNT, DIO, SMC, etc.).
you have just added is
displayed.
ADI12-16(PCI)
76
5. About Software
Uninstall procedure for Windows Me
< Uninstal l th e device driver >
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall the device driver.
Select [CONTEC API-***(WDM) driver] and then click [Add and Remove Applications].
* "***" contains the driver category name (AIO, CNT, DIO, SMC, etc.).
< Uninstall the development environment >
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall the development
environment.
Select [CONTEC API-* **(WD M) VerX.XX (d evelopment environment)] and then click [Add and
Remove Applications].
* "* **" contains the driver category name (AIO, CNT, DIO, SMC, etc.).
Uninstall procedure for Windows 98, 98SecondEdition
< Uninstal l th e device driver >
Use [My Computer] - [Contr o l Pa nel] - [Add and Remove Applications] to uninstall the device driver.
Select [CONTEC API-***(WDM) driver] and then click [Add and Remove Applications].
* "* **" contains the driver category name (AIO, CNT, DIO, SMC, etc.).
< Uninstall the development environment >
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall the development
environment.
Select [CONTEC API-***(WDM) VerX.XX (development environment)] and then click [Add and
Remove Applications].
* "***" contains the driver category name (AIO, CNT , DIO, SMC, et c.).
ADI12-16(PCI)
77
5. About Software
About Software fo r Linux
The Linux version of analog I/O function driver, API-AIO(LNX), provides functions that execute the
following features:
- The analog input/output of a specified channel can be done.
- It is possible to operate as a set parameter to the analog input/output board is preserved by the
default value, and the setting of the parameter doesn't exist.
For details, refer to the help file. The help file provides various items of informa tion such as “Function
Reference”, “Sample Programs”, and “FAQs”. Use them for program development and
troubleshooting.
Driver Softw a re Install Proced u re
The Linu x v er sion for dig ital I/O dr iv er , API-AIO(LNX), is supplied as a compressed file
/linux/aio/caioXXX.tgz on t h e bundled A P I-PAC(W32)CD-ROM. (Note: XXX represents the driver
version.)
Mount the CD-ROM as shown below, copy t he file to an arbitrary directory, and decompress the file to
install the driver.
For details on using the driver, refer to readme.txt and the help file in HTML format extra cted by
installation.
To install the driver, log in as a superuser.
Decompression and setup procedure
# cd
# mount /dev/cdrom /mnt/cdrom Mount the CD-ROM.
# cp /mnt/cdrom/linux/aio/caioXXX.tgz ./ Copy the compressed file.
# tar xvfz caioXXX.tgz Decompress the compressed file.
................
# cd contec/caio
# make Compile the file.
................
# make install Install.
................
# cd config
# ./config Set up the board to be used.
..... Set as follows.........
# ./contec_aio_start.sh Start the driver.
# cd
ADI12-16(PCI)
78
5. About Software
Accessing the Help File
(1) Invoke a web browser in your X-Window environment.
(2) In the browser, open diohelp.htm in the contec/caio/help directory.
Using Sample Programs
Sample programs have been prepared for specific basic applications.
Sam pl e progr ams f or ea c h language are co n ta ine d in th e c o ntec/cai o /sa m pl e s di rectory. For com p i l ing
them, refer to the manual for the desired language.
Uninstalling the driver
To uninstall the driver, use the uninstall shell script contained in the contec/caio directory. For details,
check the contents of the scr ipt.
ADI12-16(PCI)
79
5. About Software
ADI12-16(PCI)
80
6. About Hardw a re
6. About Hardware
This chapter provides hardware specifications and hardware-related su p plem e ntar y informat ion.
For detailed technical information
For further detailed technical information (“Technical Reference” including the infor mation such as an
I/O map, configuration register, etc.), visit the Contec's web site (http://www.contec.com/support/) to
call for it .
ADI12-16(PCI)
81
6. About Hardw a re
Item
Specification
Analog Input
Isolated specificati on
Bus-isolated
Input Type
Single-Ended Input or Di fferential Input (Jumper set up)
8 channels (Diffe rential Input)
Bipolar ±10V, ±5, ±2.5V, ±1.25V
4 - 20mA (Set the input r ange us ing both jum pers and software setting.)
Absolute max. input voltage
±20V (Voltage input)
Absolute max. input current
25mA (Current i nput)
Input impedance
1MΩ or more (Volt age i nput)
Resolution
12bit
±2LSB(±10V, ±5V, 0 - +10V, 0 - +5V)
±3LSB(4 - 20mA)
Conversion start trig ger
Specified sampling data stored/in put data comparis on/isolated external
input digital /software
Optocoupler is olated open collector output (sink type) 4 channels
Response time : within 1msec
Response time : within 1msec
Interface c onnector
CN1
37pin D-SUB female thumb screw #4-40UNC
CN2
16pin Pin-header
I/O address
16 port s bounda ry
Interrupt level
1 level use (Interrupts can be enabled or disabled.)
Operati ng conditio n
0 - 50°C, 10 - 90%RH (No condensation)
Hardware specification
Table 6.1. Common specification
Number of input channels
Input range
Non-Line arity error *1*2
Conversion speed
Buffer me mory 256K Word FIFO or 256K W ord R ING (Software setup)
Conversion stop t rigger
Digital I/O
Number of output channels
Number of input channels
Current consumption +5V 1200mA (Max.)
PCI bus specification 32bit, 33MHz, 5V
Dimension (mm) 176.41(L ) x 106.68(H)
Weight 160g
*1: When the environment temperature is near 0ºC or 50ºC, the non-linearity error may become larger.
The error can be reduced by calibrating under the actua l temperat ure conditions.
*2: At the t ime of t he sou rce use of a signal which b uilt in the hi gh-speed operational amplifier.
16 channels (Sin gle-E nded Input)
Unipolar 0 - +10V, 0 - +5V, 0 - +2.5V, 0 - +1.25V
±4LSB(±2.5V, ±1.25V, 0 - +2.5V, 0 - +1.25V)
20µsec/ch (Ma x.)
Softwa re/i nput data com paris on/isolated external input digital signal
Optocouple r isolated open collector input (corre sponding to sink out put ) 4 channe ls
ADI12-16(PCI)
82
6. About Hardw a re
[
mm]
176.41(L
)
106.68(H)
The
st
and
ard outside dimension (L) is
t
he d
ist
anc
e from the end of the board
to
the
out
er surface of the slot cover.
PCI Bus
PCI Bus interface
On board
memory
DC/DC
converter
ASIC
A/D
converter
Sample & Hold
amplifier
Instrument
amplifier
8 / 16 channel
multiplexer
with over voltage
protection
CN1CN2
16 single-ended /
8 differential
Analog Inputs
4 Digital Input /
4 Digital Output /
control signals
Isolated
by
photo
couplers
Isolated
by
photocouplers
Board dimension
Block Diagram
Figure 6.1 is a circuit block diagram of this board.
Figure 6.1. Block Diagram
ADI12-16(PCI)
83
6. About Hardw a re
Delay time from external sampling clock to first hold action
Delay time from external sampling clock to first A/D start pulse
t
2 msec
t
2 msec
t
2 msec
t
2 msec
t
2 msec
Set up time of sampling stop (Rising edge)
Hold time of sampling st op (Rising e dge)
t
DEC
Ext
ern
al Sma
pli
ng C
loc
k Input
t
DEH
Co
n
ver
si
on
st
ar
t
Sa
m
p
l
e
/
H
o
l
d
Ex
ter
nal Smapling Star
t T
rig
ger
Inp
ut
t
HRS
t
S
RS
t
H
FS
t
S
FS
Externa
l Sma
pling
Stop T
rigger
Input
t
HR
P
t
SRP
t
HFP
t
SFP
CA
UTION
Timing of Sampling Co ntrol Signals
There are timing chart diagrams and a table about sampling control signals as shown Fig.6.2, 6.3, 6.4
and Table 6.5.
These timing values include a delay for the di gital filter described below.
Figure 6.2. Timing Chart of External Sampling Clock
Figure 6.3. Timing Chart of External Sampling Start Contr ol Sign al
Figure 6.4. Timing Chart of Exter na l Sampling Stop Control Sig na l
Table 6.5. Timing Table of Operation Control Signals
Parameter Symbol Time Unit
Set up time of sampling start (Rising edge)
Hold time of sampling start (Rising edge)
Set up time of sampling start (Rising edge)
Hold time of sampling start (Rising edge)
Set up time of sampling stop (Rising edge)
Hold time of sampling stop (Rising edge)
All of the times in Table 6.2 are typical values.
ADI12-16(PCI)
84
tDEH2 msec
tDEC2 msec
SRS
HRS
SFS
HFS
SRP
tHRP2 msec
tSFP2 msec
tHFP2 msec
6. About Hardw a re
Parameter
Symbol
Time
Optocoupler response time delay
t1
1msec
Waiting digital filter time
t2
1msec
Control Signal Delay
t1 + t2
2msec
Waiting filter time
Input signa
l
Input signal
PC input
Valid
Digital
Fil
ter
In
vali
d
P
C i
npu
t
In
put
sig
nal
Digital filter inp
ut
Dig
ital filter output
Digi t a l Filt e r
Control signals are filter ed with the digita l filter at the input pin. The digital filter prevents input
signal noise and chattering.
The digital filter checks the level of the i nput and, when the input maintains the same signal level for a
certain period of time, regards it as an input signal and changes the signal level of the PC.
If the signal level changes at a faster frequency than that time period, the level change becomes invalid.
Figure 6.5. Digita l Fi lte r Operation Principle
Control Signa l Delay Ti me
Control signals involve a delay for "input circuit response time + digital filter wa it time."
Input control signals must therefore take account of the delay.
Figure 6.6. Response time
Table 6.3. Co nt r o l Si gnal D e lay Time
ADI12-16(PCI)
85
6. About Hardw a re
About Calibration
This board is calibrated before shipment.
Contact your retailer if the board does not provide its prescribed performance.
ADI12-16(PCI)
86
ADI12-16(PCI)
User’s Guide
CONTEC CO., LTD.December 2017 Edition
3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan
https//www.contec.com/
No par t of this docu m e nt may be co pie d or reproduce d in any for m by a n y m eans wi thou t pri or writte n
consent of CONTEC CO., LTD. [12152017]
[03091999] Management No. A-46-031
[12152017_rev6] . Part s N o. LZJ0644
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.