Contec AI-1204Z-PCI User Manual

PC-HELPER
10MSPS 12-bit Analog Input Board for PCI
AI-1204Z-PCI
User’s Guide
CONTEC CO.,LTD.

Check Your Package

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 [AI-1204Z-PCI] …1
- First step guide …1
- CD-ROM *1 [API-PAC(W32)] …1
- Synchronization control cable (10cm) …1 *1 The CD-ROM contains the driver software and User’s Guide (this guide)
Board
Synchronous control cable
First step guide
CD-ROM
[API-PAC(W32)]
i

Copyright

Copyright 2007 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.
AI-1204Z-PCI
ii

Table of Contents

Check Your P ackage................................................................................................................................ i
Copyright.................................................................................................................................................ii
Trademarks ..............................................................................................................................................ii
Table of Contents ...................................................................................................................................iii
1. BEFORE USING THE PRODUCT 1
About the Bo ard ......................................................................................................................................1
Features ............................................................................................................................................ 1
Support Software.............................................................................................................................. 3
Cable & Connector (Opt ion) ........................................................................................................3
Accessories (Option).....................................................................................................................3
Customer Support.................................................................................................................................... 4
Web Site ...........................................................................................................................................4
Limited Th ree-Years Warranty............................................................................................................... 4
How to Obta in Service............................................................................................................................ 4
Liability ...................................................................................................................................................4
Safety Precautions...................................................................................................................................5
Safety Inf ormation ...........................................................................................................................5
Handling Precautions.......................................................................................................................6
Environment.....................................................................................................................................7
Inspection .........................................................................................................................................7
Storage.............................................................................................................................................. 7
Disposal ............................................................................................................................................7
2. SETUP 9
What is Set u p ?......................................................................................................................................... 9
Using the Board under Windows Using the Driver Library API-PAC(W32)............................... 9
Using the Board under Windows Using Software Other than the Driver Library
API-PAC(W32)................................................................................................................................9
Using the Board under an OS Other than Windows..................................................................... 10
Step 1 Inst alling the So ftware...............................................................................................................11
About the Dr iver ............................................................................................................................11
Starting t he Install P r o gram...........................................................................................................12
Step 2 Setting the Hardware .................................................................................................................14
Parts of the Board and Factory Defa ults .......................................................................................14
Setting the Board ID ......................................................................................................................15
Switch Setting for Termination R esistor.......................................................................................15
Plugging the Board ........................................................................................................................16
Step 3 Inst alling the Hardware .............................................................................................................17
Turning on the PC..........................................................................................................................17
iii
Whe n U s i n g t he A P I - A I O( W D M ).....................................................................................................17
Step 4 Initializing the Software.............................................................................................................19
Step 5 Checking Operations with th e Diagnosis P r ogram...................................................................21
What is the Diagnosis Program?....................................................................................................21
Check Meth o d.................................................................................................................................21
Using the Diagnosis P rogram for Use of API-AIO (WDM) .........................................................22
Setup Troubleshootin g ..........................................................................................................................25
Symptoms a nd Actions...................................................................................................................25
If your pro b lem cannot be resolved ...............................................................................................25
3. EXTERNAL CONNECTION 27
How to conn ect the connectors .............................................................................................................27
Connector shape .............................................................................................................................27
Connector P in Assignmen t.............................................................................................................28
Analog Inp ut Signal Con nection...........................................................................................................30
Single-ended Input .........................................................................................................................30
Digital I/ O signals and Control signals Connec tion .............................................................................31
Synchroni zation Cont r o l Connector s....................................................................................................32
SC Connect ors................................................................................................................................32
Connecting the SC Conn ectors (CN3, CN4).................................................................................33
4. FUNCTIONS 35
Analog Inp ut Function...........................................................................................................................35
1. Setting the Conversi o n Conditions............................................................................................36
2. Starting/Stopping Operation ......................................................................................................45
3. Monitor ing the Status and Acqui r ing Data................................................................................46
4.Reset.............................................................................................................................................50
Digital In p ut Function ...........................................................................................................................51
Digital Ou t p ut Function.........................................................................................................................52
Event Contr oller Funct i on.....................................................................................................................53
5. ABOUT SOFTWARE 55
CD-ROM Directory Stru c ture...............................................................................................................55
About Soft ware for Wind ows ...............................................................................................................56
Accessing the Help File..................................................................................................................56
Using Sample Progra ms .................................................................................................................57
Usage of Utility Program ...............................................................................................................59
Uninstall ing the Drive r Libraries...................................................................................................62
6. ABOUT HARDWARE 65
Hardware specification......................................................................................................... .................65
AI-1204Z-PCI
iv
Block Diagram ......................................................................................................................................67
Timing of Sampling Control Signa ls....................................................................................................68
Control Signal Timings for Analo g Input..................................................................................... 68
About Cali bration..................................................................................................................................70
v
AI-1204Z-PCI
vi

1. Before Using the Product

1. Before Using the Product About the Board
This product is a PCI bus-compliant interface board that expands the input function of a PC for analog signals.
Maximum conversion speed is 10MSPS (100nsec), with simultaneous sampling of four channels at a same time. The large (32M data) buffer memory and bus master transfer function allow continuous data acquisition to be performed at high speed for a long period.
Sampling can be started and stopped by software, conversion data comparison (level comparison, in-range comparison, out-of-range co mparison), ex ternal trigger, or event controller output.
Uses a BNC connector that can connect directly to the signal source. Also features four digital input and output ports respectively (requires the optional DT-E3 cable). You can use the driver library (API-PAC(W32)) supplied with the board to write Windows application
programs in any programming language (such as Visual Basic, Visual C++, etc.) that supports the calling of Win32 API functions.

Features

- Maximum conversion speed is 10MSPS (100nsec), with simultaneous sampling of 4channels at a time
The maximum conversion speed is 10MSPS (100nsec) and 4channels can be sampled simultaneously. The range for each channel can be set independently by software to match the level of the input signal source. (Input range : ±10V, ±5V, ±2.5V, ±1.25V or 0 - +10V, 0 - +5V, 0 - +2.5V) Also features digital inputs and outputs (four LVTTL level input and output po rts respectiv ely). (requires the optional DT-E3 cable)
- Sampling can be controlled by software, conversion data comparison, external trigger, event controller output, and similar start and stop conditions
Sampling can be setup to be started and stopped by software, conversion data comparison, external trigger, or event controller output. Control of sampling start and stop is completely independent and a separate setting is provided for each. It is also possible to specify that sampling stop after a specified number of samples.
The conversion data comparison function can perform level, in-range, and out-of-range comparisons on the conversion data.
- Incorporates a synchronization control connector for synchronized operation
A synchronization control connector is provided for synchronized control of up to 16 boards. This means the number of channels can be increased simply by adding boards. It is also easy to synchronize operation with other CONTEC boards that have a synchronization control connector.
1
1. Before Using the Product
- Large (32M data) buffer memory and bus master transfer function allow continuous data acquisition at high speed for a long period.
The large (32M data) buffer memory and bus master transfer function allow continuous data acquisition to be performed at high speed for a long period. The bus master transfer function allows large volumes of data to be transferred between the board and PC without loading the CPU.
- BNC connector used for analog input pin
The BNC connector used for the analog input has a characteristic impedance of 50Ω and is of a type commonly used for high speed analog signal. This makes it easy to connect to other devices with a BNC connector.
- Termination resistor selection function
A 50Ω termination resistor can be set to minimize the distortion caused by the reflection of high-speed input signals. The input range cannot be set to ±10V or 0 to +10V when the termination resistor is used.
- Digital filter function included to prevent misdetection due to chattering on external input signals
A digital filter is included to prevent misdetection due to chattering on the digital input signals.
- Software-based calibration function
Calibration of analog input can be all performed by software. Apart from the adjustment information prepared before shipment, additional adjustment information can be stored according to the use environment.
- Windows compatible driver libraries are attached.
Using the attached driver library API-PAC(W32) makes it possible to create applications of Window. In addition, a diagnostic program by which the operations of hardware can be checked is provided.
AI-1204Z-PCI
2
1. Before Using the Product

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)
[Stored on the bundled CD-ROM driver library API-PAC(W32)]
The API-AIO(WDM) is the Windows version driver library software that provides products in the form of Win32 API functions (DLL). Various sample programs such as Visual Basic and Visual C++, etc and diagnostic program useful for checking operation is provided.
< Operating environment > OS Windows 7, Vista, XP, Server 2003, 2000 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.

Cable & Connector (Option)

< For analog I/O > BNC Cable : BNC-B100 (1m) : BNC-B200 (2m) : BNC-B300 (3m) < For digital I/O > Conversion Cable (16-Pin to 15-Pin) with Bracket (150mm) : DT-E3 Flat Cable with 1 Sided 16-Pin Header Connector (1.5m) : DT/E1 Flat Cable with 15-Pin D-SUB Connector at One End : PCA15P-1.5 (1.5m) *1 Flat Cable with 15-Pin D-SUB Connectors at either Ends : PCB15P-1.5 (1.5m) *1*2 Shielded Cable with Connector on both sides for 15-pin D-Type Connector
: PCB15PS-0.5P (0.5m) *1*2 Shielded Cable with Connector on both sides for 15-pin D-Type Connector
: PCB15PS-1.5P (1.5m) *1*2
*1 DT-E3 is required. *2 It is required only when FTP-15 is used.

Accessories (Option)

General Purpose Terminal (M3 x 15P) : FTP-15 *1
*1 DT-E3 and PCB15P-1.5 optional cable is required separately.
* Check the CONTEC’s Web site for more information on these options.
3
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 products. 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.
AI-1204Z-PCI
4
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.
5
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 ju mpers on this product that need to be set in advance.
Be sure to check these before installing this product.
- Only set the switches and ju mpers on this product to the specified settings.
Otherwise, this product may malfunction, overheat, or cause a failure.
- Do not strike or bend 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.
- As this product contains components that are designed to operate at high temperature, please do not
touch this product when it is in use. The 50Ω termination resistor in particular can become hot if it is used.
- Do not install this product to the expansion slot and do not plug o r unplug the cables which are
connected to this product while the PC or expansion unit is still turned on. Otherwise, this product may malfunction, overheat, or cause a failure. Be sure that the personal computer power is turned off.
- Do not touch the external connector (BNC connector) when the power is on.
Otherwise this may malfunction, cause a failure due to static electricity.
- Make sure that your PC or expansion unit can supply ample power to all the products installed.
Insufficiently energized products 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 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.
AI-1204Z-PCI
6
1. Before Using the Product

Environment

Use this product in the following environment. If used in an unauthorized environment, the product may overheat, malfunction, or cause a failure.
Operating temperature
0 - 50°C
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 this product 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.
7
1. Before Using the Product
AI-1204Z-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 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
9
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 6 About Hardware
AI-1204Z-PCI
10
2. Setup

Step 1 Installing the Software

This section describes how to install the API function 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

There are the two drivers "API-AIO(WDM)" and "API-AIO(98/PC)" among the analog input/output drivers.
API-AIO(WDM) is a new driver to perform analog input and output under Windows. It was developed aiming at "more easily use and more convenient" "more high performance"
corresponding to the product version of API-AIO(98/PC) so far. Please use the API-AIO(WDM) with this board. API-AIO(98/PC) is not supported.
11
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.
CAUTION
Before installing the software in Windows 7, Vista, XP, Server 2003, or 2000, log in as a user with
administrator privileges.
AI-1204Z-PCI
12
2. Setup
Select API-AIO(WDM) (1)
The following dialog box appears to select “Driver to install” and “Install option”, “Usage of driver library”.
(2)
Select the "High Functionality WDM Analog 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 the installation is complete.
You have now finished installing the software.
13
2. Setup

Step 2 Setting the Hardware

This section describes how to set this product and plug it on your PC. This product has some switches to be preset.
Check the on-board switches before plugging this product into an expansion slot. This product can be set up even with the factory defaults untouched. You can change board settings
later.

Parts of the Board and Factory Defaults

Figure 2.1. shows the names of major parts on the board. Note that the switches and jumpers setting shown below is the factory default.
AI-1204Z-PCI
SW1
SW2
SW3
SW4
Interface connector (CN1)
Figure 2.1. Part Names
CN3
CN2
Termination registor switch (SW1 - 4)
SW1
SW2
SW3
SW4
CN4
BOARD ID
SW5
Board ID Setting switch (SW5)
Synchronization control cable (CN3, CN4)
Connector for digital I/O signal, control signal (CN2)
CN3
CN2
BOARD ID
8
7
6
5
4
3
2
1
SW5
CN4
9
A
B
C
D
E
F
0
AI-1204Z-PCI
14
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 SW5 knob to set the board ID as
shown below.
BOARD ID
8
9
A
7
6
B
5
C
4
D
3
E
2
F
0
1
Factory setting:
SW5
(Board ID = 0)
Figure 2.2. Board ID Settings (SW5)

Switch Setting for Termination Resistor

The termination resistor setting switch is used to insert the termination resistor. Set up the termination resistor if suitable for the device to which you are connecting. This product has internal 50Ω (±1%) termination resistors. SW4 sets the resistor for channel 0, SW3 for channel 1, SW2 for channel 2, and SW1 for channel 3.
CAUTION
- Do not change the switch setting while the signal source is connected. Changing the setting may damage this product or connected signal source.
- Th e in pu t cu rrent increases when the 50Ω termination resistor is inserted. Check the output current of the input signal source if connecting the termination resistor. Inappropriate use of the termination resistor may damage the input signal source.
Termination resistor setting If you want to set a termination resistor, set the switch corresponding to the desired channel to the
connector side.
Termination resistor 50Ω setting
[Enabled]
SW1
SW2
SW3
SW4
Termination resistor 50Ω setting
[Disabled] <factory default>
SW1
SW2
SW3
SW4
Figure 2.3. Termination resistor setting
15
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 scre w . (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 bu s 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.
AI-1204Z-PCI
16
2. Setup

Step 3 Installing the Hardware

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.

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) When the " Found New Hardware Wizard" opens, select "Install the software automatically
[Recommended]" and then click the "Next" button.
* The wizard may not appear for some OS versions and instead the installation will start
automatically. In this case, proceed to the software initial setup step.
17
Loading...
+ 54 hidden pages