HP (Hewlett-Packard) PCI-9111DG/HR manuel d'utilisation

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83

Aller à la page of

Un bon manuel d’utilisation

Les règles imposent au revendeur l'obligation de fournir à l'acheteur, avec des marchandises, le manuel d’utilisation HP (Hewlett-Packard) PCI-9111DG/HR. Le manque du manuel d’utilisation ou les informations incorrectes fournies au consommateur sont à la base d'une plainte pour non-conformité du dispositif avec le contrat. Conformément à la loi, l’inclusion du manuel d’utilisation sous une forme autre que le papier est autorisée, ce qui est souvent utilisé récemment, en incluant la forme graphique ou électronique du manuel HP (Hewlett-Packard) PCI-9111DG/HR ou les vidéos d'instruction pour les utilisateurs. La condition est son caractère lisible et compréhensible.

Qu'est ce que le manuel d’utilisation?

Le mot vient du latin "Instructio", à savoir organiser. Ainsi, le manuel d’utilisation HP (Hewlett-Packard) PCI-9111DG/HR décrit les étapes de la procédure. Le but du manuel d’utilisation est d’instruire, de faciliter le démarrage, l'utilisation de l'équipement ou l'exécution des actions spécifiques. Le manuel d’utilisation est une collection d'informations sur l'objet/service, une indice.

Malheureusement, peu d'utilisateurs prennent le temps de lire le manuel d’utilisation, et un bon manuel permet non seulement d’apprendre à connaître un certain nombre de fonctionnalités supplémentaires du dispositif acheté, mais aussi éviter la majorité des défaillances.

Donc, ce qui devrait contenir le manuel parfait?

Tout d'abord, le manuel d’utilisation HP (Hewlett-Packard) PCI-9111DG/HR devrait contenir:
- informations sur les caractéristiques techniques du dispositif HP (Hewlett-Packard) PCI-9111DG/HR
- nom du fabricant et année de fabrication HP (Hewlett-Packard) PCI-9111DG/HR
- instructions d'utilisation, de réglage et d’entretien de l'équipement HP (Hewlett-Packard) PCI-9111DG/HR
- signes de sécurité et attestations confirmant la conformité avec les normes pertinentes

Pourquoi nous ne lisons pas les manuels d’utilisation?

Habituellement, cela est dû au manque de temps et de certitude quant à la fonctionnalité spécifique de l'équipement acheté. Malheureusement, la connexion et le démarrage HP (Hewlett-Packard) PCI-9111DG/HR ne suffisent pas. Le manuel d’utilisation contient un certain nombre de lignes directrices concernant les fonctionnalités spécifiques, la sécurité, les méthodes d'entretien (même les moyens qui doivent être utilisés), les défauts possibles HP (Hewlett-Packard) PCI-9111DG/HR et les moyens de résoudre des problèmes communs lors de l'utilisation. Enfin, le manuel contient les coordonnées du service HP (Hewlett-Packard) en l'absence de l'efficacité des solutions proposées. Actuellement, les manuels d’utilisation sous la forme d'animations intéressantes et de vidéos pédagogiques qui sont meilleurs que la brochure, sont très populaires. Ce type de manuel permet à l'utilisateur de voir toute la vidéo d'instruction sans sauter les spécifications et les descriptions techniques compliquées HP (Hewlett-Packard) PCI-9111DG/HR, comme c’est le cas pour la version papier.

Pourquoi lire le manuel d’utilisation?

Tout d'abord, il contient la réponse sur la structure, les possibilités du dispositif HP (Hewlett-Packard) PCI-9111DG/HR, l'utilisation de divers accessoires et une gamme d'informations pour profiter pleinement de toutes les fonctionnalités et commodités.

Après un achat réussi de l’équipement/dispositif, prenez un moment pour vous familiariser avec toutes les parties du manuel d'utilisation HP (Hewlett-Packard) PCI-9111DG/HR. À l'heure actuelle, ils sont soigneusement préparés et traduits pour qu'ils soient non seulement compréhensibles pour les utilisateurs, mais pour qu’ils remplissent leur fonction de base de l'information et d’aide.

Table des matières du manuel d’utilisation

  • Page 1

    NuDAQ  PCI - 9111DG/HR Multi - Functions Data Acquisition Card User’s Guide[...]

  • Page 2

    @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. In no event will the manufacturer be liable for dir[...]

  • Page 3

    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.com Sales & Service service@adlink.com.tw NuDAQ nudaq@adlink.com.tw NuDAM nudam@adlink.c[...]

  • Page 4

    [...]

  • Page 5

    Table of Contents • i Table of Contents How to Use This Guide ............................................ v Chatper 1 Introduction .......................................... 1 1.1 Features .......................................................................... 1 1.2 Applications ................................................................[...]

  • Page 6

    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 .................................. 16 3.6 A/D Input Signal Range Control Register ...................... 16 3.7 A/D Range and Stat[...]

  • Page 7

    Table of Contents • iii 5.4 _9111_DO ..................................................................... 38 5.5 _9111_DO_Channel ...................................................... 39 5.6 _9111_DI ....................................................................... 39 5.7 _9111_DI_Channel ..................................................[...]

  • Page 8

    iv • Table of Contents Chatper 6 Calibration ........................................... 65 6.1 What do you need ......................................................... 65 6.2 V R Assignment ............................................................. 66 6.3 A/D Adjustment ............................................................. 66 6.4 D/[...]

  • Page 9

    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. It is divided into six chapters: • Chapter 1, "Introduction", gives an overview of the product feature s, applications, and specifica[...]

  • Page 10

    [...]

  • Page 11

    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. 1.1 Features The PCI - 9111 PCI Bus Advance[...]

  • Page 12

    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.2 A pplications • Industrial and laboratory ON/OFF control • Energy management • Communication • 16 TTL/DTL compatible digital input channels • Security control[...]

  • Page 13

    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. 0V; Max. 0.8V High[...]

  • Page 14

    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.4 Software Supporting ADLink provides versatile softwa re drivers and packages for users’ different approa[...]

  • Page 15

    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. The PCIS - LVIEW supports Windows 95/98/NT/2000. The LabVI[...]

  • Page 16

    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. It needs license. 1.4.9 PCIS - OPC: OPC Server PCIS - OPC is a[...]

  • Page 17

    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. Therefor e, it is not necessary to set the above configurations a[...]

  • Page 18

    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. Again[...]

  • Page 19

    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. Analog output range is - 10V~+10V Analog output range is 0V~ + 10V UI BI JP1 UI BI JP1 Fi[...]

  • Page 20

    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. 7. Position the board into the PCI slot you selected.[...]

  • Page 21

    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.4 Pin Assignment of CN2 Legend: DO n : Digital output signal channel n DI n : Digital input signal channel n GND : Di[...]

  • Page 22

    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. The functionality and con nections are specified a[...]

  • Page 23

    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. I[...]

  • Page 24

    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. The following table shows the registers map, incl[...]

  • Page 25

    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 AD5 AD4 for 16 - bits PCI - 9111HR Bit 7 6 5 4 3 2 1 0 BASE+0h AD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0 BASE+1h AD15 AD14 AD13 AD12 AD1 1 AD10 AD9 AD8 AD15 ~ AD[...]

  • Page 26

    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. There are 8 bits in this re[...]

  • Page 27

    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: Bit 7 6 5 4 3 2 1 0 BASE+8h AD_BUSY FF_FF FF_HF FF_EF 0 G2 G1 G0 BASE+9h X X X X X X X X Where GC0~GC2: A/D Range control setting FF_EF: ‘0’ mean[...]

  • Page 28

    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 Description 0/1 0 0 0/1 Software Trigger & Polling 0/1 0 1 0/1 Timer Pacer Trigger 0/1 1 X 0/1 External Trigger Note: The bits in this register can[...]

  • Page 29

    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.11 Hardware Interrupt Clear Register Because of th[...]

  • Page 30

    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. Note that the output EDO pins on CN3 (37 pin connector) can be set as on[...]

  • Page 31

    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.15 D/A Output Register The D/A converter will con[...]

  • Page 32

    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. 4.1 A/D Conversion Before pr[...]

  • Page 33

    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. Refer to section 2.7 ‘ Conne[...]

  • Page 34

    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. The single - ended mode [...]

  • Page 35

    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. The A/D gain control register [...]

  • Page 36

    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. The A/D trigger, A/D data transfer and Interrupt can be set independe[...]

  • Page 37

    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. The data polling transferring is very suitable for the application need to pr[...]

  • Page 38

    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. It is useful to combine the EOC interrupt transfer with the timer pacer trigge[...]

  • Page 39

    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. Set Pre - Trigger Mode Off: PTRG = OFF. 2. Set 8254 Counter #0 value N (N=1~65535)[...]

  • Page 40

    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. The relationship between voltage and the A/D data value is shown in the following table: A/D D[...]

  • Page 41

    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. The system is a Dual Interrupt System . The dual interrupt means the hardware can generate two interrupt request signals in the same time an[...]

  • Page 42

    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. The sources of INT1 and INT2 are selective by the I[...]

  • Page 43

    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. You only need to write digital values into the D/A[...]

  • Page 44

    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. The digital I/O registers ‘ format is shown in section 3.14. Note tha[...]

  • Page 45

    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. The minimum signal rate [...]

  • Page 46

    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. The function prototypes [...]

  • Page 47

    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}. e.g. _9111_Initial() . All functions in PCI [...]

  • Page 48

    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. @ Syntax C/C++ (DOS) U16 _9111_Initial (U16 *existCards, PCI_INFO *info) C/C++ (Windows 95) U16 W_9111_Initial (U16 *existCards, PCI_INFO *info) Visual Basic ([...]

  • Page 49

    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. You can control each digital output channel by this function directly. When performing this function, the digital output port is written and the output status will be changed to the v[...]

  • Page 50

    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. You can read each digital input channel by this fu[...]

  • Page 51

    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.9 _9111_EDO @ Description There are 4 extended digital output channels on PCI_9111[...]

  • Page 52

    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 cardNo As Integer, DOData As Integer) As Integer @ Argument cardNo: The card number of PCI - 9111 card initialized DOData: The read back value @ Return [...]

  • Page 53

    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. @ Syntax C/C++ (DOS) U16 _9111_DA (U16 cardNo, I16 DAData) C/C++ (Windows 95) U16 W_9111_DA (U16[...]

  • Page 54

    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 cardNo, I16 far *ADDa ta, U16 n) C/C++ (Windows 95) U16 W_9111_AD_Read_Data_Repeat (U16 cardNo, I16 *ADData, U16 n) Visual Basic (Windows 95) W_9111_AD_[...]

  • Page 55

    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. Under non - au to scan mode, the bit [...]

  • Page 56

    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. The relationship between gain and input voltage ranges in the following table: Input Range [...]

  • Page 57

    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.5 V X 4 AD_B_2_5_V ± 1.25 V X 8 AD_B_1_25_V ±[...]

  • Page 58

    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. @ Retur[...]

  • Page 59

    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.1.5 for the description of Pre - Trigger mode control. @ Syntax C/C++ (DOS) U16 _9111_AD_Get_Mode (U16 cardNo, U16 *ADMode) C/C++ (Windows 95) U16 W_9111_AD_Get[...]

  • Page 60

    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.23 _9111_INT_Get_Reg @ Description This function is used to get the AD mode setting and interrupt[...]

  • Page 61

    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. When the function is called, a trigger pulse wil[...]

  • Page 62

    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. The read value are stored in count. @ Syntax C/C++ (DOS) U16 _911 1_Get_8254 (U16 cardNo, U16 ChannelNo, U8 *count) C/C++ (Windows 95) U16 W_9111_Get_825[...]

  • Page 63

    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.29 _9111_Counter_Start @ Description The counter #0 of the PCI - 9111 [...]

  • Page 64

    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. c0: count value of counter#0 @ Return Cod[...]

  • Page 65

    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. Please refer to section 5.2 for detailed descripti[...]

  • Page 66

    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. @ S[...]

  • Page 67

    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. @ Syntax C/C++ (DOS) void _9111_Get_IRQ_Status (U16 cardNo, U16 *ch1, U16 *ch2) C/C++ (Windows 95) void W_9111_Get_IRQ_Status (U16 cardNo, U16 *ch1, U16 *ch2) Visual Basic (Windows 95) W_9111_Get [...]

  • Page 68

    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.1.6 for details. @ Return Code ERR_NoError ERR_FIFO_Half_NotReady 5.37 _9111_AD_Aquire @ Description This function is used to trigger the A/D conversion data for PCI - 9111 by software t[...]

  • Page 69

    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.1.6 for details. @ Return Code ERR_NoError ERR_AD_AquireTimeOut 5.39 _9111_AD_INT_Start @ Descript[...]

  • Page 70

    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. aut[...]

  • Page 71

    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. @ Syntax C/C++ (DOS) U16 _[...]

  • Page 72

    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. While all the specified counts of data are acquired, the interrupt status will be change[...]

  • Page 73

    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. status: the status of the INT data transfer. [...]

  • Page 74

    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. This function returns the number/block of data has been transferred, no matter whether the AD interrupt data transfer is [...]

  • Page 75

    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. This chapter will guide you to calibrate your PCI - 9111 to an ac[...]

  • Page 76

    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. The function of each VR is specified as Table 6.1. VR1 D/A full scale adjustment VR2 D/A offset adjustmen t VR3 A/D offset adjustment VR4 A/D full scale adjustment VR5 A/D programmable [...]

  • Page 77

    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. Trim VR1 to obtain 10V reading in the DVM. 6.4.2 Bipolar Analog Ou tpu[...]

  • Page 78

    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. The utility programs are described in the fol lowing sections. 7.1[...]

  • Page 79

    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. <<< 7.1.2 System Configuration Thi[...]

  • Page 80

    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. Note: For an environment with frequently large changes of temperature and vibration, a 3 months re - calibrat[...]

  • Page 81

    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. When you choose one of the t[...]

  • Page 82

    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. Because the default interrupt on PCI - 9111 board is “on”, users who doesn’t want to use interrupt function can use this utility to turn off the interr[...]

  • Page 83

    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 of p urchase of the original buyer and that upon written notice of any such defect, Seller will, at its option, repair or replace the defective item [...]