Thank you for purchasing the CONTEC product.
The product consists of the items listed below.
Check, with the following list, that your package is complete. If you discover damaged or missing
items, contact your retailer.
Product Configuration List
- Board [AO-1604CI3-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)
Board
AO-1604CI3-PCI
First step guide
CD-ROM
[API-PAC(W32)]
i
Page 3
Copyright
Copyright 2013 CONTEC CO., LTD. ALL RIGHTS RESERVED
No part of this document may be copied or reproduced in any form by any means without prior written
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 Corporation. Other brand and
product names are trademarks of their respective holder.
AO-1604CI3-PCI
ii
Page 4
Table of Contents
Check Your P ackage................................................................................................................................ i
Table of Contents ...................................................................................................................................iii
1. BEFORE USING THE PRODUCT 1
About the P r o duct ...................................................................................................................................1
Customer Su pport.................................................................................................................................... 4
Web Site ...........................................................................................................................................4
What is Setup?......................................................................................................................................... 9
Using the Board under Wi ndows Using the Driver Library API-PAC(W32)............................... 9
Using the Board under Windows Using Software Other than the Driver Library
CD-ROM Directory Stru c ture...............................................................................................................55
About Soft w are for Windows ...............................................................................................................56
When using the API-AIO(WDM).........................................................................................................57
Accessing the Help File..................................................................................................................57
AO-1604CI3-PCI
iv
Page 6
U
sing Sample Programs.................................................................................................................58
Usage of Utility Program...............................................................................................................60
When using the API-AIO( 98/PC)......................................................................................................... 63
Accessing the Help File .................................................................................................................63
Using Sampl e Programs.................................................................................................................64
Using the Utility Program..............................................................................................................66
Uninstalling the Driver Libraries.......................................................................................................... 68
About Soft w are for Linux .....................................................................................................................69
Driver Software Instal l Procedure .................................................................................................69
Accessing the Help File .................................................................................................................70
Using Sampl e Programs.................................................................................................................70
Uninstalling the driver ...................................................................................................................70
6. ABOUT HARDWARE 71
For detailed technical informatio n........................................................................................................71
Hardware sp e cification ......................................................................................................................... 72
Block Diagr am ......................................................................................................................................73
Timing of S ampling Control Signal s....................................................................................................74
Signal spec o f external sampling clo ck, external trigger input ....................................................74
Timing of external trigger input and input status .........................................................................74
Timing of external sampling clock and “Settling Busy Output” .................................................75
Timing of “Timer Output”.............................................................................................................75
About Cali bration..................................................................................................................................76
Difference from DAI16- 4C(PCI) .........................................................................................................76
AO-1604CI3-PCI
v
Page 7
AO-1604CI3-PCI
vi
Page 8
1. Before Using the Product
1. Before Using the Product
About the Product
This product is a PCI bus supported board that extends the analog signal output functions of a PC.
Equipped with four channels of 16-bit analog output, the product is an individual isolation model using
a D/A converter for each channel to provide isolation for the bus line with PC and between channels.
The voltage/current output range (voltage : ±10V, 0 - +10V; current : 0 - 20mA) can be set by jumper
for each channel. This product can generate signals that are synchronized with the internal timer or an
external clock. Windows/Linux driver is bundled with this product.
Using the dedicated library VI-DAQ makes it possible to create each application for LabVIEW.
Features
- Analog output 4ch, 16bit-resolution, conversion speed 20sec
This product has the Analog output (4ch, 16bit, 20sec).
Additionally, the voltage/current output range (voltage : ±10V, 0 - +10V, current : 0 - 20mA) can be set
by jumper for each channel.
- PC bus line, opto-coupler isolation between channels
The opto-couplers mounted for each channel provide electric isolation between channels as well as
between the inside of the board (PC) and output pins.
- Simultaneous output of voltage to a specified channel or all channels
This product can generate output voltage either for a specified channel only or for all of the channels
simultaneously. This can be selected or set by software.
- Windows/Linux compatible driver libraries are attached.
Using the attached driver library API-PAC(W32) makes it possible to create applications of
Windows/Linux. In addition, a diagnostic program by which the operations of hardware can be
checked is provided.
- Control of sampling start/stop can be selected by an external trigger or other factor
Control of sampling start can be selected by software or an external trigger. Control of sampling start
and control of sampling stop are independent from each other; therefore, they can be set separately.
Control of sampling stop can be selected by completion of a specified number of sessions or an external
trigger. In addition, when an error occurs, sampling is stopped, regardless of the settings for sampling
stop conditions.
A sampling cycle can be selected from the internal clock (high precision timer mounted on the board) or
an external clock (control signal entered from outside).
AO-1604CI3-PCI
1
Page 9
1. Before Using the Product
-
Relay provided to control output voltage
The mounted relay prevents unstable output voltage from being generated upon power-up. This
protects the connected devices from damage and malfunction, as the output voltage for all the channels
is generated via the relay.
LabVIEW is supported by a plug-in of dedicated library VI-DAQ.
Using the dedicated library VI-DAQ makes it possible to create each application for LabVIEW.
Support Software
You should use CONTEC support software 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)]
< Operating environment >
OS Windows 7, Vista, XP, Server 2003
Adaptation language Visual Basic, Visual C++, Visual C#, Delphi, C++ Builder
You can download the updated version from the CONTEC’s Web site (http://www.contec.com/apipac/). For more
details on the supported OS, applicable language and new information, please visit the CONTEC’s Web site.
Linux version of analog I/O driver
API-AIO(LNX)
[Stored on the bundled CD-ROM driver library API-PAC(W32)]
The API-AIO(LNX) is the Linux version driver software which provides device drivers (modules) by shared library
and kernel version. Various sample programs of gcc are provided.
< Operating environment >
OS RedHatLinux, TurboLinux
(For details on supported distributions, refer to Help available after installation.)
Adaptation language gcc
You can download the updated version from the CONTEC’s Web site (http://www.contec.com/apipac/). For more
details on the supported OS, applicable language and new information, please visit the CONTEC’s Web site.
Data acquisition VI library for LabVIEW
This is a VI library to use in National Instruments LabVIEW.
VI-DAQ is created with a function form similar to that of LabVIEW's Data Acquisition VI, allowing you t o use
various devices without complicated settings.
See http://www.contec.com/vidaq/ for details and download of VI-DAQ.
(Available for downloading (free of charge) from the CONTEC web site.)
VI-DAQ
2
AO-1604CI3-PCI
Page 10
1. Before Using the Product
Cable & Connector (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 : PCB37P-1.5 (1.5m)
Shielded Cable with Two 37-pin D- SUB Connectors : PCB37PS-0.5P (0.5m)
: PCB37PS-1.5P (1.5m)
D-SUB37P Male Connector Set (5pieses) : CN5-D37M
Accessories (Option)
Screw Terminal (M3 x 37P) : EPD-37A *1*2
Screw Terminal (M3.5 x 37P) : EPD-37 *1
General Purpose Terminal (M3 x 37P) : DTP-3C *1
Screw Terminal (M2.5 x 37P) : DTP-4C *1
*1 PCB37PS -*P optional cable is required separately (0.5m is recommended.).
*2 "Spring-up" type terminal is used to prevent terminal screws from falling off.
* Check the CONTEC’s Web site for more information on these options.
AO-1604CI3-PCI
3
Page 11
1. Before Using the Product
Customer Support
CONTEC provides the following support services for you to use CONTEC products more efficiently
and comfortably.
Web Site
Japanese http://www.contec.co.jp/
English http://www.contec.com/
Chinese http://www.contec.com.cn/
Latest product information
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 programs 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,
delivery time, or estimate information.
Limited Three-Years Warranty
CONTEC products are warranted by CONTEC CO., LTD. to be free from defects in material and
workmanship for up to three years from 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 Return Merchandise Authorization to the distributor or the CONTEC group office,
from which it was purchased.
This warranty is not applicable for scratches or normal wear, but only for the electronic circuitry and
original boards. The warranty is not applicable if the device has been tampered with or damaged
through abuse, mistreatment, neglect, or unreasonable use, or if the original invoice is not included, in
which case repairs will be considered beyond the warranty policy.
How to Obtain Service
For replacement 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 product.
* No product will be accepted by CONTEC group without the RMA number.
Liability
The obligation of the warrantor is solely to repair or replace the product. In no event will the
warrantor be liable for any incidental or consequential damages due to such defect or consequences that
arise from inexperienced usage, misuse, or malfunction of this device.
4
AO-1604CI3-PCI
Page 12
1. Before Using the Product
Safety Precautions
Understand the following definitions and precautions to use the product safely.
Safety Information
This document provides safety 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 operate the equipment safely.
DANGER
WAR NI NG
CAUTION
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.
AO-1604CI3-PCI
5
Page 13
1. Before Using the Product
Handling Precautions
DANGER
Do not use the product where it is exposed to flammable or corrosive gas. Doing so may result in
an explosion, fire, electric shock, or failure.
CAUTION
- There are switches and jumpers on this product that need to be set in advance. Be sure to check
these before installing this product.
- Only set the switches and jumpers on this product to the specified settings.
Otherwise, this product may malfunction, overheat, or cause a failure.
- Do not strike or bend this product. Doing so could damage this product.
Otherwise, this product may malfunction, overheat, cause a failure or breakage.
- Do not touch this product's metal plated terminals (edge connector) with your hands.
Otherwise, this product 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 this product to or from the slot while the computer's power is turned on.
Otherwise, this product may malfunction, overheat, or cause a failure.
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 products could malfunction, overheat, or cause a failure.
- If you use this product in a noisy environment, attach ferrite cores to the I/O cable to stabilize the
operation.
- 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 manual and understand the contents.
- Do not modify the product. CONTEC will bear no responsibility for any problems, etc., resulting
from modifying this product.
- Regardless of the foregoing statements, CONTEC is not liable for any damages whatsoever
(including damages for loss of business profits) arising out of the use or inability to use this
CONTEC product or the information contained herein.
6
AO-1604CI3-PCI
Page 14
1. Before Using the Product
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 - 50C
Operating humidity
10 - 90%RH (No condensation)
Corrosive gases
None
Floating dust particles
Not to be excessive
Inspection
Inspect the product periodically as follows to use it safely.
- Check that the bus connector
of the board and its cable have
been plugged correctly.
- Check that the board has
no dust or foreign matter adhering.
- The gold-plated leads of the bus connector
have no stain or corrosion.
Storage
When storing this product, keep it in its original packing form.
(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 disposal procedures stipulated under the relevant laws and
municipal ordinances.
AO-1604CI3-PCI
7
Page 15
1. Before Using the Product
8
AO-1604CI3-PCI
Page 16
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 applications used.
Using the Board under Windows
Using the Driver Library API-PAC(W32)
This section describes the setup procedure to be performed before you can start developing application
programs for the board using the bundled CD-ROM “Driver Library 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 performed 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 manual for that software. See also the
following parts of this manual as required.
This chapter Step 2 Setting the Hardware
This chapter Step 3 Installing the Hardware
Chapter 3 External Connection
Chapter 6 About Hardware
AO-1604CI3-PCI
9
Page 17
2. Setup
Using the Board under an OS Other than Windows
For using the board under Linux, see the following parts of this manual.
This chapter Step 2 Setting the Hardware
Chapter 3 External Connection
Chapter 5 Abo ut So ftwa re
Chapter 6 About Hardware
For using the board under an OS other than Windows and Linux, see the following parts of this manual.
This chapter Step 2 Setting the Hardware
Chapter 3 External Connection
Chapter 6 About Hardware
10
AO-1604CI3-PCI
Page 18
2. Setup
Step 1 Installing the Software
This section describes how to install the Driver libraries.
Before installing the hardware on the PC, install the driver library from the API-PAC(W32)
CD-ROM provided with the board.
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).
API-AIO(WDM) is a new driver to perform analog I/O 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 OS 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.
Windows 7
Windows Vista
Windows XP/Windows 2000
Windows Me/98
PCI bus, PC Card
VC6.5, VB6.5,
Delphi, C++Builder
AO-1604CI3-PCI
OS to be used
Use the Analog board for
the first time?
Yes
Language to be used
API-DIO(WDM)
Device type
Windows 95/Windows NT 4.0
ISA Bus
Already used.
The existing system
upgrade using
API-AIO(98/PC)?
No
VC4, 2, VB4
API-AIO(98/PC)W95, NT
Yes
11
Page 19
2. Setup
Starting the Install Program
(1)
Load the CD-ROM [API-PAC(W32)] on your PC.
(2)
The API-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 Vista, driver is automatically installed.
CAUTION
Before installing the software in Windows 7, Vista, XP, Server 2003, 2000, log in as a user with
administrator privileges.
12
AO-1604CI3-PCI
Page 20
2. Setup
When Using 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 "Advanced Analog I/O driver".
(3)
Click on the [Install] button.
* Clicking the [API-AIO] button 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 the installation is complete.
AO-1604CI3-PCI
13
Page 21
2. Setup
Whe n Us ing 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 driver”.
(3)
Click on the [Install] button.
* Clicking on the [API-AIO] button displays detailed information on API-AIO(WDM),
API-AIO(98/PC).
14
AO-1604CI3-PCI
Page 22
2. Setup
uting the Installation
Exec
(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 are displayed.
When you are installing the software or hardware 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.
* When the hardware has already been installed:
Check “Perform a hardware setup now(API-TOOL Configuration)”, then go to Step 4
“Initializing the Software”.
You have now finished installing the software.
AO-1604CI3-PCI
15
Page 23
2. Setup
Step 2 Setting the Hardware
This section describes how to set the board and plug it on your PC.
The board has some switches and jumper to be preset.
Check the on-board switches and jumpers before plugging the board into an expansion slot.
The board can be set up even with the factory defaults untouched. You can change board settings later.
Parts of the Board and Factory Defaults
Analog output setting
(JP1 - JP12)
JP11JP1 2131 313
JP1 0
ch 3
JP7
JP4
JP1
JP8JP9131 313
JP5JP6131 313
JP2JP3131 313
ch3
ch2
ch1
ch 2
ch 1
ch 0
- Board ID setting switch
SW1
BOARD ID
9
8
7
A
6
B
5
C
4
D
3
E
2
F
0
1
ch0
CN1
Figure 2.1. Part Names
Note that the jumper and switch setting shown below is the factory default.
16
AO-1604CI3-PCI
Page 24
2. Setup
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 board IDs can be set from 0 - Fh to 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 board ID, use the rotary switch on the board. Turn the SW1 knob to set the board ID as
shown below.
SW1
BOARD ID
8
9
A
7
6
B
5
C
4
D
3
E
2
1
Figure 2.2. Board ID Settings (SW1)
F
0
Factory setting:
(Board ID = 0)
AO-1604CI3-PCI
17
Page 25
2. Setup
Setting the Analog Output
The analog output is set by specifying the output range. The output range indicates the range of
voltages of analog output signals. This product converts digital signals into voltages in the preset
output range according to the resolution. It is not possible to set a different output range for each
channel.
- ch0 setting - ch1 setting
Voltage output bipolar -10V - +10V
JP1JP2JP3131313
Voltage output unipolar 0V - +10V
3
3
JP1JP2JP31
1
Current output 0mA - 20mA
3
JP1JP2JP31
1
3
1
3
3
1
Voltage output bipolar -10V - +10V
JP4JP5JP6131313
Voltage output unipolar 0V - +10V
3
JP4JP5JP61
1
Current output 0mA - 20mA
3
JP4JP5JP61
1
- ch2 setting - ch3 setting
Voltage output bipolar -10V - +10V
3
3
JP7JP8JP91
1
Voltage output unipolar 0V - +10V
3
JP7JP8JP91
1
Current output 0mA - 20mA
3
JP7JP8JP91
1
3
1
3
3
1
3
3
1
Voltage output bipolar -10V - +10V
3
JP10JP11JP121
1
Voltage output unipolar 0V - +10V
3
JP10JP11JP121
1
Current output 0mA - 20mA
3
JP10JP11JP121
1
3
3
1
3
3
1
3
3
1
3
3
1
3
3
1
Figure 2.3. Output range setting
CAUTION
Do not set the jumpers to any strapping pattern other than those specified above. Doing so can
result in a fault in this product.
18
AO-1604CI3-PCI
Page 26
2. Setup
Plugging the Board
(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 mounted.
(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.
Applicable PCI bus slots
PCI bus slots used in PCs have keys to prevent 5V and 3.3V PCI bus boards from being accidentally
plugged into wrong bus slots. This board can be plugged into both of the 5V and 3.3V PCI bus slots.
<PCI bus slot><PCI bus board>
5-V PCI bus slot
3.3-V PCI bus slot
3.3V key
CAUTION
5V key
A :
Slit for 5-V PCI bus slot
B :
Slit for 3.3-V PCI bus slot
AB
- 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.
- Power supply from the PCI bus slot at +5V is required.
AO-1604CI3-PCI
19
Page 27
2. Setup
Step 3 Installing the Hardware
Windows needs to detect the I/O address and interrupt used by the board. This is called hardware
installation.
When using more than one board, install the boards one at a time and do not install the next board until
setup is complete for the previous board.
Turning on the PC
Turn on the power to your PC.
CAUTION
- 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. If you remove two or more boards that have already been installed and then remount one of
them on the computer, it is unknown that which one of the sets of resources previously assigned to
the two boards is assigned to the remounted board. In this case, you must check the resource
settings.
When Using the API-AIO(WDM)
(1) The “Found New Hardware Wizard” will be started.
Select “Install from a list or specific location[Advanced]”, then click on the [Next] button.
20
AO-1604CI3-PCI
Page 28
2. Setup
(2
) Specify that folder on the CD-ROM which contains the setup information file (INF) to register the
board.
* The name of the board
you have just added is
displayed.
- DAI16-4C(PCI)
CAUTION
Note that th e di sp layed bo ard na me i s "DAI16 -4 C(PCI)" ev en tho ugh you h ave installed th is bo ard .
There is no problem in operation even if the board name is displayed as “DAI16-4C(PCI)".
Source folder
The setup information file (INF) is contained in the following folder on the bundled CD-ROM.
\INF\WDM\AIO
\INF\WDM\AIO
ave now finished installing the software.
You h
AO-1604CI3-PCI
21
Page 29
2. Setup
When Using the API-AIO(98/PC)
(1) The “Found New Hardware Wizard” will be started.
Select “Specify the location of the driver (Advanced)”, then click on the [Next] button.
If you are using Windows NT 4.0, the “Add New Hardware Wizard” is not started.
Go to Step 4 “Initializing the Software”.
(2) Specify that folder on the CD-ROM which contains the setup information file (INF) to register the
board.
CAUTION
Note that th e di sp layed bo ard na me i s "DAI16 -4 C(PCI)" ev en tho ugh you h ave installed th is bo ard .
There is no problem in operation even if the board name is displayed as “DAI16-4C(PCI)".
22
AO-1604CI3-PCI
Page 30
2. Setup
ource folder
S
The setup information (INF) file is contained in the following folder on the bundled CD-ROM.
Vista,
Windows
Windows Me, 98, 95 \INF\Win95\Ai o\PCI
XP, Server 2003, 2000 \INF\Win2000\Aio\PCI
Example of specifying the folder for use under Windows XP
\INF\Win2000\Aio\PCI
AO-1604CI3-PCI
23
Page 31
2. Setup
CAUTION
- In Windo ws XP, th e Hardware Wizard displays the following alert dialog box when you have
located the INF file. This dialog box appears, only indicating that the relevant driver has not
passed Windows Logo testing, and it can be ignored without developing any problem with the
operation of the board.
In this case, click on the [Continue Anyway] button.
-
Note that the displayed board name is "DAI16-4C(PCI)" even though you h ave installed th is board .
There is no problem in operation even if the board name is displayed as “DAI16-4C(PCI)".
You have now finished installing the software.
* The name of the board
you have just added is
displayed.
- DAI16-4C(PCI)
24
AO-1604CI3-PCI
Page 32
2. Setup
Step4 Initializing the Software
The driver library requires the initial setting to recognize the execution environment. It is called the
initialization of the Driver library.
When Using API-DIO(WDM)
Setting the device name
(1) Run Device Manager. From [My Computer] - [Control Panel], select [System] and then select the
[Device Manager] tab.
(You can also open Device Manager by right clicking on My Computer and selecting Properties.)
* The name of the board
you have just added is
displayed.
- DAI16-4C(PCI)
CAUTION
Note that th e di sp layed bo ard na me i s "DAI16 -4 C(PCI)" ev en tho ugh you h ave installed th is bo ard .
There is no problem in operation even if the board name is displayed as “DAI16-4C(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].
AO-1604CI3-PCI
25
Page 33
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.
- DAI16-4C(PCI)
The initial device name that appears is a default value. You can use this default name if you wish.
*
* Make sure that you do not use the same name for more than one device.
CAUTION
Note that th e di sp layed bo ard na me i s "DAI16 -4 C(PCI)" ev en tho ugh you h ave installed th is bo ard .
There is no problem in operation even if the board name is displayed as “DAI16-4C(PCI)".
You have now finished installing the initial setting of Software.
26
AO-1604CI3-PCI
Page 34
2. Setup
Whe n Us ing API-DIO(98/PC)
API-TOOL Configuration start
(1) Open the Start Menu, then select “Programs” – “CONTEC API-PAC(W32)” – “API-TOOL
Updating the Settings
(1) Select “Save setting to registry…” from the “File” menu.
You have now finished installing the initial setting of Software.
AO-1604CI3-PCI
27
Page 35
2. Setup
Step 5 Checking Operations with the Diagnosis
Program
Use the diagnosis program to check that the board and driver software work normally, thereby you can
confirm that they have been set up correctly.
What is the Diagnosis Program?
The diagnosis program diagnoses the 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 interrupt status.
Check Method
To check analog I/O data, connect the signal.
The diagrams below show examples of using channel 0 on the AO-1604CI3-PCI. For details on the
connections, see Chapter 3 “External Connection”. Check the board with the factory defaults
untouched.
Connection diagram
- Voltage output
Board
Voltage output CH0
(CN1)1pin
Analog ground
(CN1)20pin
e.g.Tester
- Current output
Board
Current output CH0+
(CN1)2pin
Analog ground
(CN1)20pin
Load register
250
+
A
e.g.Tester
-
The value of load resister RL is an example.
The load connected to the current output
must be within 500
including the wiring resistance.
Figure 2.4. Wiring Diagram
CAUTION
Change the setting of the output range with the jumper when you confirm the current output.
Please refer to "Analog Output Setup" on this chapter for details.
28
AO-1604CI3-PCI
Page 36
2. Setup
Using the Diagnosis Program 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.
- DAI16-4C(PCI)
CAUTION
Note that th e di sp layed bo ard na me i s "DAI16 -4 C(PCI)" ev en tho ugh you h ave installed th is bo ard .
There is no problem in operation even if the board name is displayed as “DAI16-4C(PCI)".
AO-1604CI3-PCI
29
Page 37
2. Setup
Ana
log output
You can select the desired output channel, output range from the lists.
You can also select the type of output data from among DC (constant voltage), SIN (sine wave), and
Rect (rectangular wave).
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.
* The name of the board
you have just added is
displayed.
- DAI16-4C(PCI)
* The contents of the
diagnosis report vary
with the board mounted.
CAUTION
Note that th e di sp layed bo ard na me i s "DAI16 -4 C(PCI)" ev en tho ugh you h ave installed th is bo ard .
There is no problem in operation even if the board name is displayed as “DAI16-4C(PCI)".
30
AO-1604CI3-PCI
Page 38
2. Setup
(
)
(
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.
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.
- DAI16-4C
CAUTION
Note that th e di sp layed bo ard na me i s "DAI16 -4 C(PCI)" ev en tho ugh you h ave installed th is bo ard .
There is no problem in operation even if the board name is displayed as “DAI16-4C(PCI)".
AO-1604CI3-PCI
PCI
31
Page 39
2. Setup
hecking the Analog Output
C
Analog output
You can select the output channel and output range from the lists.
32
AO-1604CI3-PCI
Page 40
2. Setup
gnosis Report
Dia
(1) Clicking on the [Report] button displays detailed data such as a board, channel settings and the
diagnosis results while saving them in text format.
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.
(
2) A diagnosis report is displayed as shown below.
AO-1604CI3-PCI
Clic
k on [Report].
33
Page 41
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, refer to the user’s guide for your PC.
The board cannot output data normally
- Run the Diagnosis Program to check whether the board has been registered correctly and whether
any initialization error has occurred.
- Check the settings and connections of the board. Also check the output ranges.
The board works with the Diagnosis Program but not with an application.
The Diagnosis Program is coded with API-TOOL functions. As long as the board operates with the
Diagnosis Program, it is to operate with other applications as well. In such 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 Vista, Windows XP, Server 2003, 2000]
Turn off the power to your PC, then unplug the board. Restart the OS and delete the board settings 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
Contact your retailer.
34
AO-1604CI3-PCI
Page 42
3. External Connection
3. External Connection
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.
How to connect the connectors
Connector shape
The on-board interface connector (CN1) is used when connecting this product and the external devices.
Interface connector (CN1)
37
20
* Please refer to chapter 1 for more information on the supported cable and accessories.
19
- Connector used
37-pin D-SUB, female connector
DCLC-J37SAF-20L9E (mfd. by JAE)
- Applicable connectors
17JE-23370-02(D8C)-CG (mfd. by DDK, Male)
1
CN1
Figure 3.1. Interface Connector Shape
AO-1604CI3-PCI
35
Page 43
3. External Connection
Connector Pin Assignment
Pin Assignments of Interface Connector (CN1)
CN1
Plus Common
19
N.C.
N.C.
N.C.
N.C.
N.C.
N.C.
N.C.
N.C.
N.C.
N.C.
N.C.
37
External Trigger Input
18
36
External Sampling Clock Input
17
35
N.C.
16
34
N.C.
15
33
Current Output 3
14
32
Vol tag e Outp ut 3
13
31
N.C.
12
30
N.C.
11
29
Current Output 2
10
28
Vol tag e Outp ut 2
9
27
N.C.
8
26
N.C.
7
25
Current Output 1
6
24
Vol tag e Outp ut 1
5
23
N.C.
4
22
N.C.
3
21
Current Output 0
2
20
Vol tag e Outp u 0
1
Analog voltage output signal.
The numbers correspond to channel numbers.
Analog current output signal.
The numbers correspond to channel numbers.
Analog grounds for identically numbered output signals.
External sampling clock input signal.
Common for each "External Trigger Input", "External Sampling Clock Input",
"Timer Out", " Settling Busy Output " signal.
Common for each "Timer Out", " Settling Busy Output" signal.
Settling Busy Output
Timer Output
Minus Common
Analog Ground 3
Analog Ground 2
Analog Ground 1
Analog Ground 0
Voltage Output 0
- Voltage Output3
Current Output 0
- Current Output 3
Analog Ground 0
- Analog Ground 3
External Trigger Input External trigger input signal
External Sampling Clock
Input
Timer Output Output signal of programmable timer
Settling Busy Output Output signal indicating that the board is performing DA conversion.
Plus Common Connect the plus side of external device.
Minus Common Connect the minus side of external device.
N.C. No connection to this pin.
Figure 3.2. Pin Assignments of Interface Connector (CN1)
CAUTION
Do not connect any of the outputs and power outputs to the analog or digital ground.
Neither connect outputs to each other. Doing either can result in a fault.
36
AO-1604CI3-PCI
Page 44
3. External Connection
Analog Output Signal Connection
The sections below describe how to connect the signals using flat cable and shielded cable.
Connecting example of voltage output
The following figure shows an example of optional flat cable (PCA37P) connection.
Connect the CN1 analog output channels and ground to the external device's input and ground.
BOARD
Voltage Output 0...3
Analog Ground 0...3
MOSFET Relay
CableCN1
Figure 3.3. Connection of voltage output (Flat Cable)
The following example connects a signal source to the board using a shielded cable. Use shielded
cable if the distance between the board and loading is long or if you want to provide better protection
from noise. Use the core of the shielded cable to connect the analog output of CN1 to the input of the
external device and use the shield braid to connect the CN1's analog ground to the external device's
ground.
BOARD
Vol tag e Ou tpu t 0. ..3
Analog Ground 0...3
MOSFET Relay
CN1
Coaxial cable
Figure 3.4. Analog Output Connection (Shield Cable)
CAUTION
- If the board and the target receive noise or the distance between the board and the signal source is
too long, data may not be input properly.
- The maximum output current-carrying capacity of the analog output signal is ±5 mA. Check the
specifications of the target before connecting the board to it.
- Do not connect any of the outputs and power outputs to the analog or digital ground.
- Do not connect the analog output signal to the other analog output signal and output signal of
external device. Doing so may malfunction.
- Do not plug or unplug the interface connector to or from while the PC or external device power is
turned on. Doing so may malfunction.
- The DA converter may cause glitches as it contains no deglitcher.
Target
+
Digital Multi-Meter etc.
-
Tar get
+
Digital Multi-Meter etc.
-
AO-1604CI3-PCI
37
Page 45
3. External Connection
Connecting example of current output
The figure below shows an example connection using a flat cable as the optional one (PCA37P).
The load register is connected. Please adjust the register load R
each channel to 500 or less including the resistance of wiring.
Each current output of CN1 and analog ground is connected to the resister load R
BOARD
Current Output 0...3
CableCN1
connected with the current output of
L
L.
Targ et
Register load R
Analog Ground 0...3
L
Figure 3.5. Current output connection (Flat cable)
The following figure shows an example of shielded cable connection. Use shielded cable if the
distance between the loading and board is long or if you want to provide better protection from noise.
Connect the each current output of CN1 to the register load in the core wire of shielded cable and
connect the each analog ground of CN1 to the register load in the shielding of shielded cable.
BOARD
Current Output 0...3
Analog Ground 0...3
CN1
Tar getCoaxial cable
Register load R
L
Figure 3.6. Current output connection (Shielded cable)
CAUTION
- When the power supply is turned on, output (0mA) of data 0000h is output as for the output sign al.
- Do not short circuit any of the output signals to analog ground. Doing either can cause a
malfunction.
- Do not connect the output signal to that of other channel and of external device. Doing either can
cause a malfunction.
- Do not detach the interface connector (CN1) with the power supply of a PC or an external device
turned on. Doing either can cause a malfunction.
- If the connection cable is affected by noise, it may fail to output the accurate current data.
Route the connection cable as far apart from noise sources as possible.
38
AO-1604CI3-PCI
Page 46
3. External Connection
Control signals Connection
Input signals connection
To the “External Sampling Clock Input” and “External Start Trigger Input”, connect current driven
devices such as a switch and a transistor output device. Input circuit is as follows. An external power
supply is required to drive the input circuit. The power capacity required at this time is about 11 mA
per input channel at 24 VDC (or about 5.5 mA at 12 VDC).
External circuitBoard
Vcc
Vcc
Internal circuit
10k
10k
Vcc
HCPL-M452
Opto-coupler
Vcc
HCPL-M452
2.2k
2.2k
+Common
External
Sampling
Clock
Input
External power supply
12V - 24VDC
SW
Internal circuit
Figure 3.7. Input circuit
AO-1604CI3-PCI
Opto-coupler
External
Trigger
Input
SW
39
Page 47
3. External Connection
External power supply
+12V - +24VDC
External device
Internal
circuit
Board
VccVcc
+Common
Input pin
Plus common
Open-collector
output
Minus common
Figure 3.8. Connection example with open-collector output (current sink type)
Board
VccVcc
External power supply
+12V - +24VDC
Internal
circuit
+Common
Input pin
Contact point
Figure 3.9. Connection example with mechanical contact point
The relation of the data (internal logic) seen from the input signal and the PC side as an example of the
above figure is shown below.
Table 3.1. Relation between the input signal and the data (internal logic) seen from the PC side
Internal
Contact
logic
point
0 OFF High
1 ON Low
Input pin voltage
level
Reference
For the operation timings for control signal input, see “Timing of External Control Signals” in
Chapter 6 “Hardware”.
40
AO-1604CI3-PCI
Page 48
3. External Connection
Output signals connection
To the “Timer Output “ and “Settling Busy Output”, connect a relay controller or a current driven
control device such as a LED. Output circuit is as follows.
An external power supply is required to drive the output circuit. The rated output current is up to 50
mA per channel. 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.
Opto-coupler
Boar dEx te rnal c irc u it
+Common
Output
2SD 178 2K
Sa m p l in g
Output
2SD 178 2K
-Common
In ter n al
circuit
In ter n al
circuit
100
Vc c Vcc
100
HCPL-0531
15k15k
Opto-coupler
Figure 3.10. Output circuit
CAUTION
When th e po wer s upp ly is turned on, all the outputs are turned off.
Timer
Bu sy
Loading
Loading
Exter n al pow e r
su pp ly
12V - 24 VD C
AO-1604CI3-PCI
41
Page 49
3. External Connection
External power supply
Board
Vcc
Plus common
+Common
Internal
circuit
Output pin
-Common
Input
Figure 3.11. Connection example with current sink corresponding input
External power supply
Board
Vcc
+Common
Internal
circuit
Output pin
-Common
TTL level input
Ground
+12V - +24VDC
External device
+12V - +24VDC
External device
+5V
Figure 3.12. Connection example with TTL level input (with pull-up register)
42
AO-1604CI3-PCI
Page 50
3. External Connection
Surge Voltage Countermeasures
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 control output signals, 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 surge voltage
countermeasure that can be employed:
- Examples of use of relay coil
+Common
Diode
Output pin
-Common
- Examples of use of lump
+Common
Output pin
Surge current
-Common
prevention registor
Relay coil
+Common
Relay coil
Output pin
Zener diode
-Common Out
External power voltage < Zener diode voltage
+Common
Output pin
Registor
-Common
Figure 3.13. Surge Voltage Countermeasure
CAUTION
In order for a protection circuit to operate effectively, it must be connected within 50cm of a load
and a contact point.
AO-1604CI3-PCI
43
Page 51
3. External Connection
44
AO-1604CI3-PCI
Page 52
4. Functions
4. Functions
This chapter describes the different functions that can be implemented using the hardware and driver
together. Unless stated otherwise, the driver is assumed to be API-AIO(WDM).
Analog Output Function
Analog output processes are classified as follows:
- Simple Analog Output
- High-functional analog output
Simple Analog Output
When an analog output start command is executed by software, output data is set for one or more
channels, DA conversion is performed, and then the analog output operation is terminated.
Analog output from a specified one channel
Analog output
start command
Analog output
operating
0ch
Operation
stop
Conversion start
0ch analog output change
Settling time
The output voltage at 0ch is updated as illustrated above.
Analog outputs from multiple channels (Multiple channel outputs are
updated simultaneously.)
Analog output
start command
Conversion start
2ch analog output change
1ch analog output change
0ch analog output change
The output voltage from 0 to 2ch is updated as illustrated above.
Analog output
operating
Settling time
Analog output finalized
2ch
1ch
0ch
Analog output finalized
Operation
stop
* The analog output is finalized after the settling time after conversion is started.
The conversion speed is determined by the settling time per channel.
AO-1604CI3-PCI
45
Page 53
4. Functions
Si
mple analog output assumes the following conditions and settings.
Resolution
“Resolution” signifies the number of bits used by an analog output device to represent analog signals.
The higher the resolution, the more finely the voltage range is segmented, allowing the device to
convert to analog value more precisely.
A device with a resolution of 12-bit divides the range width into 4096 segments.
When the device covers the range of 0 to 10V, the minimum unit of converted voltages is
10÷40962.44mV.
If the device has a resolution of 16-bit, it is 10÷655360.153mV instead.
Low-resolution board
High-resolution board
AO-1604CI3-PCI : The resolution is 16-bit.
Range
“Range” means the range of voltages (current) at which analog output can be performed.
The output range can be selected by setting the output signal type (voltage and current) and the upper
and lower output signals.
AO-1604CI3-PCI : Range is set by the jumper setting.
46
AO-1604CI3-PCI
Page 54
4. Functions
tput data
Ou
The following equation represents the relationship between output data and voltage.
Output data = ((voltage – Min. range value) x Resolution) (Max. range value – Min. range value)
The value of resolution for the 12-bit device is 4096; that for the 16-bit device is 65536.
<10V range>
The table below shows the relationship between output data and voltage.
Voltage Output data (12-bit) VoltageOutput data (16-bit)
+9.995V 4095 +9.99970V65535
: : : :
0.005V 2049 0.00030V32769
0V 2048 0V 32768
-0.005V 2047 -0.00030V32767
: : : :
-10.000V 0 -10.000V0
Ex.: When 3V is output at a resolution of 12-bit in the ± 10-V range
Output data = (3 - (-10)) x 4096 (10 - (-10))
= 2662.4 *
* The value that can be set as output data at this time is an integer. Select "2662" or "2663" as the
output data.
The analog signal corresponding to the output data contains an error as follows:
- Output data "2662" converted to: 2.9980 V
- Output data "2663" converted to: 3.0029 V
This error is a consequential error occurring when output data is obtained from an expected analog
value.
<0 - 10V range>
The table below shows the relationship between output data and voltage.
Voltage Output data (12-bit) VoltageOutput data (16-bit)
+9.998V 4095
: :
5.002V 2049
5V 2048
4.998V 2047
: :
0V 0
9.99985V65535
:
5.00015V32769
5V 32768
4.99985V32767
:
0V 0
:
:
AO-1604CI3-PCI
47
Page 55
4. Functions
E
x.: When 3V is output at a resolution of 12-bit in the 0 - 10V range
Output data = (3 - 0) x 4096 (10 - 0)
= 1228.8*
* The value that can be set as output data at this time is an integer. Select "1228" or "1229" as the
output data.
The analog signal corresponding to the output data contains an error as follows:
- Output data "1228" converted to: 2.9980 V
- Output data "1229" converted to: 3.0005 V
This error is a consequential error occurring when output data is obtained from an expected analog
value.
Channel
“Channel” represents individual channel No. for analog output signal.
For channel No., see “How to connect the connectors” - “Connector Pin Assignment” in Ch apter 3
"External Connection".
For the channel selection, specify the channel No. or the number of channel which you want to convert D
into A (channel consecutive from channel 0)
* The above conditions and settings are also required for "high-functional analog output" described
on the next page.
48
AO-1604CI3-PCI
Page 56
4. Functions
High-functional analog output
When an analog output start command is executed by software, DA conversion is performed in
synchronization with the sampling clock from when the sampling start condition is met to when the
sampling stop condition is met.
The analog output operation stops when the sampling stop condition is met.
Analog output
start command
Analog output operatingAnalog output
Sampling
start condition
satisfied
Sampling
Sampling clock
input
2ch
1ch
0ch
Sampling clock
frequency
Sampling
count : 1
Sampling clock
input
2ch
1ch
0ch
Sampling
count : 2
Sampling clock
input
2ch
1ch
0ch
Sampling
count : 3
Sampling is defined as a series of operations performed from when the sampling start condition is met
to when the sampling stop condition is met.
The number of times DA conversion is executed during sampling is counted as a sampling count.
The sampling count can be used as the sampling stop condition (as described later).
The following settings are required for high-functional analog output:
operation stop
Sampling
stop condition
satisfied
Sampling clock
The internal or external sampling clock can be selected as the sampling clock that determines the DA
conversion period. The sampling clock is selected by means of software.
- Internal sampling clock
The clock signal from the on-board clock generator is used.
- External sampling clock
The edge of the digital signal input from an external device is used for the sampling clock.
AO-1604CI3-PCI
49
Page 57
4. Functions
mory
Me
Output data can be stored in driver's memory in advance so that DA conversion can be executed
repeatedly. You can select the memory type between FIFO and RING depending on the application of
analog output. The memory type is selected with software.
AO-1604CI3-PCI : Uses the memory for storing converted data on the driver.
- FIFO(First In First Out)format
Use FIFO format if you wish to output a continuous arbitrary analog output like that shown below.
When using FIFO format, writing of conversion data to memory is always performed from after the
most recent data and DA conversion is performed on the oldest data in memory.
You can write to memory during analog output operation.
An error occurs if the volume of data exceeds the memory size. Howev er, th is erro r do e s not sto p
analog output if it is in progress.
- Ring format
Use ring format if you wish to output a repeated pattern like that shown below.
50
AO-1604CI3-PCI
Page 58
4. Functions
When using ring format, write the data for one complete cycle of the output waveform before
starting operation.
You cannot write to the memory during its operation of analog output.
DA conversion data is output continuously in the sequence in which the ring format data is stored.
* Although the figure shows a single analog output channel, output from multiple channels is also
possible.
Sampling Start Condition
The condition for controlling the start of sampling can be selected from both software 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 analog output start command executed by software is set as the sampling start condition.
The board starts sampling upon execution of the analog output start command.
- External trigger
The board starts waiting for an external control signal as soon as the analog output start command is
output. Sampling when the specified edge (rising edge or falling edge) is input from the external
control signal.
Sampling Stop Condition
The condition for controlling the stop of sampling can be selected from both the last setting count, and
an external trigger. The board stops sampling whenever an error occurs irrespective of the stop
condition setting.
Last setting count
When the memory type if FIFO, the board stops sampling the moment the sample count reaches the
specified value.
For RING memory, specify the sampling count equivalent to one period of an arbitrary waveform.
- External trigger
The board starts waiting for an external control signal after the sampling have been started. Sampling
stops when the specified edge (rising edge or falling edge) is input from the external control signal.
AO-1604CI3-PCI
51
Page 59
4. Functions
Re
peat
You can specify a repeat count to perform sampling for a specified number of times.
Memory must be set to ring format if a number of repetitions is to be specified.
(The number of repetitions cannot be specified for FIFO memory format.)
The number of repetitions is set by software and sampling is repeated for the specified number of times.
You can also specify that operation continue indefinitely. If set to repeat indefinitely, analog output
operation is stopped by outputting a analog output stop command by software.
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 and purpose of the
application.
- ”Sampling start condition satisfied” event
This event occurs when the sampling start condition is satisfied. The event is nullified when the
sampling conversion start condition is “software”.
- ”Sampling stop condition satisfied” event
This event occurs whenever the sampling stop condition is met if the number of repetitions has been
set.
- ”End of device operation” event
This event occurs when the analog output operation is terminated.
- "Specified number of output samples complete" event
This event occurs when DA conversion is executed for the specified number of times. When the
memory type is FIFO, the event occurs only once during sampling. When the memory type is
RING, the event occurs as many times as the number of repetitions.
- Sampling clock error event
This event occurs when conversion stops as an error occurs due to a sampling clock period that is
too short.
- DA conversion error event
This event occurs when the analog output operation stops upon detection of a device malfunction by
the driver.
Starting/Stopping Operation
Analog output operation is started by a software command (the analog output start command).
Similarly, you can stop analog output at any time using a software command (the analog output stop
command).
52
AO-1604CI3-PCI
Page 60
4. Functions
Monitoring the Status
You can use a software command to check the status of analog output operation and of the output data
stored in memory.
Status
The current state of the device can be checked by obtaining the device status.
The following types of device status are available:
- Analog output operating
This status remains ON, after the board performs the analog output start command until the analog
output operation is stopped.
- Waiting for start trigger
This status remains ON, after the board performs the analog output start command until the
sampling start condition is satisfied, if the sampling start condition is an external trigger. The
status is set to OFF when the external trigger is input to start sampling.
This status is set to ON whenever the board enters the conversion start wait status even when
repeated operation has been set.
- Specified number of data items already output
- Sampling clock error
This error occurs when the analog output operation stops as the sampling clock cycle is too short.
- DA conversion error
This status is turned on when the analog output operation stops upon detection of a device
malfunction by the driver.
Sampling count
The number of sampled items of output data transferred from in memory can be obtained by the
software command.
Repeat
The current repeat count can be obtained by the software command.
AO-1604CI3-PCI
53
Page 61
4. Functions
Reset
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 conversion data in memory.
- Resets the output sampling count.
- Resets the repeat count to 0.
- Resets the status information for the specified data save count.
54
AO-1604CI3-PCI
Page 62
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 Hardware User's Guide(PDF files)
AO-1604CI3-PCI
55
Page 63
5. About Software
About Software for Windows
The bundled CD-ROM “Driver library 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 external sampling clock
- Simultaneous monitoring of the termination of analog input sampling, buffer memory usage, and
interrupt events s uch as occurrences of errors
- Driver option check using a demo driver even without the board installed
For details, refer to the help file. The help file provides various items of information such as “Function
Reference”, “Sample Programs” and “Q&A”. Use them for program development and
troubleshooting.
56
AO-1604CI3-PCI
Page 64
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” – “CONTEC API-PAC(W32)” – “AIOWDM” –
“API-AIO(WDM) HELP” to display help information.
AO-1604CI3-PCI
57
Page 65
5. About Software
Using Sample Programs
Sample programs are provided for each of the basic operations. You can use these to check the
operation of the board and as a reference when writing your own programs.
To use the sample programs, specify the device name in the property page for the program.
The sample programs are stored 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 sample program is invoked.
58
AO-1604CI3-PCI
Page 66
5. About Software
ple Programs - Examples
Sam
Analog input
- SingleAi Perform single analog input from specified channel
- MultiAi Perform single analog input from multiple channels
- Ai Perform standard analog input using a FIFO buffer
- AiPoll Perform standard analog input by polling
- AiEx Perform analog input for multiple channels using a FIFO buffer
- AiLong Perform long-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 operation
- 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 output from multiple channels
- Ao Perform standard analog output using a FIFO buffer
- AoPoll Perform standard analog output by polling
- AoEx Perform analog output for multiple channels using a FIFO buffer
- AoLong Perform long-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 more than one board
Digital input/output
- DioBit Perform digital I/O using bit values
- DioByte Perform digital I/O using port values
* Sample programs executable vary with the functions of boards in use.
AO-1604CI3-PCI
59
Page 67
5. About Software
(
)
Usage of Utility Program
Program for Measurement of Function Execution Speed
The execution time of some main functions can be measured in a function execution speed measurement
program. To use a function execution speed measurement program, click the [execution time
measurement] button in the diagnostic program.
CAUTION
Even if this product is installed, the displayed board name is “DAI16-4C(PCI)".
There is no problem in operation even if the board name is displayed as “DAI16-4C(PCI)".
Procedure
(1) Chose the measure device from device list.
(2) Click the button written with the function name to measure the execution speed of the function.
Please choose from a list the number of channels used for conversion in function AioMultiAi and
AioMultiAo. Input the transmission data size in function AioGetAiSamplingData and
AioSetAoSamplingData. The transmission data is set by unit of kByte.
(3) End the application with an [end] button.
* The name of the board
you have just added is
displayed.
- DAI16-4C
PCI
60
AO-1604CI3-PCI
Page 68
5. About Software
(
)
log Output Measurement Tool
Ana
It is an analog output measurement utility to carry out infinity sample in the FIFO memory. Once the
conversion data of memory accumulates to a certain quantity, the event occurs and new output data is
added. Data in the FIFO memory can be confirmed visually.
* The name of the board
you have just added is
displayed.
- DAI16-4C
CAUTION
- Even if this product is installed, the displayed board name is “DAI16-4C(PCI)".
There is no problem in operation even if the board name is displayed as “DAI16-4C(PCI)".
- This program is made with Visual Basic. Therefore, it is not possible to execute it as it is in
the environment in which Visual Basic is not installed. The program can be used by
executing the following setup below the folder that installs the API-AIO(WDM).
AIOWDM\Utility\AoSpec\setup.exe
PCI
AO-1604CI3-PCI
61
Page 69
5. About Software
ocedure
Pr
(1) Chose the device name of the device to be used from the upper left combo box, and click the setting
(2) The conversion conditions are set on the screen of the setting analog output.
Once an output is done at the sampling frequency specified as data setting sampling frequency, an
(3) Start the measurement with measurement start button. The various states during the conversion
The number of the samplings in FIFO is :
Event generation sampling frequency :
Adding sampling frequency :
Measurement may stop by the following errors.
Sampling clock error :
(4) Click the “stop” button, and measurement stops.
button.
event occurs and data will be added. Click the OK button to finish setting the conditions, and
returns to former screen.
are displayed.
It is conversion data set in the memory. This can be visually checked in a "memory image".
When the number of unoutput sampling in FIFO reaches this frequency, the event generates.
It is the number of samplings of output data to b e add e d du ring th e ev en t.
It means that the conversion speed is too fast and the driver processing is not in time when
converting at the internal clock.
The cycle of the clock is too fast when converting it at the external clock. Moreover, the cause by
noise etc. is also concerned.
62
AO-1604CI3-PCI
Page 70
5. About Software
When using the API-AIO(98/PC)
Accessing the Help File
(1) Click on the [Start] button on the Windows taskbar.
(2) From the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” – “Aio” –
“API-AIO HELP” to display help information.
AO-1604CI3-PCI
63
Page 71
5. About Software
Using Sample Programs
Sample programs have been prepared for specific basic applications.
To use 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 programs are stored 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” – “CONTEC API-PAC(W32)” – “Aio” – “SAMPLE…”.
(3) A sample program is invoked.
64
AO-1604CI3-PCI
Page 72
5. About Software
ple Programs - Examples
Sam
Analog input
- AI : Uses AioInp to convert an analog signal only once and display th e data.
- AIBack : Uses AioInpBack to perform memory-less board analog input.
- AIMemory : Uses AioInpBdMem to perform continuous conversion and AioReadBuf to
acquire data from board memory (an example of 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 perform continuous
- AISync : Sample that uses AioInpBdMem and AioDO to perform simultaneous sampling of
- 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 application that uses AioOpenEx and AioOut.
Digital input and output
- DIO : Uses AioDO and AioDI to perform digital input/output.
Counter
- Timer : Sample program using a timer. It uses the counter function to measure the lapse
- Counter : Sample program using a counter. It uses the counter function to count external
The following sample program in Visual Basic is available.
- ANALOG : Versatile sample program using AioInp, AioInpBack, AioInpBdMem, AioOut,
* Sample programs executable vary with the functions of boards in use.
conversion and AioReadBuf to acquire data at system timer events.
two memory-mounted boards.
of time.
pulses.
AioOutBack, AioDO, and AioDI.
AO-1604CI3-PCI
65
Page 73
5. About Software
Using the Utility Program
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 – “CONTEC API-PAC(W32)” – “AIO” –
“SAMPLE Analog”.
[Main screen]
Ai
oInp : Simple analog input
AioInpBack : Analog input for non
Memory-Board
AioInpBdMem : Analog input for Memory-Board
AioOut : Simple analog output
AioOutBack : Analog output in background
AioDi/AioDo : Digital input and output
log input]
[Ana
66
AO-1604CI3-PCI
Page 74
5. About Software
[
Analog output]
[Digital input and output]
AO-1604CI3-PCI
67
Page 75
5. About Software
Uninstalling the Driver Libraries
To uninstall API-PAC(W32), follow the procedure below.
(1) Click on the [Start] button on the Windows taskbar. From the Start Menu, select “Settings” –
“Control Panel”.
(2) Double-click on “Add/Remove Programs” in the Control Panel.
(3) If the API-AIO(WDM), select “CONTEC API-AIO(WDM) driver” and
“CONTEC API-AIO(WDM) VerX.XX (Development)” from the displayed application.
If the API-AIO(98/PC), select “CONTEC API-AIO(98/PC)xx VerX.XX (Development) and
“CONTEC API-AIO(98/PC)xx VerX.XX (Runtime)”
Click on the [Change/Remove] button. Follow the on-screen instructions to uninstall the function
libraries.
68
AO-1604CI3-PCI
Page 76
5. About Software
About Software for 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 information such as “Function
Reference”, “Sample Programs”, and “FAQs”. Use them for program development and
troubleshooting.
Driver Software Install Procedure
The Linux version for digital I/O driver, API-AIO(LNX), is supplied as a compressed file
/linux/aio/caioXXX.tgz on the bundled API-PAC(W32)CD-ROM. (Note: XXX represents the driver
version.)
Mount the CD-ROM as shown below, copy the 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 extracted 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
AO-1604CI3-PCI
69
Page 77
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.
Sample programs for each language are contained in the contec/caio/samples directory. For compiling
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 script.
70
AO-1604CI3-PCI
Page 78
6. About Hardware
6. About Hardware
This chapter provides hardware specifications and hardware-related supplementary information.
For detailed technical information
For further detailed technical information (“Technical Reference” including the information such as an
I/O map, configuration register, etc.), visit the Contec's web site (http://www.contec.com/support/) to
call for it.
AO-1604CI3-PCI
71
Page 79
6. About Hardware
Hardware specification
Table 6.1. Specification
Item
Analog Output
Isolated specification
Number of output channels
Output range Bipolar ±10V, Unipolar 0 - +10V
Absolute max. output current
Load register (Max.)
Output impedance
Resolution
Non-Linearity error *1
Conversion speed
Voltage output control relay AQY221N2SX (Matsushita Electric Works, Ltd.) or equivalent to it
Sampling clock Internal sampling clock : 20,000 - 1,073,741,824,000nsec (Can be set in 250n sec units)
Programmable timer
Setting frequency
Timer output signal
External trigger input
External trigger input signal
Status
I/O address 32 ports boundary
Interrupt level 1 point
Isolation voltage 500Vrms
Power consumption +5VDC 2400mA (Max.)
Operating condition 0 - 50ºC, 10 - 90%RH (No condensation)
Bus specification PCI (32bit, 33MHz, Universal key shapes supported *2)
External dimensions (mm) 176.41(L) x 105.68(H)
Used connector 37-pin D-SUB connector [F(Male) type]
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 actual temperature conditions.
*2 The board requires +5V power supply from the expansion slot (it does not work in a +3.3V environment).
Isolated independently
4ch
0 - 20mA (Jumper setting by channel)
±5mA (Voltage output) ±10V, 0 - +10V
(Current output)
500
or less (Voltage output)
10
16bit
±5LSB (±10V, 0 - +10V), ±15LSB (0 - 20mA)
sec (Max.)
20
External sampling clock : opto-coupler isolated input
(corresponding to current sink output)
500 - 1,073,741,824,000nsec (Can be set in 250n sec units)
Opto-coupler isolated open collector output (current sink type)
Opto-coupler isolated input (corresponding to sink output)
Trigger input, trigger input overrun
DCLC-J37SAF-20L9E [mfd.by JAE] equivalent to it
Board dimension
176 .41( L)
Specification
1 05.68 (H )
[mm]
The stan dard outside dimension (L) is th e d istance from the en d
of the board t o t he ou ter surfa ce of the s lot cover.
72
AO-1604CI3-PCI
Page 80
6. About Hardware
Block Diagram
Figure 6.1 is a circuit block diagram of this board.
Plus Common
External Trigger Input
Timer O utput
External Sampling Clock Input
Settling Busy Output
Minus Common
External
Tri gge r Inp ut
Control
Optocoupler
Optocoupler
Optocoupler
Optocoupler
Programmable
Timer
Control
PCI bus I/F
Sampling
Control
FIFO
Memory
Figure 6.1. Block Diagram
Optocoupler
DC/DC
Converter
Optocoupler
DC/DC
Converter
Optocoupler
DC/DC
Converter
Optocoupler
DC/DC
Converter
D/A
Converter
D/A
Converter
D/A
Converter
D/A
Converter
MOS FET
Relay
V/I Converter
MOS FET
Relay
V/I Converter
MOS FET
Relay
V/I Converter
MOS FET
Relay
V/I Converter
Vol ta ge Ou tpu t 3
Current Output 3
Analog Ground 3
Voltage Output 2
Current Output 2
CN1
Analog Ground 2
Voltage Output 1
Current Output 1
Analog Ground 1
Voltage Output 0
Current Output 0
Analog Ground 0
AO-1604CI3-PCI
73
Page 81
6. About Hardware
Timing of Sampling Control Signals
Signal spec of external sampling cl ock, external trigger input
Extternal Smapling
Clock Input
External Trigger Input
t
SFT
t
HFT
Figure 6.2. Signal spec of external sampling clock, external trigger input
Table 6.2. Details on each part
Parameter SymbolMin.
Input circuit OFFSetup time of ON tSFT 2.5 sec
Input circuit OFFHold time of ON tHFT 2.5 sec
Input circuit ONSetup time of OFF tSRT 2.5 sec
Input circuit ONHold time of OFF tHRT 2.5 sec
Timing of external trigger input and input status
t
DELAY
External Trigger Input
External trigger input status
Figure 6.3. Timing of external trigger input and input status
Table 6.3. Details on each part
Symbol Min.
Delay time tDELAY 5 sec
t
SRT
t
HRT
74
AO-1604CI3-PCI
Page 82
6. About Hardware
Timing of external sampling clock and “Settling Busy Output”
DI
t
External Sampling
Clock Input
DA conversion operating
tWS
Settling Busy Output
DO
t
DO
t
Figure 6.4. Timing of external sampling clock and “Settling Busy Output”
Table 6.4. Details on each part
Input delay me ti
Settling time
Output delay time
Symbol
tDI 5
tWS---
Min. Max.
sec ---
c se
se---
2.5c tDO
Timing of “Timer Output”
t
PW
Programmable timer count up
Timer Output
Figure 6.5. Timing of “Timer Output”
Table 6.5. Details on each part
S
Pulse width when Count up occurstPW --- 2.5 sec
Output delay time 1 tDO1 2.c5 se---
Output delay time 2 tDO2 2.5 sec---
Output pulse width tPWO--- ---
* External power supply : 24V, Load g : 25ºC on ting th 510
inwhen c nece
t
DO1
t
PWO
ymbolMin. Average
Reference
value
---
---
---
3
sec
t
DO2
*
AO-1604CI3-PCI
75
Page 83
6. About Hardware
About Calibration
This board is calibrated before shipment.
Contact your retailer if the board does not provide its prescribed performance.
Difference from AO-1604CI2-PCI and
DAI16-4C(PCI)
This product is a successor of the previous model AO-1604CI2-PCI and DAI16-4C(PCI).
So you can use the same operating procedures as AO-1604CI2-PCI and DAI16-4C(PCI).
AO-1604CI3-PCI AO-1604CI2-PCI DAI16-4C(PCI)
About the display
of the mounted
board name
Environmental
support
Appearance
DAI16-4C(PCI) *1 DAI16-4C(PCI) *1 DAI16-4C(PCI)
Product for RoHS
instruction
Product for RoHS
instruction
Lead decrease product
External
ions (m
dimens
*1uct is installed, the displayed board name is “DAI16-4C(PCI)".
: Even if this prod
There is no problem in operation even if the board name is displayed as “DAI16-4C(
3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan
Japanese http://www.contec.co.jp/
English http://www.contec.com/
Chinese http://www.contec.com.cn/
No part of this document may be copied or reproduced in any form by any means without prior written
consent of CONTEC CO., LTD. [02032014]
[02032014] Management No. NA03044
Parts No. LYRA501
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.