ADLINK Technology NuDAQ PCI-9812/10 User manual

Type
User manual
NuDAQ
PCI-9812/10
20MHz Simultaneous 4-CH
Analog Input Card
Users’ Guide
@Copyright 1997~2000 ADLink Technology Inc.
All Rights Reserved.
Manual Rev. 2.24: April 10, 2000
The information in this document is subject to change without prior
notice in order to improve reliability, design and function and does
not represent a commitment on the part of the manufacturer.
In no event will the manufacturer be liable for direct, indirect,
special, incidental, or consequential damages arising out of the use
or inability to use the product or documentation, even if advised of
the possibility of such damages.
This document contains proprietary information protected by
copyright. All rights are reserved. No part of this manual may be
reproduced by any mechanical, electronic, or other means in any
form without prior written permission of the manufacturer.
Trademarks
NuDAQ, PCI-9812, DAQBench, PCIS-DASK are registered
trademarks of ADLink Technology Inc,
Other product names mentioned herein are used for identification
purposes only and may be trademarks and/or registered
trademarks of their respective companies.
Getting service from ADLink
Customer Satisfaction is always the most important thing for
ADLink Tech Inc. If you need any help or service, please contact us
and get it.
ADLink Technology Inc.
Web Site http://www.adlink.com.tw
Sales & Service [email protected]
Technical NuDAQ [email protected]
Support NuDAM [email protected]
NuIPC nuipc@adlink.com.tw
TEL +886-2-82265877 FAX +886-2-82265717
Address 9F, No. 166, Jian Yi Road, Chungho City, Taipei, 235 Taiwan, R.O.C.
Please inform or FAX us of your detailed information for a prompt,
satisfactory and constant service.
Detailed Company Information
Company/Organization
Contact Person
E-mail Address
Address
Country
TEL FAX
Web Site
Questions
Product Model
¨OS :
¨Computer Brand :
Environment to Use
¨M/B : ¨CPU :
¨Chipset : ¨Bios :
¨Video Card :
¨Network Interface Card :
¨Other :
Challenge Description
Suggestions for ADLink
Table of Contents
i
CONTENTS
How to Use This Guide ..........................................iv
Chapter 1 Introduction...........................................1
1.1 Features..........................................................................1
1.2 Applications....................................................................2
1.3 Specifications.................................................................2
1.4 Software Support............................................................4
1.4.1 Programming Library..................................................................4
1.4.2 PCIS-LVIEW: LabVIEW
®
Driver.................................................4
1.4.3 PCIS-VEE: HP-VEE Driver..........................................................4
1.4.4 DAQBench
TM
: ActiveX Controls ...............................................5
1.4.5 DASYLab
TM
PRO...........................................................................5
Chapter 2 Installation............................................6
2.1 What You Have ...............................................................7
2.2 Unpacking.......................................................................7
2.3 PCI-9812/10's Layout ......................................................8
2.4 Hardware Installation......................................................9
2.5 Device Installation for Windows Systems.......................9
Chapter 3 Signal Connection..............................10
3.1 Connectors...................................................................10
3.2 Analog Input Impedance Setting...................................12
3.2.1 Analog Input ...............................................................................12
3.2.2 External Clock 0.........................................................................13
3.2.3 External Clock 1.........................................................................13
3.2.4 Digital Input.................................................................................13
Chapter 4 Registers Format................................14
4.1 I/O Port Address ...........................................................14
4.2 ADC Channel Enable Register......................................15
4.3 ADC Clock Divisor Register..........................................16
4.4 Trigger Mode Register..................................................17
4.5 Trigger Level Register ..................................................18
4.6 Trigger Source Register................................................19
4.7 Post Trigger Counter Register......................................20
4.8 FIFO Status Register.....................................................21
ii
Table of Contents
4.9 FIFO Control Register...................................................22
4.10 Acquisition Enable Register.........................................22
4.11 Clock Source Register..................................................23
4.12 High Level Programming..............................................24
4.13 Low Level Programming...............................................24
Chapter 5 Operation Theorem............................25
5.1 A/D Conversion Procedure ...........................................25
5.2 A/D Signal Source Control............................................26
5.3 A/D Trigger Source Control ..........................................27
5.3.1 Trigger Sources.........................................................................27
5.3.2 Simultaneous Trigger for Multiple Cards ...........................28
5.3.3 Trigger Modes............................................................................29
5.4 A/D Clock Source Control.............................................31
5.4.1 A/D Clock Sources....................................................................31
5.4.2 Internal Pacer Clock.................................................................31
5.4.3 External Pacer Clock................................................................31
5.4.4 Multiple Cards Operation........................................................32
5.5 A/D Data Transfer .........................................................33
5.5.1 AD Data Transfer.......................................................................33
5.5.2 Simultaneous Sampling of 4 AD Channels ........................33
5.5.3 Total Data Throughput.............................................................34
5.5.4 Maximum Acquiring Data Length .........................................34
5.5.5 Bus-mastering Data Transfer.................................................34
5.5.6 Host Memory Operation..........................................................35
5.5.7 Summary.....................................................................................36
5.6 AD Data Format............................................................36
Chapter 6 C/C++ Library.......................................38
5.1 Libraries Installation....................................................38
5.2 Programming Guide......................................................39
5.2.1 Naming Convention..................................................................39
5.2.2 Data Types..................................................................................39
6.3 _9812_Initial..................................................................40
6.4 _9812_Close .................................................................41
6.5 _9812_AD_DMA_Start...................................................41
6.6 _9812_AD_DMA_Status................................................43
6.7 _9812_AD_DMA_Stop...................................................44
6.8 _9812_Set_Clk_Src .......................................................44
6.9 _9812_Set_Clk_Rate .....................................................45
6.10 _9812_Set_Trig .............................................................46
6.11 W_9812_Alloc_DMA_Mem ............................................48
6.12 W_9812_Free_DMA_Mem .............................................50
Table of Contents
iii
6.13 W_9812_Get_Sample....................................................50
Chapter 7 Calibration...........................................51
7.1 What you need..............................................................51
7.2 VR Assignment.............................................................52
7.3 A/D Calibration..............................................................52
7.3.1 AD Calibration for Channel 0 .................................................52
7.3.2 AD Calibration for Channel 1,2,3...........................................52
Chapter 8 Software Utility...................................55
8.1 Running 9812util.exe ....................................................56
8.2 System Configuration...................................................57
8.3 Calibration....................................................................58
8.4 Functional Testing........................................................60
Product Warranty/Service.....................................62
iv
How to Use thie Guide
How to Use This Guide
This manual is designed to help you use the PCI-9812/10. The
manual describes how to modify various settings on the PCI-
9812/10 card to meet your requirements. It is divided into eight
chapters:
Chapter 1, "Introduction", gives an overview of the product
features, applications, and specifications.
Chapter 2, "Installation", describes how to install the PCI-9812/10.
In addition, the layout of PCI-9812/10 is shown.
Chapter 3, "Signal Connection", describes the
connectors' pin assignment and how to connect the outside signal
and devices with the PCI-9812/10.
Chapter 4, "Registers Structure & Format", describes the details
of register format and structure of the PCI-9812/10, this information
is very important for the programmers who want to control the
hardware by low-level programming.
Chapter 5, "Operation Theorem", describes how to operate the
PCI-9812/10. The A/D functions are introduced. Also, some
programming concepts are specified.
Chapter 6, " C/C++ Software Library", describes high-level
programming interface in C/C++ language. It helps programmer to
control PCI-9812/10 in high-level language style.
Chapter 7, "Calibration", describes how to calibrate the PCI-
9812/10 for accurate measurement.
Chapter 8, "Software Utility", describes how to run the utility
program included in the software CD.
Introduction
1
1
Introduction
PCI-9812/10 is an advanced-performance data acquisition card based
on 32-bit PCI Bus architecture. The maximum sampling rate of PCI-
9812/10 is up to 20M samples per second, With an emphasis on
continuous, non-stop, high-speed, streaming of A/D samples to host
memory. The high performance design and state-of-the-art technology
make this card ideal for DSP, FFT, digital filtering, and image
processing applications.
1.1 Features
PCI-9812 PCI Bus Advanced Data Acquisition Card is designed with
the following advanced features:
32-bit PCI-Bus, Bus Mastering DMA data transfer
12-bit (9812) or 10-bit (9810) analog input resolution
On-board 32K words (samples) A/D FIFO memory
Up to 20MHz A/D sampling rate
4 single-ended analog input channels
Bipolar input signals
4 A/D converters simultaneously sampling
Five A/D trigger modes: software trigger, pre-trigger, Post-trigger,
middle trigger, and delay trigger
2
Introduction
1.2 Applications
IF and BASEBAND Digitization
Ultrasound Imaging
Gamma Cameras
Test Instrument
CCD Imaging
Video Digitizing
1.3 Specifications
Analog Input (A/D)
Converters: B.B. ADS800 series
Input Channels: 4 single-ended
Resolution: 12-bit (9812), 10-bit (9810)
Input Range: Bipolar: ±1V, or ±5V by soldering selection
Max. Sampling Rate: 20 MHz samples/sec
Note: For single channel enabled, the maximum sampling rate is 20
MHz. For two channels enabled, the 20 MHz sampling rate can
be reached only when the number of samples accessed for each
channel is smaller than 16K. For four channels enabled, the 20
MHz sampling rate can be reached only when the number of
samples accessed for each channel is smaller than 8K. Please
refer to section 5.5 for more detail information about the sampling
rate and data length limitation.
Accuracy: Gain Error ±1.5% at 25°C
Input Impedance of Analog Input: (soldering selectable)
50 (±1V and ±5V)
1.25K (±5V only)
15M (±1V only)
Dynamic Characteristic:
Differential Linearity Error:
±0.4 LSB (Typ.) ±1.0 LSB (Max.) at 25°C
Integral Linearity Error:
±1.9 LSB at 25°C
Introduction
3
A/D Clock Sources:
Internal clock, Continuous external digital clock and Continuous
external sine wave.
Input Impedance of External Clock Source: 50
Trigger Sources:
Software, Analog threshold comparator using internal D/A to set
trigger level, and External digital trigger
Trigger Modes:
Software-trigger, Pre-trigger, Post-trigger, Middle-trigger, and Delay-
trigger
AD Data Transfer Method: DMA (Bus mastering)
Digital Input
Numbers of channel:
3 TTL compatible inputs with 10K ohms pull down resistor
Input Voltage:
Low: Min. 0V; Max. 0.8V
High: Min. +2.0V Max. 5.5V
Input Load:
Low: ±1µA @0V
0.5ma @5V
High: +2.7V min.@20mA max.
General Specifications
Connectors: 5 BNC-type, one 10-pin header
Operating Temperature: 0° C ~ 40° C
Storage Temperature: -20° C ~ 80° C
Humidity: 5 ~ 85%, non-condensing
Power Consumption: +5 V @ 2.5 A (maximum)
Dimension: 101mm(H) X 173mm(L)
4
Introduction
1.4 Software Support
ADLink provides versatile software drivers and packages for users’
different approach to built-up a system. We not only provide
programming library such as DLL for many Windows systems, but also
provide drivers for many software package such as LabVIEW
®
, HP
VEE
TM
, DASYLab
TM
, InTouch
TM
, InControl
TM
, ISaGRAF
TM
, and so on.
All the software options are included in the ADLink CD. The non-
free software drivers are protected with serial licensed code. Without
the software serial number, you can still install them and run the demo
version for two hours for demonstration purpose. Please contact with
your dealer to purchase the formal license serial code.
1.4.1 Programming Library
For customers who are writing their own programs, we provide
function libraries for many different operating systems, including:
u DOS Library: Borland C/C++ and Microsoft C++, the functions
descriptions are included in this user’s guide.
u Windows 95 DLL: For VB, VC++, Delphi, BC5, the functions
descriptions are included in this user’s guide.
u PCIS-DASK: Include device drivers and DLL for Windows 98,
Windows NT and Windows 2000. DLL is binary compatible
across Windows 98, Windows NT and Windows 2000. That
means all applications developed with PCIS-DASK are
compatible across Windows 98, Windows NT and Windows
2000. The developing environment can be VB, VC++, Delphi,
BC5, or any Windows programming language that allows calls to
a DLL. The user’s guide and function reference manual of PCIS-
DASK are in the CD. Please refer the PDF manual files under
\\Manual_PDF\Software\PCIS-DASK
The above software drivers are shipped with the board. Please
refer to the “Software Installation Guide” to install these drivers.
1.4.2 PCIS-LVIEW: LabVIEW
®
Driver
PCIS-LVIEW contains the VIs, which are used to interface with NI’s
LabVIEW
®
software package. The PCIS-LVIEW supports Windows
95/98/NT/2000. The LabVIEW
®
drivers are free shipped with the
board. You can install and use them without license. For detail
information about PCIS-LVIEW, please refer to the user’s guide in the
CD.
(\\Manual_PDF\Software\PCIS-LVIEW)
1.4.3 PCIS-VEE: HP-VEE Driver
The PCIS-VEE includes the user objects, which are used to
Introduction
5
interface with HP VEE software package. PCIS-VEE supports
Windows 95/98/NT. The HP-VEE drivers are free shipped with the
board. You can install and use them without license. For detail
information about PCIS-VEE, please refer to the user’s guide in the
CD.
(\\Manual_PDF\Software\PCIS-VEE)
1.4.4 DAQBench
TM
: ActiveX Controls
We suggest the customers who are familiar with ActiveX controls
and VB/VC++ programming use the DAQBench
TM
ActiveX Control
components library for developing applications. The DAQBench
TM
is
designed under Windows NT/98. For more detailed information about
DAQBench, please refer to the user’s guide in the CD.
(\\Manual_PDF\Software\DAQBench\DAQBench Manual.PDF)
1.4.5 DASYLab
TM
PRO
DASYLab is an easy-to-use software package, which provides
easy-setup instrument functions such as FFT analysis. Please contact
us to get DASYLab PRO, which include DASYLab and ADLink
hardware drivers.
6
Installation
2
Installation
This chapter describes how to install the PCI-9812/10. Firstly,
please read the contents in the package and unpacking information
and following these instructions carefully.
The PCI-9812/10 will perform an automatic configuration of the IRQ
and I/O port address. There is no need to set any configuration, as
you would use in an ISA form factor DAS card. For system
reliability, it is necessary to manually assign some critical settings
for analog input and output, because these settings will not be
changed after your data acquisition system configuration is decided.
The settings will let your system perform reliably & safely (user can
not change the configuration by software directly) when your
system is running.
Please follow the steps to install the PCI-9812/10 products.
w Check what you have (section 2.1)
w Unpacking (section 2.2)
w Check the PCB (section 2.3)
w Install the hardware (section 2.4)
Installation
7
2.1 What You Have
In addition to this User's Guide, the package includes the following
items:
w PCI-9812/10 Enhanced Multi-function Data Acquisition Card
w 5 BNC terminators
w ADLink All-in-one CD
w Software Installation Guide
If any of these items is missing or damaged, contact the dealer from
whom you purchased the product for replacement. Save the
shipping materials and carton in case you want to ship or store the
product in the future.
2.2 Unpacking
Your PCI-9812/10 card contains sensitive electronic components
that can be easily damaged by static electricity.
The card should be handled on a grounded anti-static mat. The
operator should be wearing an anti-static wristband, grounded at
the same point as the anti-static mat.
Inspect the card module carton for obvious damage. Shipping and
handling may cause damage to your module. Be sure there is no
shipping and handing damage on the module before processing.
After opening the card module carton, extract the system module
and place it only on a grounded anti-static surface with component
side up.
Again inspect the module for damage. Press down on all the
socketed IC's to make sure that they are properly seated. Do this
only with the module place on a firm flat surface.
Note : DO NOT APPLY POWER TO THE CARD IF IT HAS BEEN
DAMAGED.
You are now ready to install your PCI-9812/10.
8
Installation
PCI-9812
PCI-9810
1
9
JP1
2 10
VR4 VR8 VR3 VR7 VR2 VR6 VR1 VR5
R95
R97
C05V
C0LO
C25V
C2LO
R95
C05V
C0LO
2.3 PCI-9812/10's Layout
Figure 2.1 PCB Layout of the PCI-9812/10
ALTERA
CH0
CH1
CH3
AMCC
External Sine
Wave Clock
CH2
J1
J2
J3
J4
J5
Installation
9
2.4 Hardware Installation Outline
PCI configuration
The PCI cards (or CompactPCI cards) are equipped with plug and
play PCI controller, it can request base addresses and interrupt
according to PCI standard. The system BIOS will install the system
resource based on the PCI cards’ configuration registers and system
parameters (which are set by system BIOS). Interrupt assignment
and memory usage (I/O port locations) of the PCI cards can be
assigned by system BIOS only. These system resource assignments
are done on a board-by-board basis. It is not suggested to assign the
system resource by any other methods.
PCI slot selection
The PCI card can be inserted to any PCI slot without any
configuration for system resource. Please note that the PCI system
board and slot must provide bus-mastering capability to operate this
board well.
Installation Procedures
1. Turn off your computer
2. Turn off all accessories (printer, modem, monitor, etc.)
connected to your computer.
3. Remove the cover from your computer.
4. Setup jumpers on the PCI or CompactPCI card.
5. Select a 32-bit PCI slot. PCI slot are short than ISA or EISA slots,
and are usually white or ivory.
6. Before handling the PCI cards, discharge any static buildup on
your body by touching the metal case of the computer. Hold the
edge and do not touch the components.
7. Position the board into the PCI slot you selected.
8. Secure the card in place at the rear panel of the system.
2.5 Device Installation for Windows Systems
Once Windows 95/98/2000 has started, the Plug and Play function
of Windows system will find the new NuDAQ/NuIPC cards. If this is
the first time to install NuDAQ/NuIPC cards in your Windows system,
you will be informed to input the device information source. Please
refer to the “Software Installation Guide” for the steps of installing
the device.
10
Signal Connection
3
Signal Connection
This chapter describes the connector of the PCI-9812/10, the signal
connection between the PCI-9812/10 and external devices, and the
switch setting for different applications.
3.1 Connectors
The PCI-9812/10 connects to external devices through five BNC
connectors and one 10-pin dual-in-line header. Fig. 3.1 shows the
location of these connectors.
Figure 3.1 Location of connectors
CH0
CH1
CH2
External
Sine wave clock
CH3
1
9
JP1
PCI-
PCI-
2
10
J1
J2
J3
J4
J5
Signal Connection
11
J1 : The J1 BNC connector is used for the input signal of
channel 0 A/D converter.
J2 : The J2 BNC connector is used for the input signal of
channel 1 A/D converter.
J3 : The J3 BNC connector is used for the input signal of
channel 2 A/D converter.
J4 : The J4 BNC connector is used for the input signal of
channel 3 A/D converter.
J5 : The J5 BNC connector is used for the input signal of
external clock 0.
JP1 : The 10-pin connector is used for digital input signal,
including 1 digital clock, 1 digital trigger and 3 digital
input.
The pin-out of JP1 is listed below:
Pin 1 : External Clock Input 1 Pin 2 : Ground
Pin 3 : External Digital Trigger Input Pin 4 : Ground
Pin 5 : Digital Input 0 Pin 6 : Ground
Pin 7 : Digital Input 1 Pin 8 : Ground
Pin 9 : Digital Input 2 Pin 10 : Ground
Note : If the JP1 is connected to a 9-pin D-type connector through a
ribbon cable, the pin-out of the D-type connector is changed
to :
Pin 1 : External Clock Input 1 Pin 2 : Ground
Pin 3 : External Digital Trigger Input Pin 4 : Ground
Pin 5 : Digital Input 0 Pin 6 : Ground
Pin 7 : Digital Input 1 Pin 8 : Ground
Pin 9 : Digital Input 2
12
Signal Connection
3.2 Analog Input Impedance Setting
This section describes the characteristics of the different inputs of
the PCI-9812/10.
3.2.1 Analog Input
PCI-9812/10 has four analog input channels which are connected
through connectors J1 ~ J4. The input impedance and input
amplitude range can be changed through soldering the gap
switches on board (refer to PCI-9812/10’s layout). A solder gap
switch consists of two copper pads, the switch can be turned on by
soldering these two pads together. All the four channels have the
same way to configure their input characteristics, and only channel
0 is discussed here. There are 2 solder gap switches, named C0LO
(channel 0 low impedance) and C05V (channel 0 5V input), to setup
the input characteristics of channel 0. (Please refer to fig. 2.1 in
section 2.3)
C0LO C05V Input Impedance Input Range
Open Open High (~15M Ohm) ±1V
Open Close 1.25K Ohm ± 5V
Close Open Low (50 Ohm) ± 1V (default)
Close Close Low (50 Ohm) ± 5V
CAUTION : When the input channel is configured as a high
impedance input, DO NOT leave the input connector
unconnected, the input connector must be connected
to a low impedance signal source to provide a return
path for the input bias current (<= 15 µA), otherwise
high voltage will build up at the input of A/D converter.
That could damage the A/D converter.
Note : 75 ohm input impedance can be achieved by either :
1. Replace R95 by a 75 ohm resistor and close C0LO.
2. Place a T-connector with a 75 ohm terminator on J1
and open C0LO.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70

ADLINK Technology NuDAQ PCI-9812/10 User manual

Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI