Instruction/ maintenance manual of the product PCI-9111DG/HR HP (Hewlett-Packard)
Go to page of 83
NuDAQ PCI - 9111DG/HR Multi - Functions Data Acquisition Card User’s Guide.
@Copyright 1997~2000 ADLINK Technology Inc. All Rights Reserved. Manual Rev 2.21: September 7, 2000 The information in this document is subject to change without prior notice in order to improve reliabil ity, design and function and does not represent a commitment on the part of the manu facturer.
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 http://www.adlinktechnology.
.
Table of Contents • i Table of Contents How to Use This Guide ............................................ v Chatper 1 Introduction .......................................... 1 1.1 Features ...........................................................
ii • Table of Contents 3.3 A/D Data Registers ........................................................ 14 3.4 A/D Ch annel Control Register ....................................... 15 3.5 A/D Channel Read Back Register ...............................
Table of Contents • iii 5.4 _9111_DO ..................................................................... 38 5.5 _9111_DO_Channel ...................................................... 39 5.6 _9111_DI ...............................................
iv • Table of Contents Chatper 6 Calibration ........................................... 65 6.1 What do you need ......................................................... 65 6.2 V R Assignment ........................................................
How to Use This Guide • v How to Use This Guide This manual is designed to hel p you to use the PCI - 9111. The manual describes the versatile functions and the operation theorem of the PCI - 9111 card.
.
Introduction • 1 1 Introduction The PCI - 9111 is an advanced data acquisition card based on the 32 - bit PCI Bus architecture. High performance designs and the state - of - the - art technology make this card ideal for data logging and signal analysis applications in medical, proc ess control, and etc.
2 • Introduction • Pre - trigger Control • Integral DC - to - DC converter for stable analog power source • 37 - pin D - type connector • Compact size: half - size PCB 1.
Introduction • 3 Unipolar: 0~10V Bipolar: - 10V~+10V • Converter: DAC7541 or equivalent, monolithic multiplying • Sett ling Time: 30 µ sec • Linearity: ± 1/2 bit LSB • Output driving capability: ± 5mA max. ♦ Digital I/O (DIO) • Numbers of Channel: 16 TTL compatible inputs and outp uts • Input Voltage: Low: Min.
4 • Introduction • Operating Temperature: 0 ° C ~ 60 ° C • Storage Temperature: - 20 ° C ~ 80 ° C • Humidity: 5 ~ 95%, non - condensing • Power Consumption: +5 V @ 570 mA typical • Dimension: Compact size only 172mm x 105mm 1.
Introduction • 5 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.
6 • Introduction target drivers f or ISaGRAF under Windows NT environment. The PCIS - ISG is included in the ADLINK CD. It needs license. 1.4.8 PCIS - ICL: InControl TM Driver PCIS - ICL is the InControl driver which support the Windows NT. The PCIS - ICL is included in the ADLINK CD.
Installation • 7 2 Installation This chapter describes how to install the PCI - 9111. At first, the contents in the package and unpacking information that you should be careful are described. The PCI - 9111 does an automatic configuration of the IRQ, port address, and BIOS address.
8 • Installation Inspect the card module carton for obvious damage. Shipping and handling may cause damage to your module. Be sure there are no shipping and handing damages 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 component side up.
Installation • 9 2.4 Jumper Descriptions The only one jumper (JP1) on the PCI - 9111 card is used to set the range of the analog output channel. The analog output range could be unipolar (0~10V) or bi - polar ( - 10V~+10V). The default setting is bi - polar.
10 • Installation 5. Select a 32 - bit PCI slot. PCI slots are shorter 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 compon ents.
Installation • 11 • CN 2: Digital Signal Output ( DO 0 ~ 15 ) +5V GND DO 14 DO 12 DO 10 DO 8 DO 6 DO 4 DO 2 DO 0 CN2 +12V GND DO 15 DO 13 DO 11 DO 9 DO 7 DO 5 DO 3 DO 1 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 Figure 2.
12 • Installation EDO n : Extended Digital Output Channel n (0~3) A.GND : Analog Signal Ground D.GND : Digital Signal Ground N.C : No connection 2.8 Daughter Board Connection The PCI - 9111 can be connected with five different daughter boards, ACLD - 8125, ACLD - 9137, 9138, 9182, 9185, and 9188.
Registers Format • 13 3 Registers Format T he detailed descriptions of the registers format are specified in this chapter. This information is quite useful for the programmers who wish to handle the card by low - level programming. However, we suggest users have to understand more about the PCI int erface then start any low - level programming.
14 • Registers Format Please do not try to modify the base address and interrupt which assigned by the PCI PnP BIOS, it may cause resource confliction in your system. 3.2 I/O Address Map Most of the PCI - 9111 registers are 16 bits. The users can access these registers by 16 bits I/O instructions.
Registers Format • 15 Address: BASE + 0h Attribute: read only D ata Format: for 12 - bits PCI - 9111DG Bit 7 6 5 4 3 2 1 0 BASE+0h AD3 AD2 AD1 AD0 CH3 CH2 CH1 CH0 BASE+1h AD11 AD10 AD9 AD8 AD7 AD6 A.
16 • Registers Format 3.5 A/D Channel Read Back Register The AD channel setting can be read back from this register. Address: BASE + 6h Attribute: read only Dat a Format: Bit 7 6 5 4 3 2 1 0 BASE+6h AS3 AS2 AS1 AS0 CN3 CN2 CN1 CN0 BASE+7h -- -- -- -- -- -- -- -- Where: CNn: channel number ASn: Auto scan channel number.
Registers Format • 17 3.7 A/D Range and Status Read back Register The A/D range setti ng and A/D FIFO status can be read back from this register. Address: BASE + 8h Attribute: read only Data Format:.
18 • Registers Format ASCAN: Auto Scan Control 0: Auto Scan OFF 1: Auto Scan ON Only the modes listed below can be applied on the PCI - 9111 card: Bit 3 PTRG Bit 2 EITS Bit 1 TPST Bit 0 ASCAN Mode D.
Registers Format • 19 1: IRQ when FIFO is half full ISC1: IRQ1 signal select 0: IRQ every Timer tick 1: IRQ when ExtTrg signa l changes from ‘H’ to ‘L’ FFEN: FIFO enable pin 0: FIFO Enable (Power On Default value) 1: FIFO Disable (To reset FIFO, set FFEN sequence as 0 - > 1 - > 0) 3.
20 • Registers Format 3.13 Extended I/O Ports The PCI - 9111 provides four extended input signals and four extended output signals. The signals are on the 37 pin connector. The extended output signals can be read back from the high nibble (4 MSBs) of the extended input port.
Registers Format • 21 Bit 7 6 5 4 3 2 1 0 Base + 2h DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 Base + 3h DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8 Address: BASE + 2h Attribute: write only Data Fo rmat: Bit 7 6 5 4 3 2 1 0 Base + 2h DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0 Base + 3h DO15 DO14 DO13 DO12 DO11 DO10 DO9 DO8 3.
22 • Operation Theorem 4 Operation Theorem The operation theorem of the functions on PCI - 9111 card is described in this chap ter. The functions include the A/D conversion, D/A conversion, Digital I/O and counter / timer. The operation theorem can help you to understand how to manipulate or to program the PCI - 9111.
Operation Theorem • 23 RA n 0 Ohm To Multiplexer Analog Input Channel #n RB n OPEN CA n OPEN 4.1.1 A/D Conversion Procedure For using the A/D converter, users must know about the property of the signal t o be measured at first. The users can decide which channels to be used and connect the signals to the PCI - 9111.
24 • Operation Theorem Analog Input Signal Connection The PCI - 9111 provides 16 single - ended analog input channels. The analog signal can be converted to digital value by the A/D converter. To avoid ground loops and get more accurate measurem ent of A/D value, it is quite important to understand the signal source type.
Operation Theorem • 25 Signal Range The proper signal rang e is important for data acquisition. The input signal may be saturated if the A/D gain is too large. Sometimes, the resolution may be not enough if the signal is small. The maximum A/D signal range of PCI - 9111 is +/ - 10 volts when the A/D gain value is 1.
26 • Operation Theorem refer to section 4.6 for timer/counter operation. This mode is ideal for high speed A/D conversion. It can be combined with the FIF O half full interrupt or EOC interrupt to transfer data. It is also possible to use software FIFO polling to transfer data.
Operation Theorem • 27 It is possible to read A/D converted data without polling. The A/D conversion time will not exceed 8.5 µ s on PCI - 9111 card. Hence, after software trigger, the software can wait for a t least 8.5 µ s then read the A/D register without polling.
28 • Operation Theorem EOC Interrupt Transfer The PCI - 9111 provides traditional hardware end - of - conversion (EOC) interrupt capability. Under this mode, an interrupt signal is generated when the A/D conversion is ended and the data is ready to be read in the FIFO.
Operation Theorem • 29 software must continuously read data out from the FIFO to prevent FIFO full. The software also should poll the counter value to check if the A/D sampling is stopped. To set up the Pre - Trigger mode, the following steps should be followed: 1.
30 • Operation Theorem 4.1.6 A/D Data Format The A/D data read from the FIFO is in the two ‘ s complement format. As the A/D gain is 1, the A/D signal range is roughly +10V ~ - 10V bi - polar. In PCI - 9111HR, the whole 16 bits A/D data are available.
Operation Theorem • 31 4.2 Interrupt Control 4.2.1 System Architecture The PCI - 9111‘s interrupt system is a powerful and flexible system which is suitable for A/D data acquisition a nd many applications.
32 • Operation Theorem users must check if another IRQ is also asserted, then clear current IRQ to allow the next IRQ occurring. The two IRQs are named as INT1 and INT2. INT1 comes from AD EOC or the FIFO half - full flag. INT2 comes from timer‘s pacer output or the external interrupt request.
Operation Theorem • 33 4.4 D/A Conversion The PCI - 9111 has one analog output channel. The signal range can be uni - pol ar or bi - polar which are set by JP1. To D/A Output D/A Converter - + - 10V Ref In Analog GND Pin - 30 (DA Out) The operation of D/A conversion is simpler than A/D operation.
34 • Operation Theorem 4.5 Digital Input and Output To program digital I/O operation is fairly straightforward. The digital input operation is just to read data from the corresponding registers, and the digital output operation is to write data to the corresponding registers.
Operation Theorem • 35 4.6.2 Pacer Trigger Source The timer #1 and timer #2 are casca ded together to generate the timer pacer trigger of A/D conversion. The frequency of the pacer trigger is software controllable. The maximum pacer signal rate is 2MHz/4=500K which excess the maximum A/D conversion rate of the PCI - 9111.
36 • C/C++ L ibrary 5 C/C++ Library This chapter describes the software library for operating this card. Only the functions in DOS library and Window s 95 DLL are described. Please refer to the PCIS - DASK function reference manual, which included in ADLINK CD, for the descriptions of the Windows 98/NT/2000 DLL functions.
C/C++ Library • 37 5.2 Programming Guide 5.2.1 Naming Convention The functions of the NuDAQ PCI cards or NuIPC CompactPCI cards’ software driver are using full - names to represent the functions' real meaning. The naming convention rules are: In DOS Environment : _{hardware_model}_{action_name}.
38 • C/C++ L ibrary 5.3 _9111_Initial @ Description This function is used to initialize PCI_9111. Every PCI_9111 card has to be initialized by this function before calling other functions.
C/C++ Library • 39 5.5 _9111_DO_Channel @ Description This function is used to write data to digital output ports. There are 16 digital output channels on PCI_9111.
40 • C/C++ L ibrary cardNo: The car d number of PCI - 9111 card initialized DIData: The value accessed from digital input port @ Return Code ERR_NoError 5.7 _9111_DI_Channel @ Description This function is used to read data from digital input port. There are 16 digital input channels on PCI_9 111.
C/C++ Library • 41 Visual Basic (Windows 95) W_9111_EDI (ByVal cardNo As Integer, DIData As Integer) As Integer @ Argument cardNo: The card number of PCI - 9111 card initialized DIData: The value accessed from extended digital input port @ Return Code ERR_NoError 5.
42 • C/C++ L ibrary U16 _9111_EDO_Read_Back (U16 cardNo, U16 *DOData ) C/C++ (Windows 95) U16 W_9111_EDO_Read_Back (U16 cardNo, U16 *DOData ) Visual Basic (Windows 95) W_9111_EDO_Read_Back (ByVal ca.
C/C++ Library • 43 5.12 _9111_DA @ Description This function is used to write data to D/A converters. There are one Digital - to - Analog conversion channel on the PCI - 9111. The resolution of each channel is 12 bit; i.e. the range is from 0 to 4095.
44 • C/C++ L ibrary 5.14 _9111_AD_Read_Data_Repeat @ Description This function is used to read the AD conversion data n times continuously. @ Syntax C/C++ (DOS) U16 _9111_AD_Read_Data_Repeat (U16 ca.
C/C++ Library • 45 ADChannelNo: selected channel number or the endin g channel number to perform A/D conversion. @ Return Code ERR_NoError 5.16 _9111_AD_Get_Channel @ Description This function reads from the multiplexer scan channel register to get the AD channel number and the value is stored in ADChannelNo.
46 • C/C++ L ibrary 5.17 _9111_AD_Set_Range @ Description This function is used to set the A/D range by m eans of writing data to the gain control register. The initial value of gain is '1' which is the default setting by the PCI - 9111 hardware.
C/C++ Library • 47 5.18 _9111_AD_Get_Range @ Description This function is used to get the A/D range from the gain control register. The relationship between gains and input voltage ranges are specifie d by following table. Input Range (V) Gain Gain Code ± 10 V X 1 AD_B_10_V ± 5 V X 2 AD_B_5_V ± 2.
48 • C/C++ L ibrary @ Argument card No: The card number of PCI - 9111 card initialized ADStatus: The status of AD FIFO. The AD FIFO status could be one of the following: ADSTS_FF_EF: FIFO is empty ADSTS_FF_HF: FIFO is half - full ADSTS_FF_FF: FIFO is full, A/D data may have been loss ADSTS_BUSY : AD is busy, A/D data is written into FIFO.
C/C++ Library • 49 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 descrip tion of AD trigger modes and section 5.
50 • C/C++ L ibrary W_9111_INT_Set_Reg (ByVal cardNo As Integer, ByVal INTC As Integer) As Integer @ Argument cardNo: The card number of PCI - 9111 card initialized INTC: The value written to the interrupt control register @ Return Code ERR_NoError 5.
C/C++ Library • 51 Visual Basic (Windows 95) W_9111_Reset_FIFO (ByVal cardNo As Integer) As Integer @ Argument cardNo: The card number of PCI - 9111 card initialized. @ Return Code ERR_NoError 5.25 _9111_AD_Sof t_Trigger @ Description This function is used to trigger the A/D conversion by software.
52 • C/C++ L ibrary count: value to write, only 8 LSBs are effective @ Return Code ERR_NoError 5.27 _9111_Get_8254 @ Description This function is used to read PCI - 9111 8254 Programmable Timer.
C/C++ Library • 53 W_9111_AD_Timer (ByVal cardNo As Integer, ByVal c1 As Integer, ByVal c2 As Integer) As Integer @ Argument cardNo: The card number of PCI - 91 11 card initialized. c1: frequency divider of timer #1 c2: frequency divider of timer #2 @ Return Code ERR_NoError 5.
54 • C/C++ L ibrary C/C++ (DOS) U16 _9111_Counter_Read (U16 cardNo, U16 *c0) C/C++ (Windows 95) U16 W_9111_Counter_Read (U16 cardNo, U16 *c0) Visual Basic (Windows 95) W_9111_Counter_Read (ByVal cardNo As Integer, c0 As Integer) As Integer @ Argument cardNo: The card number of PCI - 9111 card initialized.
C/C++ Library • 55 5.32 _9111_INT_Source_Control @ Description The PCI - 9111 has dual interrupts system, two interrupt sources can be generated and be checked by the software. This function is used to select and control PCI - 9111 interrupt sources by writing data to i nterrupt control register.
56 • C/C++ L ibrary 5.33 _9111_CLR_IRQ @ Description This function is used to clear interrupt request which is requeste d by PCI - 9111. If you use EOC interrupt or FIFO half full interrupt to transfer A/D converted data, you should use this function to clear interrupt request status; otherwise, the new coming interrupt will not be generated.
C/C++ Library • 57 5.35 _9111_Get_IRQ_Status @ Description This function is used to get th e status of the two IRQs (INT1 and INT2) in PCI - 9111 card.
58 • C/C++ L ibrary cardNo: the card number of PCI - 9111 card initialized. ad_data: the 16bits A/D converted value. The data format can be referred to section 5.
C/C++ Library • 59 W_9111_AD_HR_Aquire (ByVal cardNo As Integer, ad_data As Integer) As Integer @ Argument cardNo: the card number of PCI - 9111 card initialized. ad_data: the 16bits A/D converted value. The data format can be referred to se ction 5.
60 • C/C++ L ibrary Visual Basic (Windows 95) W_9111_AD_INT_Start (ByVal cardNo As Integer , ByVal auto_scan As Integer , ByVal ad_ch_no As Integer , ByVal ad_gain As Integer , ByVal count As Integer , ad_buffer As Integer , ByVal c1 As Integer, ByVal c2 As Integer) As Integer @ Argument cardNo: the card number of PCI - 9111 card initialized.
C/C++ Library • 61 function _9111_AD_FFHF_INT_Status(). While all the specified blocks of data are acquired, the inte rrupt status will be changed to “AD_FFHF_BLOCK_FULL”. The function can perform on single A/D channel (autoscan is disable) or multiple A/D channels (autoscan is enable) with fixed analog input range.
62 • C/C++ L ibrary 5.41 _9111_AD_INT_Status @ Description This function is used to check the status of interrupt operation . The _9111_AD_INT_Start() is executed on background, therefore you can issue this function to check the status of interrupt operation.
C/C++ Library • 63 C/C++ (Windows 95) U16 W_9111_AD_FFHF_INT_Status (U16 cardNo, U16 *status, U16 *blockNo) Visual Basic (Windows 95) W_9111_AD_FFHF_INT_Status (ByVal cardNo As Integer, status As Integer, blockNo As Integer) As Integer @ Argument cardNo: the card number of PCI - 9111 card initialized.
64 • C/C++ L ibrary 5.44 _9111_AD_INT_Stop @ Description This function is used to stop both the interrupt data transfer functions. After executing this function, the internal AD trigger is disabled and the AD timer is stopped.
Calibration • 65 6 Calibration In data acquisition process, how to calibrate the measurement devices to maintain its accuracy is very important. Users can calibrate the analog input and analog output channels under the users' operating envi ronment for optimizing the accuracy.
66 • Calibration 6.2 VR Assignment There are five variable resistors (VR) on the PCI - 9111 board to allow you making accurate adjustment on A/D and D/A channels.
Calibration • 67 6.4 D/A Adjustment 6.4.1 Unipolar Analog Output 1. Set JP1 to select unipolar. Connect VDM (+) to CN3 pin - 30 (DAOut) and VDM ( - ) to A.GND. 2. Write the digital value 0 to DAC. Trim VR2 to obtain 0V reading in the DVM 3. Write the digital value 4095 to DAC.
68 • Software Utility 7 Software Utility This software CD provides t wo utility programs. They are 9111util.exe which provides three functions, System Configuration, Calibration, and Functional Testing, and I_eeprom which is used to enable or disable interrupt of PCI - 9111 board.
Software Utility • 69 ****** PCI-9111 Utility Rev. 1.0 ****** Copyright © 1995 - 1996, ADLINK Technology Inc. All rights reserved. <F1>: Configuration. <F2>: Calibration. <F3>: Function testing. <Esc>: Quit. >>> Select function key F1 ~ F3, or press <Esc> to quit.
70 • Software Utility 7.1.3 Calibration This function guides you to calibrate the PCI - 9111. The calibration program serves as a useful test of the PCI - 9111's A/D and D/A functions and can aid in troubleshooting if problems arise.
Software Utility • 71 If completed Step5 then press <Enter> to next step, <ESC> to abort. 7.1.4 Functional Testing This function is used to test the functions of PCI - 9111, it includes Digital I/O testing, D/A testing, A/D polling testing, A/D Interrupt Testing, and A/D FIFO Half - Full Interrupt testing.
72 • Software Utility Figure 8.2 A/D with Polling Test Window 7.2 I_EEPROM This file is used to enable or disable the interrupt of PCI - 9111 board. This software is a text - driven program.
Product Warranty/Service • 73 Product Warranty/Service Seller warrants that equipment furnished will be free form defects in material and workmanship for a period of one year from the confirmed date.
An important point after buying a device HP (Hewlett-Packard) PCI-9111DG/HR (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought HP (Hewlett-Packard) PCI-9111DG/HR yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data HP (Hewlett-Packard) PCI-9111DG/HR - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, HP (Hewlett-Packard) PCI-9111DG/HR you will learn all the available features of the product, as well as information on its operation. The information that you get HP (Hewlett-Packard) PCI-9111DG/HR will certainly help you make a decision on the purchase.
If you already are a holder of HP (Hewlett-Packard) PCI-9111DG/HR, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime HP (Hewlett-Packard) PCI-9111DG/HR.
However, one of the most important roles played by the user manual is to help in solving problems with HP (Hewlett-Packard) PCI-9111DG/HR. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device HP (Hewlett-Packard) PCI-9111DG/HR along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center