NuDAQ PCI-9111DG/HR Multi-Functions Data Acquisition Card User’s Guide Recycled Paper
vi • Outline of Chapters Outline of Chapters This manual is designed to help the user to understand and configure the PCI-9111. The manual describes t
90 • Calibration 6 Calibration In data acquisition processes, how to calibrate your measurement devices to maintain its accuracy is very important. Us
Calibration • 91 6.2 VR Assignment There are five variable resistors (VR) on the PCI-9111 board to allow you making accurate adjustment of the A/D an
92 • Calibration 6.4 D/A Adjustment 6.4.1 Unipolar Analog Output 1. Set JP1 to select uni-polar. Connect the DVM (+) to CN3 pin-30 (DAOut) and DV
Software Utility • 93 7 Software Utility The software CD provides two utility programs, the 9111util.exe and I_eeprom. The 9111util.exe provides three
94 • Software Utility ****** PCI-9111 Utility Rev. 1.0 ****** Copyright © 1995-1996, ADLINK Technology Inc. All rights reserved. <F1>: Confi
Software Utility • 95 7.1.3 Calibration This function is used to guide you though on how to calibrate the PCI-9111. The calibration program serves as
96 • Software Utility If option 3 is selected, the following figure will be displayed: If completed Step5 then press <Enter> to next step, <
Software Utility • 97 Figure 22. A/D with Polling Test Window 7.2 I_EEPROM This file is used to enable or disable the interrupt of the PCI-9111 boa
98 • Warranty Policy Warranty Policy Thank you for choosing ADLINK. To understand your rights and enjoy all the after-sales services we offer, pleas
Warranty Policy • 99 4. Customers are responsible for the fees regarding transportation of damaged products to our company or to the sales office. 5
Introduction • 1 1 Introduction The PCI-9111 is an advanced data acquisition card based on the 32-bit PCI Bus architecture. High performance designs
2 • Introduction 1.1 Features The PCI-9111 PCI Bus Advanced Data Acquisition Card provides the following advanced features: • 32-bit PCI-Bus • 12
Introduction • 3 1.2 Applications • Industrial and laboratory ON/OFF control • Energy management • Communication • 16 TTL/DTL compatible digital
4 • Introduction 1.3 Specifications Analog Input (A/D) • Converter: B.B. ADS7805 / ADS7804 or equivalents, successive approximation type • Resoluti
Introduction • 5 Digital I/O (DIO) • Numbers of Channel: 16 TTL compatible inputs and outputs • Input Voltage: P Low: Min. 0V; Max. 0.8V P High:
6 • Introduction Programmable Counter • Device: 8254 • A/D pacer: 32-bit timer (Two 16-bit counters cascaded together) with a 2MHz time base • Pace
Introduction • 7 1.4 Supporting Software ADLINK provides versatile software drivers and packages for users’ different approach to building a system.
8 • Introduction 1.4.2 PCIS-LVIEW: LabVIEW® Driver PCIS-LVIEW contains the VIs, which is used to interface with NI’s LabVIEW® software package. The P
Introduction • 9 1.4.8 PCIS-ICL: InControlTM Driver PCIS-ICL is the InControl driver, which supports Windows NT. The PCIS-ICL is included in the ADL
10 • Installation 2 Installation This chapter describes how to install the PCI-9111. Follow the steps carefully. • Check what you have (section 2.1)
Installation • 11 2.1 What You Have In addition to this User's Guide, the package should include the following items: PCI-9111 Enhanced Multi-fu
12 • Installation 2.3 PCI-9111 PCB Layout Figure 1. PCB Layout of the PCI-9111 2.4 Jumper Descriptions There is only one configurable jumper (JP1
Installation • 13 2.5 Hardware Installation Outline PCI configuration The PCI cards (or CompactPCI cards) are equipped with plug and play PCI control
14 • Installation 2.6 Device Installation for Windows Systems Once Windows 95/98/2000 has started, the Plug and Play function of Windows system wil
Installation • 15 2.7.1 Digital Input Connector CN1 +5V GND DI 14 DI 12 DI 10 DI 8 DI 6 DI 4 DI 2 DI 0 CN1 +12V GND DI 15 DI 13 DI
16 • Installation 2.7.3 Analog Input/Output, Extended I/O Connector CN3 AI2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28
Installation • 17 2.8 Daughter Board Connection The PCI-9111 can be connected with five different daughter boards. The following are compatible: ACLD
18 • Installation 2.8.4 Connect with ACLD-9185 The ACLD-9185 is a 16-channel SPDT relay output board. This board is connected to CN2 of the PCI-9111
Registers • 19 3 Registers The descriptions of the registers and structure of the PCI-9111 are outlined in this chapter. The information in this chapt
©Copyright 1997~2003 ADLINK Technology Inc; All Rights Reserved. Manual Rev 2.50: April 4, 2003 Part No: 50-11110-102 The information in this docume
20 • Registers 3.1 PCI PnP Registers The PCI-9111 functions as a 32-bit PCI target device to any master on the PCI bus. It supports burst transfer
Registers • 21 3.2 I/O Address Map Most of the PCI-9111 registers are 16 bits. Users can access these registers using 16 bits I/O instructions. The
22 • Registers 3.3 A/D Data Registers The PCI-9111 A/D data is stored in the FIFO after conversion. The data can be transferred to the host memory b
Registers • 23 3.4 A/D Channel Control Register The PCI-9111 provides 16 single-ended analog input channels. The channel control register is used t
24 • Registers There are 8 bits in this register. Under non-auto scan mode, the 4 LSB (CN0~CN3) stores the channel number setting with the 4 MSB (AS3
Registers • 25 3.7 A/D Range and Status Read back Register The A/D range setting and A/D FIFO status can be read back from this regis ter. Address: B
26 • Registers 3.9 A/D Trigger Mode Control Register This register is used to control the A/D trigger source and trigger method. Address: BASE + 0Ah
Registers • 27 Note 1: The bits in this register can only control the A/D trigger source and trigger method. The trigger conditions are independent
28 • Registers 3.11 Hardware Interrupt Clear Register Becaus e the PCI interrupt signal is level triggered, the interrupt clear register must be writ
Registers • 29 3.13 ISC2 & Trigger Event Read Back Register The interrupt control setting ISC2 and the trigger event can be retrieved from this
Getting service from ADLINK Customer Satisfaction is the most important priority for ADLINK Tech Inc. If you need any help or service, please contact
30 • Registers 3.14 Timer/Counter Register Each 82C54 chip occupies 4 I/O address locations on the PCI-9111 as shown below. Users may refer to the 82
Registers • 31 3.16 Extended I/O Ports The PCI-9111 provides four extended input signals and four extended output signals. The signals are available
32 • Registers 3.17 Digital I/O register There are 16 digital input and 16 digital output channels provided by the PCI-9111. The address Base+1C is
Operation Theory • 33 4 Operation Theory The operation theory of the functions on PCI-9111 card is described in this chapter. The functions include t
34 • Operation Theory 4.1.1 A/D Conversion Procedure To use the A/D converter, users first need to know the properties of the signal being measured.
Operation Theory • 35 Analog Input Signal Connection The PCI-9111 provides 16 single-ended analog input channels. The analog signal can be converted t
36 • Operation Theory Signal Range A properly define signal range is important in any data acquisition process. The input signal may be saturated if
Operation Theory • 37 It's recommended that this mode be used if the application requires a fixed and precise A/D sampling rate. External Trigger
38 • Operation Theory FIFO Half-Full Polling The FIFO half-full polling mode is the most powerful AD data transfer mode. The 1 K words FIFO can store
Operation Theory • 39 FIFO Half-Full Interrupt Transfer Sometimes, the applications do not need real-time processing, but the foreground program is to
Table of Contents • i Table of Contents List of Tables ...
40 • Operation Theory To set up the Pre-Trigger mode, the following steps should be followed: 1. Set Pre-Trigger Mode Off: PTRG = OFF. 2. Set 8254 C
Operation Theory • 41 4.1.6 Post-Trigger Control Another useful trigger mode is the Post-Trigger. Under “Post-Trigger” mode, the post-trigger (POTRG)
42 • Operation Theory Figure 12. Post Trigger timing Under pre-trigger or post-trigger control schemes, the TRGEVENT flag signal (Base + 0Ch) can com
Operation Theory • 43 4.1.7 A/D Data Format The A/D data read from the FIFO is in two’s complement format. As the A/D gain is 1, the A/D signal range
44 • Operation Theory The formula between the A/D converted data and the voltage value is: Voltage AD dataK gain= × ×_1 10 Where gain is the value of
Operation Theory • 45 4.2.3 Dual Interrupt System The PCI controller of the PCI-9111 can receive two hardware IRQ sources. However, a PCI controller
46 • Operation Theory 4.3 Extended Digital I/O Port There are 4 extended digital input (EDI) signals and 4 extended digital output (EDO) signals on C
Operation Theory • 47 Before performing the D/A conversion, users should take note of the D/A output range, which is set by JP1. Refer to section 2.4
48 • Operation Theory 4.6 Timer/Counter Operation 4.6.1 Introduction One 8254 programmable interval timer/counter chip is integrated on the PCI-911
Operation Theory • 49 4.6.4 I/O Address The 8254 in the PCI-9111 occupy 4 I/O address as shown below. BASE + 40 h LSB OR MSB OF COUNTER 0 BASE + 42
ii • Table of Contents 3.7 A/D Range and Status Read back Register... 25 3.8 Software Trigger Register...
50 • C/C++ Library 5 C/C++ Library This chapter describes the software library that operates the PCI-9111. Only the functions in DOS library and Windo
C/C++ Library • 51 5.2 Programming Guide 5.2.1 Naming Convention The functions of the NuDAQ PCI or NuIPC CompactPCI card software drivers uses full-
52 • C/C++ Library 5.3 _9111_Initial @ Description This function is used to initialize the PCI_9111. Every PCI_9111 card must be initialized by this
C/C++ Library • 53 5.5 _9111_DO_Channel @ Description This function is used to write data to the digital output ports. There are 16 digital output ch
54 • C/C++ Library 5.6 _9111_DI @ Description This function is used to read data from the digital input ports. There are 16 digital input channels on
C/C++ Library • 55 5.7 _9111_DI_Channel @ Description This function is used to read data from the digital input port. There are 16 digital input chan
56 • C/C++ Library 5.8 _9111_EDI @ Description There are 4 extended digital input channels on the PCI_9111. This function is used to read data from t
C/C++ Library • 57 5.9 _9111_EDO @ Description There are 4 extended digital output channels on the PCI_9111. This function is used to write data to t
58 • C/C++ Library 5.10 _9111_EDO_Read_Back @ Description This function is used to read back the output data that is written to the output port previ
C/C++ Library • 59 5.12 _9111_DA @ Description This function is used to write data to the D/A converters. There is one Digital-to-Analog conversion c
Table of Contents • iii 5.10 _9111_EDO_Read_Back... 58 5.11 _9111_Set_EDO_Funct
60 • C/C++ Library 5.14 _9111_AD_Read_Data_Repeat @ Description This function is used to read the AD converted data n times continuously. @ Syntax C
C/C++ Library • 61 5.15 _9111_AD_Set_Channel @ Description This function is used to set the AD channel by means of writing data to the multiplexer sc
62 • C/C++ Library 5.16 _9111_AD_Get_Channel @ Description This function reads from the multiplexer scan channel register and obtains the AD channel
C/C++ Library • 63 5.17 _9111_AD_Set_Range @ Description This function is used to set the A/D range by means of writing data to the gain control reg
64 • C/C++ Library 5.18 _9111_AD_Get_Range @ Description This function is used to get the A/D range from the gain control register. The relationship
C/C++ Library • 65 5.19 _9111_AD_Get_Status @ Description This function is used to get AD FIFO status from the gain control register. @ Syntax C/C+
66 • C/C++ Library 5.20 _9111_AD_Set_Mode @ Description This function is used to set AD trigger and channel scan mode. Please refer to section 5.1.3
C/C++ Library • 67 5.21 _9111_AD_Get_Mode @ Description This function is used to get AD mode. Please refer to section 5.1.3 for the detailed descript
68 • C/C++ Library 5.22 _9111_INT_Set_Reg @ Description This function is used to select the interrupt sources by writing data to interrupt control re
C/C++ Library • 69 5.23 _9111_INT_Get_Reg @ Description This function is used to get the AD mode setting and interrupt control setting by reading dat
iv • Table of Contents Chapter 7 Software Utility... 93 7.1 9111util.exe
70 • C/C++ Library 5.24 _9111_Reset_FIFO @ Description The PCI-9111 A/D data are stored in the FIFO after conversion. This function is used to reset
C/C++ Library • 71 5.25 _9111_AD_Soft_Trigger @ Description This function is used to trigger the A/D conversion by software. When the function is cal
72 • C/C++ Library 5.27 _9111_Get_8254 @ Description This function is used to read PCI-9111 8254 Programmable Timer. The read value are stored in cou
C/C++ Library • 73 5.28 _9111_AD_Timer @ Description This function is used to set the Timer #1 and Timer#2. Timer#1 and Timer#2 are used as frequency
74 • C/C++ Library 5.29 _9111_Counter_Start @ Description The counter #0 of the PCI-9111 Timer/Counter chip can be freely programmed by the users. T
C/C++ Library • 75 5.30 _9111_Counter_Read @ Description This function is used to read the count value of the Counter#0. @ Syntax C/C++ (DOS) U16 _9
76 • C/C++ Library 5.32 _9111_INT_Source_Control @ Description The PCI-9111 has a dual interrupt system, two interrupt sources can be generated and
C/C++ Library • 77 5.33 _9111_CLR_IRQ @ Description This function is used to clear interrupt request which is requested by PCI-9111. If you use EOC
78 • C/C++ Library 5.35 _9111_Get_IRQ_Status @ Description This function is used to get the status of the two IRQs (INT1 and INT2) in PCI-9111 card.
C/C++ Library • 79 5.36 _9111_AD_FFHF_Polling @ Description This function is used to perform powerful AD data transfer by applying half-full polling
List of Tables and Figures • v List of Tables Table 1: I/O Address Map... 21
80 • C/C++ Library 5.37 _9111_AD_Aquire @ Description This function is used to trigger the A/D conversion data for PCI-9111 by software trigger. It r
C/C++ Library • 81 5.38 _9111_AD_HR_Aquire @ Description This function is used to trigger the A/D conversion data for PCI-9111HR by software trigger.
82 • C/C++ Library 5.39 _9111_AD_INT_Start @ Description This function is used to initialize and start up the AD EOC (end-of-conversion) interrupt t
C/C++ Library • 83 If the auto_scan is set as enable, the selection sequence of A/D channel is: 0, 1, 2, 3, ... , [ad_ch_no], 0, 1, 2, 3, ... , [ad_
84 • C/C++ Library W_9111_AD_FFHF_INT_Start (ByVal cardNo As Integer, ByVal auto_scan As Integer, ByVal ad_ch_no As Integer, ByVal ad_gain As Integer,
C/C++ Library • 85 5.41 _9111_AD_INT_Status @ Description This function is used to check the status of interrupt operation. The _9111_AD_INT_Start()
86 • C/C++ Library 5.42 _9111_AD_FFHF_INT_Status @ Description This function is used to check the status of interrupt operation using AD FIFO Half F
C/C++ Library • 87 5.43 _9111_AD_FFHF_INT_Restart @ Description After calling _9111_AD_FFHF_INT_Start, the AD conversion and transfer won’t stop unt
88 • C/C++ Library 5.44 _9111_AD_INT_Stop @ Description This function is used to stop both the interrupt data transfer functions. After executing th
C/C++ Library • 89 5.45 _9111_AD_Get_TrigEvent @ Description This function is used to get the trigger event status. Note that this function supports
Comments to this Manuals