Contec DIO-96D-LPE User Manual

PC-HELPER
Bi-Directional Digital I/O Board for PCI Express Low Profile
DIO-96D-LPE
User’s Guide

Check Your Package

Thank you for purchasing the CONTEC product. The product consists of the items listed below. Check, with the following l ist, that yo ur package is c omplete. If y ou discover dam aged or m issing item s,
contact your retailer.
Product Configuration List
- Board [DIO-96D-LPE] …1
- First step guide …1
- CD-ROM *1 [API-PAC(W32)] …1
- Standard size bracket …1 *1 The CD-ROM contains the driver software and User’s Guide (this guide)
Board
DIO-96D-LPE
First step guide
CD-ROM
[API-PAC(W32)]
Standard-sized bracket
i

Copyright

Copyright 2008 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 nor for results obtained by the user as a result of using this product.

Trademarks

MS, Microsoft and Windows are trademarks of Microsoft Corporation. Other brand and product names are trademarks of their respective holder.
DIO-96D-LPE
ii

Table of Contents

Check Your Packag e............................................................................................................................ i
Copyright ............................................................................................................................................ ii
Trademarks .........................................................................................................................................ii
Table of Con tents...............................................................................................................................ii i
1. BEFORE USING THE PRODUCT 1
About the Bo ard.................................................................................................................................. 1
Features........................................................................................................................................ 1
Support Softw ar e ......................................................................................................................... 2
Cable & Connect o r (Op t ion ) ...................................................................................................... 3
Accessories ( Op ti on ) .................................................................................................................. 3
Customer Supp o rt ............................................................................................................................... 4
Web Site....................................................................................................................................... 4
Limited Thre e- Y ea rs Wa rr a n ty .......................................................................................................... 4
How to Obtain Serv i ce ....................................................................................................................... 4
Liability............................................................................................................................................... 4
Safety Precau t io ns .............................................................................................................................. 5
Safety Infor mat i o n ....................................................................................................................... 5
Handling Pre ca u tio ns................................................................................................................... 6
Environment................................................................................................................................. 7
Inspection..................................................................................................................................... 7
Storage ......................................................................................................................................... 7
Disposal ....................................................................................................................................... 7
2. SETUP 9
What is Setup? .................................................................................................................................... 9
Using the Board und er Wi nd o ws Us ing th e Dr iv er Li b ra ry AP I- P AC( W 32 ) ............................ 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 Installi ng t he Software .......................................................................................................... 11
About the driv e r to b e u s ed ....................................................................................................... 11
Starting the I ns t all P rog r a m....................................................................................................... 12
When Using API -D IO ( WD M)................................................................................................... 13
When Using API -D IO (9 8/ P C )................................................................................................... 14
Step 2 Setting th e H a rd wa r e ............................................................................................................. 16
Replacing the B ra ck e t................................................................................................................ 16
Parts of the Bo ard an d Fa c to ry Defaults ................................................................................... 17
Setting the Bo a rd ID .................................................................................................................. 17
Plugging th e Board .................................................................................................................... 18
DIO-96D-LPE
iii
Step 3 Installi ng t h e H a rd wa re .........................................................................................................19
Turning on the PC...................................................................................................................... 19
When Using API -D IO ( WD M)................................................................................................... 19
When Using API -D IO (9 8/ P C )................................................................................................... 22
Step 4 Initial iz in g th e Sof t wa re ........................................................................................................ 25
When Using API -D IO ( WD M)................................................................................................... 25
When Using API -D IO (9 8/ P C )................................................................................................... 27
Updating the S e tt in gs................................................................................................................. 27
Step 5 Checkin g Operations w i th th e Dia g no si s P rog r a m ............................................................... 28
What is the Di agn o sis P ro g ra m? ............................................................................................... 28
Check Method ............................................................................................................................28
Using the Di agnosis Prog ram....................................................................................................29
Setup Troubl esh o ot in g...................................................................................................................... 33
Symptoms and A cti on s .............................................................................................................. 33
If your proble m c an n ot b e reso lv ed...........................................................................................3 3
3. EXTERNAL CONNECTION 35
Using the On-board Conn e c t ors ....................................................................................................... 35
Connecting a Device to a Con n ec to r ......................................................................................... 35
Connector Pin As si gnment ........................................................................................................ 36
Relationships be t we en AP I-P AC ( W32 ) Log ic a l Po rt s/B i ts and Co nn e cto r Sig na l P in s..........38
Connecting I/ O Sig na l s..................................................................................................................... 39
I/O Circuit .................................................................................................................................. 39
Example Conn ect i on 1 (Us in g PC A6 8 P S-* * P)......................................................................... 40
Example Conn ect i on 2 (Us in g D IO - 68 M/ 96 F ) ......................................................................... 40
Surge Protect io n................................................................................................................................ 41
4. FUNCTION 43
Data I/O Func tio n ............................................................................................................................. 43
I/O setup of the port...................................................................................................................4 3
Data I/O...................................................................................................................................... 45
Digital Filter Function ...................................................................................................................... 46
Digital Filter Function Principle................................................................................................ 46
Set Digital F il te r T i me ............................................................................................................... 46
Interrupt Con t ro l Fu n ct io n................................................................................................................ 47
Disabling/en ab l in g I nt e rr up ts ....................................................................................................47
Selecting the edg e of in pu t s ign als , at wh ic h to gen e ra t e an in ter ru p t ...................................... 47
Clearing the Inte rru pt St atu s an d In t e rru p t S ig n al .................................................................... 47
DIO-96D-LPE
iv
5. ABOUT SOFTWARE 49
CD-ROM Directo r y S t ru c tu re .......................................................................................................... 49
About Softw a r e for Windows..................................................................................................... ...... 50
Accessing th e Help File............................................................................................................. 50
Using Sample Programs ............................................................................................................ 50
Uninstalling the D riv e r L ib r ar ies .............................................................................................. 52
About Softw a r e for Linux ....................................................................................................... .......... 55
Driver Softwa re In st al l P roc edu r e ............................................................................................. 55
Accessing th e Help File............................................................................................................. 56
Using Sample Programs ............................................................................................................ 56
Uninstalling the driver............................................................................................................... 56
6. ABOUT HARDWARE 57
For detailed t e chn i cal in fo r ma tio n ................................................................................................... 57
Hardware spe cification ..................................................................................................................... 57
Block Diagra m.................................................................................................................................. 58
Difference f rom DIO-96 D2-LPCI.................................................................................................. .. 59
DIO-96D-LPE
v
DIO-96D-LPE
vi
1. Before Using the Product

1. Before Using the Product

This chapter provides information you should know before using the product.

About the Board

This product is a PCI Express bus-compliant interface board that extends the input/output function of bi-directional digital signal. This board has up to 96 unisolated LVTTL-level input/output channels that is powered by the equivalence to the mode 0 of i8255 chips, and you can use up to 96 channels of the input signals as interrupt inputs. You can select the input/output by the application software in eight signals units (in four signals unit f or some inputs/outputs). Additionally, the digital filter function is equipped with this product. Windows/Linux driver is bundled with this product.
Using the dedicated library VI-DAQ makes it possible to create each application for LabVIEW.

Features

- This board can be used to input/output 96 points bi-directional digital corresponding to to the equivalence to the i8255 mode 0.
This board has up to 96 unisolated LVTTL-level input/output channels whose response speed is
200μsec that is powered by to the equivalence to the mode 0 of i8255 device for general-purpose. You can select the input/outp ut by the ap plication software i n eight sig nals unit s (in four signals unit for some inputs/outputs).
- You can use up to 96channels of the input signals as interrupt events.
You can use up to 96channels of the input signals as interrupt events and also disable or enable the
interrupt in bit units and select the edge of signals, at which to generate an interrupt.
- This product has a digital filter function to prevent wrong recognition of in put signa ls fr om carryi ng
noise or a chattering.
This product has a digital filter function to prevent wrong recognition of input signals by noise or chattering is provided. All input terminals can be added a digital filter, and the setting can be performed 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.
- Support for both of Low Profile and standard size slots
Support for both of Low Profile and standard size slots (interchangeable with a bundled bracket).
- Functions and connectors are compatible with PCI compatible board DIO-96D2-LPCI.
The functions same with PCI com patible boar d DI O-9 6D2- LPCI are pr ovi de d. I n a dditi o n, a s t here
is compatibility in terms of connector shape and pin assignments, it is easy to migrate from the existing system.
- 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.
DIO-96D-LPE
1
1. Before Using the Product

Support Software

You should use CONTEC support software accor d ing to your purpose and development environment. Windows version of digital I/O driver
API-DIO(98/PC) / API-DIO(WDM)
[Stored on the bundled CD-ROM driver library API-PAC(W32)]
The API-DIO(98/PC) is the Windows version driver library software that provides products in the form of Win32 API functions (DLL). Various sample programms such as Visual Basic and Visual C++, etc and diagnostic program useful for checking operation is provided.
< Operating environment > OS Windows 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.
Linux version of digital I/O driver
API-DIO(LNX)
[Stored on the bundled CD-ROM driver library API-PAC(W32)]
The API-DIO(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 availabl e 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
(Available for downloading (free of charge) from
VI-DAQ
the CONTEC web site.)
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 to use various devices without complicated settings. See http://www.contec.com/vidaq/ for details and download of VI-DAQ.
DIO-96D-LPE
2
1. Before Using the Product

Cable & Connector (Option)

Cable with 68-Pin D-sub Connector at either Ends (Mold Type) : PCB68PS-0.5P (0.5m) : PCB68PS-1.5P (1.5m) Shield Cable with One 68-Pin Connector : PCA68PS-0.5P (0.5m) : PCA68PS-1.5P (1.5m) Shielded Cable for CardBusDigital I/O Card : DIO-68M/96F (0.5m) * If using both the CNA and CNB connectors, two cable sets are required.

Accessories (Option)

Screw Terminal Unit (M3 x 68P) : EPD-68A *1*3 Screw Terminal Unit (M3 x 96P) : EPD-96A *2*3 Screw Terminal Unit (M3.5 x 96P) : EPD-96 *2 Terminal Unit for Cables (M3 x 96P) : DTP-64A *2 *1 PCB68PS-0.5P or PCB68PS-1.5P optional cable is required separately. *2 DIO-68M/96F optional cable is required separately. *3 “Spring-up” type terminal is used to prevent terminal screws from falling off. *4 If using both the CNA and CNB connectors, two each of the accessories and cable set s are required.
* Check the CONTEC’s Web site for more information on these options.
DIO-96D-LPE
3
1. Before Using the Product

Customer Support

CONTEC provides the following s upport services fo r 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 a nd diff erenti al files as we ll as sample pr ograms available i n
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 char ge only w hen thi s device is ret urned fr eight pr epaid with a c opy of the origi nal 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 applicabl e if the device has been tamper ed with or damaged t hrough 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 s uch defec t or consequence s that arise from inexperienced usage, misuse, or malfunction of this device.
DIO-96D-LPE
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 u sing the foll owing sym bols to prevent a ccidents res ulting in injury or death and the destruc tion of equi pment and res ources. Under stand the mean ings of these la bels 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.
DIO-96D-LPE
5
1. Before Using the Product

Handling Precautions

DANGER
Do not use the product where it is exp osed t o flamm able or c orros ive ga s. Doin g so m ay result in an
explosion, fire, electric shock, or failure.
CAUTION
- There is a switch on the board that needs to be set in advance. Be sure to check these before installing the board.
- Only set the switche s and ju mpe rs on th e bo a rd to th e sp ec if ied set ting s . Otherwise, the board may malfunction, overheat, or cause a failure.
- Do not strike or bend the board. Doing so could damage the board. Otherwise, the board may malfunction, overheat, cause a failure or breakage.
- Do not touch the board's metal plated terminals (edge connector) with your hands. Otherwise, the board may malfunction, overheat, or cause a failure. If the terminals are touched by someone's hands, clean the terminals with industrial alcohol.
- Do not install or remove the board to or from the 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 t hat the pe rson al com puter or t he I/O e xpan sion unit pow er 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.
- 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.
DIO-96D-LPE
6
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 - 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 pa cking 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.
DIO-96D-LPE
7
1. Before Using the Product
DIO-96D-LPE
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 user’s guide for that software. See also the following parts of this u se r’s gu i de as requ ir ed.
This chapter Step 2 Setting the Hardware This chapter Step 3 Installing the Hardware Chapter 3 External Connection Chapter 6 About Hardware
DIO-96D-LPE
9
2. Setup

Using the Board under an OS Other than Windows

For using the board under Linux, see the following parts of this user’s guide.
This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 5 About Software Chapter 6 About Hardware
For using the board under an OS such as MS-DOS other than Windows, see the following parts of this user’s guide.
This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 6 About Hardware
DIO-96D-LPE
10
2. Setup

Step 1 Installing the Software

This section describes how to install the Driver libraries. Before installing the hardware on your PC, install the Driver libraries from the bundled API-PAC(W32) CD-ROM. The following description assumes the operating system as Windows XP. Although some user
interfaces are different depending on the OS used, the basic procedure is the same.

About the driver to be used

Two digital I/O drivers are available : API-DIO(WDM) and API-DIO(98/PC). API-DIO(WDM) is a new driver to perform digital I/O under Windows. API-DIO(WDM) was developed to improve the conventional product version of API-DIO(98 /PC) in the
ease of use and functionality. It is advisable to use API-DIO(WDM) for you to use an digital I/O device. API-DIO(WDM) will
support new OS and devices in the future but will not support Windows NT 4.0, Windows 95, ISA bus. Use API-DIO(98/PC) if your operating environment contains such an unsupported piece of software or
hardware. Check the following sele ct ion gu ide to eas il y se le ct th e driv e r to be us ed.
OS to be used
Windows Vista Windows XP/Windows 2000
PCI bus, PC Card
Use the digital board for
the first time?
Ye s
Language to be used
VC.Net, VB.Net, VC#.Net VC6, VB6
API-DIO(WDM)
DIO-96D-LPE
Device type
Windows Me/98/95 Windows NT 4.0
ISA Bus
Already used.
The existing system
upgrade using
API-DIO(98/PC)?
No
VC2, 4, 5, VB4, 5, Delphi, C++Builder
Ye s
API-DIO(98/PC)
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.
* When using the Windows Vista, driver is automatically installed.
CAUTION
Before installing the software in Windows Vista, XP, Server 2003, 2000 and NT, log in as a user
with administrator privileges.
DIO-96D-LPE
12
2. Setup

When Using API-DIO(WDM)

Selecting API-DIO(WDM) (1)
The following dialog box appears to select “Driver to install” and “Install option”, “Usage of driver library”.
(2)
Select the "Advanced Digital I/O driver".
(3)
Click on the [Install] button.
* Clicking the [API-DIO] button displays d etailed information about API-DIO(WDM) and
API-DIO(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.
DIO-96D-LPE
13
2. Setup

When U sin g API-DIO(98/PC)

Selecting API-DIO(98/PC) (1)
The following dialog box appears to select “Driver to install” and “Install option”, “Usage of driver library”.
(2)
Select “Classic Digital I/O driver”.
(3)
Click on the [Install] button.
* Clicking on the [API-DIO] button displays detailed information on API-DIO(WDM),
API-DIO(98/PC).
DIO-96D-LPE
14
Loading...
+ 46 hidden pages