NuDAQ PCI- 9113A User Manual

32 channels isolated analog input card
Table of Contents

Advertisement

Quick Links

N u D A Q
P C I - 9 1 1 3 A
32 Channels Isolated
Analog Input Card
User' s Guide

Advertisement

Table of Contents
loading

Summary of Contents for NuDAQ PCI- 9113A

  • Page 1 N u D A Q P C I - 9 1 1 3 A 32 Channels Isolated Analog Input Card User’ s Guide...
  • Page 3 Trademarks NuDAQ , NuIPC , NuDAM , NuPRO are registered trademarks of ADLINK Technology Inc. Other product names mentioned herein are used for identification purposes only and may be trademarks and/or...
  • Page 4 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 service@ADLINK.com.tw Technical NuDAQ nudaq@ADLINK.com.tw Support NuDAM nudam@ADLINK.com.tw NuIPC nuipc@ADLINK.com.tw NuPRO nupro@ADLINK.com.tw...
  • Page 5: Table Of Contents

    Contents How to Use This Manual .........v Chapter 1 Introduction .......... 1 Features................2 Applications..............2 Specifications ..............3 Software Supporting............4 1.4.1 Programming Library..............4 ® 1.4.2 PCIS-LVIEW: LabVIEW Driver ..........4 1.4.3 PCIS-VEE: HP-VEE Driver............5 1.4.4 DAQBench : ActiveX Controls ..........5 1.4.5 DASYLab PRO................5...
  • Page 6 3.3.1 Connect with ACLD-9881 ............16 3.3.2 Connect with ACLD-9137 ............16 3.3.3 Connect with ACLD-9188 ............16 Chapter 4 Registers Format ....... 17 PCI PnP Registers............17 I/O Address Map............18 A/D Data Registers ............18 A/D Channel Control Register ........19 A/D Input Signal Range Control Register......
  • Page 7 _9113_AD_Read_Data............ 40 _9113_AD_Read_Data_Repeat........40 _9113_AD_Read_Data_MUX........... 41 _9113_AD_Read_Data_Repeat_MUX......42 _9113_AD_Set_Channel..........43 6.10 _9113_AD_Set_Range............ 45 6.11 _9113_AD_Get_Range ........... 46 6.12 _9113_AD_Get_Status............ 46 6.13 _9113_AD_Set_Mode ............. 47 6.14 _9113_AD_Get_Mode ............. 48 6.15 _9113_INT_Set_Reg............49 6.16 _9113_AD_Get_Reg ............49 6.17 _9113_Reset_FIFO ............50 6.18 _9113_AD_Soft_Trigger ..........50 6.19 _9113_Set_8254 .............
  • Page 8 7.1.3 Software A/D Offset Calibration..........71 Utilities................71 7.2.1 9113UTIL ..................71 7.2.2 I_EEPROM ...................75 Product Warranty/Service........77 iv Contents...
  • Page 9: How To Use This Manual

    How to Use This Manual This manual is designed to help you to use the PCI-9113A. The manual describes the versatile functions and the operati on theorem of the PCI-9113A. It is divided into six chapters: Chapter 1, "Introduction," gives an overview of the product features, applications, and specifications.
  • Page 11: Chapter 1 Introduction

    Introduction The PCI-9113A is an advanced data acquisition add-on card based on 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, process control, and etc. The outstanding feature of PCI-9113A is that high-speed isolated photo couplers are used between all signal lines of digital and analog converter.
  • Page 12: Features

    Features The PCI-9113A PCI Bus Data Acquisition Card provides the following advanced features: 32-bit PCI-Bus, Plug and Play 32-CH single-ended or 16-CH differential 12-bit analog inputs Isolation voltage: 2500Vrms Programmable gain of 1, 10, 100 Sampling rate up to 100KHz Trigger mode: software trigger, timer pacer On-board A/D 1K WORDS FIFO memory Auto-scanning channel selection...
  • Page 13: Specifications

    Specifications Analog Input (A/D) Converter: B.B. ADS774 equivalent, successive approximation type Resolution: 12-bit Input channels: 32 single-ended or 16 differential input Isolated photo coupler: PC410 Isolation voltage rated continuous: 2,500Vrms Instantaneous common mode rejection: 500V/us typically Analog Input Range: (Software controlled, and jumper selection) Bipolar: 10V, 1V , 0.1V or 5V, 0.5V, 0.05V Unipolar: 0~10V, 0~1V, 0~0.1V Throughput: 100K samples/sec.
  • Page 14: Software Supporting

    Software Supporting 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 d rivers for many software package such as LabVIEW , HP VEE DASYLab , InTouch...
  • Page 15: Pcis-Vee: Hp-Vee Driver

    1.4.3 PCIS-VEE: HP-VEE Driver The PCIS-VEE includes the user objects, which are used to 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.
  • Page 16 now. The PCIS-OPC supports the Windows NT. It needs license. Introduction...
  • Page 17: Chapter 2 Installation

    Installation This chapter describes how to install the PCI-9113A. The contents in the package and unpacking information are described. What You Have In addition to this User's Manual, the package includes the following items: PCI-9113A Data Acquisition Card ADLINK CD Software Installation Guide If any of these items is missing or damaged, contact the dealer from whom you purchased the product.
  • Page 18: Hardware 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.
  • Page 19: Device Installation For Windows Systems

    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.
  • Page 20: Jumper Settings

    Jumper Settings 2.6.1 Analog Signal Input Type Selection JP5 is the selection jumper of analog signal input type. The following diagram shows the two possible configurations. Single-Ended Input (Default) Differential Input 2.6.2 Polarity Selection Jumper JP2 is the polarity selection jumper. The following diagram shows the two configurations.
  • Page 21: Possible Ad Input Range Configurations

    2.6.4 Possible AD Input Range Configurations The JP2 and JP3 are used to setup the analog input signal range. There are three possible combinations, 0~10V, -5V~+5V and –10V ~ +10V. See the following table for reference. +/-5V +/-10V 0~10V 2.6.5 Binary/2’s Complement Coding Selection Jumper JP4 set the coding method of the A/D converter.
  • Page 23: Chapter 3 Signal Connections

    Signal Connections This chapter describes the connectors of PCI-9113A, and the signal connection between the PCI-9113A and external devices, such as daughter boards or other devices. Connectors’ Pin Assignment The PCI-9113A comes equipped with one 37-pin D-type connector - CN1 and one 5 -pin header -JP1. CN1 is used for analog signal input, and JP1 is used for external signal connection of 8254 counters 0.
  • Page 24: Signal Connections

    CN 1: Analog Input Signals CN1 (For Single-Ended Input) CN1(For Differential Input Mode) AI0H AI1H AI2H AI3H AI4H AI5H AI6H AI7H AI8H AI9H AI10 AI10H AI11 AI11H AI12 AI12H AI13 AI13H AI14 AI14H AI15 AI15H IGND IGND IGND IGND IGND IGND IGND IGND...
  • Page 25: Analog Input Signal Connection

    Analog Input Signal Connection The PCI-9113A provides 32 single-ended or 16 different analog input signals which can be converted to digital value by the A/D converter. To avoid ground loops and get more accurate measurement of A/D conversion, it is quite important to understand the signal source type. The single-ended mode has only one input relative to ground and is suitable for connecting with the floating signal source.
  • Page 26: Daughter Board Connection

    Daughter Board Connection The PCI-9113A can be connected with several different daughter boards, including ACLD-9881, ACLD-9137 and ACLD-9188. The functionality and connections are specified as follows. 3.3.1 Connect with ACLD-9881 The ACLD-9881 has a 37-pin D-sub connector, which can connect with PCI-9113A through 37-pin assemble cable.
  • Page 27: Chapter 4 Registers Format

    Registers Format The 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 user have to understand more about the PCI interface then start any low-level programming.
  • Page 28: I/O Address Map

    base address by using the BIOS function call. The registers in this register bank are in 16 bits. The users can access these registers by 16 bits I/O instructions. There is one 32 bits register on PCI-9113A. The 32 bits register occupied base address #2. The base address is allocated by PCI BIOS and is stored at offset 1Ch of PCR.
  • Page 29: A/D Channel Control Register

    BASE+1 AD11 AD10 AD11~AD0: Analog to digital data. AD11 is the Most Significant Bit (MSB) of PCI-9113A. AD0 is the Least Significant Bit(LSB). A/D Channel Control Register The PCI-9113A provides 32 analog input channels. The channel control register is used to set the A/D channel to be converted. The 5 LSBs of this register control the channel number.
  • Page 30: A/D Status Readback Register

    500mV 100mV 50mV 100mV A/D Status Readback Register The A/D FIFO status can be read back from this register. Address: BASE + 2 Attribute: read only Data Format: BASE+2 AD_BUSY FF_FF FF_HF FF_EF BASE+3 FF_EF: ‘0’ means FIFO is empty FF_HF: ‘0’...
  • Page 31: Software Trigger Register

    Software Trigger Register To generate a trigger pulse to the PCI-9113A for A/D conversion, you just write any data to this register, then the A/D converter will be triggered. Address: BASE + 8 Attribute: write only Data Format: BASE+8 Interrupt Control and Readback Register The PCI-9113A has a dual interrupt system, thus two interrupt sources can be generated and be checked by the software.
  • Page 32: A/D Data And Channel Number Registers

    request event; otherwise, that another interrupt request is inserted will cause the software to hang on processing the interrupt event. Address: BASE + 0Ah Attribute: write only Data Format: BASE+0Ah 4.11 A/D Data and Channel Number Registers The PCI-9113A A/D data and channel number is stored in the FIFO. Reading this register by a 32-bit I/O instruction can read back the data and channel number simultaneously.
  • Page 33: Chapter 5 Operation Theorem

    Operation Theorem The operation theorem of the functions on PCI-9113A card is described in this chapter. The operation theorem can help you to understand how to manipulate or to program the PCI-9113A. A/D Conversion Before programming the PCI-9113A to perform the A/D conversion, you should understand the following issues: A/D conversion procedure A/D signal source control...
  • Page 34: A/D Conversion Procedure

    5.1.1 A/D Conversion Procedure For using the A/D converter, users must know about the property of the signal to be measured at first. The users can decide which channels to be used and connect the signals to the PCI-9113A. Refer to the chapter 3 ‘Signal Connection’.
  • Page 35 R A n A n a l o g I n p u t To Multiplexer 0 . O h m C h a n n e l # n C A n R B n O P E N O P E N The RC network can also be used as current sensor, which transfers the current into voltage.
  • Page 36 Note: Gain value of 1000 is programmable, however, the accuracy is not guaranteed. Operation Theorem...
  • Page 37: A/D Trigger Source Control

    5.1.3 A/D Trigger Source Control The A/D conversion is started by a trigger source, and then the A/D converter will start to convert the signal to a digital value. In PCI-9113A, two internal sources can be selected: the software trigger or the timer pacer trigger.
  • Page 38 The data must be transferred to host memory after the date is ready and before the FIFO is full. On the PCI-9113A, many data transfer modes can be used. The different transfer modes are specified as follows: Software Data Polling The software data polling is the easiest way to transfer A/D data.
  • Page 39 reading data. To avoid this problem, the half-full polling method is used. If the A/D trigger rate is 100KHz, the FIFO will be half-full (512 words) in 5.12 ms. If the user‘s software checks the FIFO half full signal every 5 ms and the FIFO is not half-full, the software does not read data.
  • Page 40 Under this mode, an interrupt signal is generated when FIFO becomes half-full. It means there are 512 words data in the FIFO already. The ISR can read a block of data every interrupt occurring. This method is very convenient to read A/D in size of a “block” (512 words) and it is benefit for software programming.
  • Page 41: A/D Data Format

    5.1.5 A/D Data Format The range of A/D data read from the FIFO port is from 0 to 4095. As the A/D gain is 1, the A/D signal range is roughly -10V ~ +10V or -5V~+5V (bi-polar) and 0V~+10V (uni-polar). The relationship between the voltage and the value is shown in the following table: Voltage (Volts) A/D Data (Hex)
  • Page 42: Interrupt Control

    2’s Complement Coding: Bipolar 10V Voltage = ( AD_Data * 20 ) / ( 4096 * gain ) Bipolar 5V Voltage = ( AD_Data * 10 ) / ( 4096 * gain ) Unipolar +10V: Voltage = ( AD_Data * 10 ) / ( 4096 * gain ) + (5 / gain) where the gain is 1,10,100.
  • Page 43: Irq Level Setting

    Fig 5.2.1 Dual Interrupt System of PCI-9113A 5.2.2 IRQ Level Setting There is only one IRQ level used by this card, although it is a dual interrupt system. This card uses INT #A interrupt request signal to PCI bus. The motherboard circuits will transfer INT #A to one of the AT bus IRQ levels.
  • Page 44 initial condition of the PCI controller, the PCI BIOS still assigns an IRQ level to the PCI card and it will occupy the PC resource. It is not suggested to re-design the initial condition of the PCI card by users‘ own application software.
  • Page 45: Timer/Counter Operation

    Timer/Counter Operation The PCI-9113A has an interval timer/counter 8254 on board. Refer to section 3.5 for the signal connection and the configuration of the counters. 5.3.1 Introduction One 8254 programmable timer/counter chip is installed in PCI-9113A. There are three counters in one 8254 chip and 6 possible operation modes for each counter.
  • Page 47: Chapter 6 C/C++ Library

    C/C++ Library This chapter describes the s oftware library for operating this card. Only the functions in DOS library and Windows 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.
  • Page 48: Programming Guide

    Programming Guide 6.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. _6308_Initial(). All functions in PCI-6308 driver are with 6308 as {hardware_model}. But they can be used by PCI-6308V, PCI-6308A.
  • Page 49: 9113_Initial

    _9113_Initial @ Description This function is used to initialize PCI-9113A card. Every PCI-9113A card has to be initialized by this function before calling other functions. @ Syntax C/C++ (DOS) U16 _9113_Initial (U16 *existCards, PCI_INFO *info) C/C++ (Windows 95) U16 W_9113_Initial (U16 *existCards, PCI_INFO *info) Visual Basic (Windows 95) W_9113_Initial (existCards As Integer, info As PCI_INFO) As Integer @ Argument...
  • Page 50: 9113_Ad_Read_Data

    Visual Basic (Windows 95) W_9113_Software_Reset (ByVal cardNo As Integer) @ Argument cardNo: The card number of initialized PCI-9113A card @ Return Code None _9113_AD_Read_Data @ Description This function is used to read the A/D conversion data from A/D Data register. The resolution of A/D conversion data is 12 bits. @ Syntax C/C++ (DOS) U16 _9113_AD_Read_Data (U16 cardNo, U16 far *ADData)
  • Page 51: 9113_Ad_Read_Data_Mux

    This function is used to read the A/D conversion data from the data register n times continuously. @ Syntax C/C++ (DOS) U16 _9113_AD_Read_Data_Repeat (U16 cardNo, I16 far *ADData, U16 C/C++ (Windows 95) U16 W_9113_AD_Read_Data_Repeat (U16 cardNo, I16 *ADData, U16 Visual Basic (Windows 95) W_9113_AD_Read_Data_Repeat (ByVal cardNo As Integer, ADData As Integer, ByVal n As Integer) As Integer @ Argument...
  • Page 52: 9113_Ad_Read_Data_Repeat_Mux

    Visual Basic (Windows 95) W_9113_AD_Read_Data_MUX (ByVal cardNo As Integer, ADData As Long) As Integer @ Argument cardNo: The card number of PCI-9113A card initialized. ADData: A/D converted value. The resolution of A/D conversion data is 12 bits. The unsigned integer data format of ADData is as follows: Every 32-bit unsigned integer data: bit 0…...
  • Page 53: 9113_Ad_Set_Channel

    cardNo: The card number of PCI-9113A card initialized ADData: A/D converted value. The resolution of A/D conversion data is 12 bits. The unsigned integer data format of ADData is as follows: Every 32-bit unsigned integer data: bit 0… 11: A/D converted data bit 16, 17, …...
  • Page 54 ADChannelNo: The selected channel number or the ending channel number to perform A/D conversion. @ Return Code ERR_NoError C/C++ Software Library...
  • Page 55: 9113_Ad_Set_Range

    6.10 _9113_AD_Set_Range @ Description This function is used to set the A/D range by means of writing data to the A/D range control register. The initial value of gain is '1' which is the default setting by PCI-9113A hardware. The relationship between gain and input voltage ranges is specified by the following tables: Input Range (V) Gain...
  • Page 56: 9113_Ad_Get_Range

    ERR_NoError 6.11 _9113_AD_Get_Range @ Description This function is used to get the A/D range from the A/D range control register. @ Syntax C/C++ (DOS) U16 _9113A_AD_Get_Range (U16 cardNo, U16 *ADRange) C/C++ (Windows 95) U16 W_9113A_AD_Get_Range (U16 cardNo, U16 *ADRange) Visual Basic (Windows 95) W_9113A_AD_Get_Range (ByVal cardNo As Integer, ADRange As Integer) As Integer @ Argument...
  • Page 57: 9113_Ad_Set_Mode

    C/C++ (Windows 95) U16 W_9113_AD_Get_Status (U16 cardNo, U16 *ADStatus) Visual Basic (Windows 95) W_9113_AD_Get_Status (ByVal cardNo As Integer, ADStatus As Integer) As Integer @ Argument cardNo: The card number of PCI-9113A card initialized. ADStatus: The status of AD FIFO. The AD FIFO status could be one of the following: ADSTS_FF_EF: FIFO is empty...
  • Page 58: 9113_Ad_Get_Mode

    A_9113_AD_FIFO_ENABLE A_9113_AD_FIFO_DISABLE A_9113_AD_TimerTrig A_9113_AD_SoftTrig A_9113_AD_AutoScan @ Return Code ERR_NoError 6.14 _9113_AD_Get_Mode @ Description This function is used to get A/D mode from A/D trigger mode control register. Please refer to section 5.1.3 for the detailed description of A/D trigger modes. @ Syntax C/C++ (DOS) U16 _9113_AD_Get_Mode (U16 cardNo, U16 *ADMode)
  • Page 59: 9113_Int_Set_Reg

    6.15 _9113_INT_Set_Reg @ Description This function is used to select the interrupt sources by writing data to interrupt control register. Please refer to section 4.8 to learn how to set the interrupt control register. @ Syntax C/C++ (DOS) U16 _9113_INT_Set_Reg (U16 cardNo, U16 INTC) C/C++ (Windows 95) U16 W_9113_INT_Set_Reg (U16 cardNo, U16 INTC) Visual Basic (Windows 95)
  • Page 60: 9113_Reset_Fifo

    W_9113_INT_Get_Reg (ByVal cardNo As Integer, INTC As Integer) As Integer @ Argument cardNo: The card number of PCI-9113A card initialized. INTC: The value returned from the interrupt control register. @ Return Code ERR_NoError 6.17 _9113_Reset_FIFO @ Description The PCI-9113A A/D data are stored in the FIFO after conversion. This function is used to reset A/D FIFO.
  • Page 61: 9113_Set_8254

    This function is used to trigger the A/D conversion by software. When this function is called, a trigger pulse will be generated and the converted data will be stored from address Base +0. @ Syntax C/C++ (DOS) U16 _9113_AD_Soft_Trigger (U16 cardNo) C/C++ (Windows 95) U16 W_9113_AD_Soft_Trigger (U16 cardNo) Visual Basic (Windows 95)
  • Page 62 @ Return Code ERR_NoError C/C++ Software Library...
  • Page 63: 9113_Get_8254

    6.20 _9113_Get_8254 @ Description This function is used to read PCI-9113A 8254 Programmable Timer. The read value is stored in count. @ Syntax C/C++ (DOS) U16 _9113_Get_8254 (U16 cardNo, U16 ChannelNo, U8 *count) C/C++ (Windows 95) U16 W_9113_Get_8254 (U16 cardNo, U16 ChannelNo, U8 *count) Visual Basic (Windows 95) W_9113_Get_8254 (ByVal cardNo As Integer, ByVal ChannelNo...
  • Page 64: 9113_Counter_Start

    @ Syntax C/C++ (DOS) U16 _9113_AD_Timer (U16 cardNo, U16 c1, U16 c2) C/C++ (Windows 95) U16 W_9113_AD_Timer (U16 cardNo, U16 c1, U16 c2) Visual Basic (Windows 95) W_9113_AD_Timer (ByVal cardNo As Integer, ByVal c1 As Integer, ByVal c2 As Integer) As Integer @ Argument cardNo: The card number of PCI-9113A card initialized.
  • Page 65: 9113_Counter_Read

    Mode: the 8254 timer mode, the possible values are: TIMER_MODE0, TIMER_MODE1, TIMER_MODE2, TIMER_MODE3, TIMER_MODE4, TIMER_MODE5. Please refer to Counter/Timer 8254's reference manual for more detailed information of timer mode. c0: counter value of counter#0 @ Return Code ERR_NoError 6.23 _9113_Counter_Read @ Description This function is used to read the counter value of the Counter#0.
  • Page 66: 9113_Int_Source_Control

    This function is used to stop the timer operation. The timer is set as the “One-shot” mode with counter value ‘0’. That is, the clock output signal will be set as high after executing this function. @ Syntax C/C++ (DOS) U16 _9113_Counter_Stop (U16 cardNo, U16 *c0) C/C++ (Windows 95) U16 W_9113_Counter_Stop (U16 cardNo, U16 *c0)
  • Page 67: 9113_Clr_Irq

    @ Argument cardNo: The card number of PCI-9113A card initialized. int1Ctrl: The value to control INT1, the value can be set and the corresponding defi nition is the following: 0: INT1 disable 1: INT1 AD end of conversion (EOC) interrupt 2: INT1 FIFO half full int2Ctrl: The value to control INT2, the value can be set and the corresponding definition is the following:...
  • Page 68: 9113_Get_Irq_Channel

    6.27 _9113_Get_IRQ_Channel @ Description This function is used to get the IRQ level of the PCI-9113A card currently used. @ Syntax C/C++ (DOS) void _9113_Get_IRQ_Channel (U16 cardNo, U16 *irq_no) C/C++ (Windows 95) void W_9113_Get_IRQ_Channel (U16 cardNo, U16 *irq_no) Visual Basic (Windows 95) W_9113_Get_IRQ_Channel (ByVal cardNo As Integer, irq_no As Integer) @ Argument cardNo: The card number of PCI-9113A card initialized.
  • Page 69: 9113_Ad_Ffhf_Polling

    @ Argument cardNo: the card number of PCI-9113A card initialized. ch1: the IRQ status of INT1 ch2: the IRQ status of INT2 @ Return Code None 6.29 _9113_AD_FFHF_Polling @ Description This function is used to perform the powerful AD data transfer by applying half-full polling mode.
  • Page 70: 9113_Ad_Ffhf_Polling_Mux

    ERR_NoError ERR_FIFO_Half_NotReady 6.30 _9113_AD_FFHF_Polling_MUX @ Description This function is used to perform powerful AD data transfer by applying half-full polling mode. This method checks the FIFO half full signal every time calling this function. If the FIFO is not half-full, the software does not read data.
  • Page 71: 9113_Ad_Aquire_Mux

    @ Description This function is used to poll the A/D converted data for PCI-9113A by software trigger. It reads the A/D data when the data is ready. @ Syntax C/C++ (DOS) U16 _9113_AD_Aquire (U16 cardNo, U16 far *ad_data) C/C++ (Windows 95) U16 W_9113_AD_Aquire (U16 cardNo, U16 *ad_data) Visual Basic (Windows 95) W_9113_AD_Aquire (ByVal cardNo As Integer, ad_data As Integer) As...
  • Page 72: 9113_Ad_Int_Start

    cardNo: The card number of PCI-9113A card initialized. ad_data: The 32-bit A/D converted value. The resolution of A/D conversion data is 12 bits. The unsigned integer data format of ADData is as follows: Every 32-bit unsigned integer data: bit 0… 11: A/D converted data bit 16, 17, …...
  • Page 73 C/C++ (DOS) U16 _9113_AD_INT_Start (U16 cardNo, U16 auto_scan, U16 ad_ch_no, U16 ad_gain, U16 count, U32 *ad_buffer, U16 c1, U16 c2) C/C++ (Windows 95) U16 W_9113_AD_INT_Start (U16 cardNo, U16 auto_scan, U16 ad_ch_no, U16 ad_gain, U16 count, U32 *ad_buffer, U16 c1, U16 c2) Visual Basic (Windows 95) W_9113_AD_INT_Start (ByVal cardNo As Integer, ByVal auto_scan As Integer, ByVal ad_ch_no As Integer, ByVal ad_gain As Integer, ByVal...
  • Page 74: 9113_Ad_Ffhf_Int_Start

    ERR_InvalidADChannel ERR_AD_InvalidGain ERR_InvalidTimerValue ERR_NoError 6.34 _9113_AD_FFHF_INT_Start @ Description This function is used to initial and start up the interrupt transfer by using AD FIFO Half-Full Interrupt Transfer Mode. This function could perform A/D conversion N times with interrupt data transfer by using pacer trigger.
  • Page 75: 9113_Ad_Int_Status

    Integer, ByVal blockNo As Integer, ad_buffer As Long, ByVal c1 As Integer, ByVal c2 As Integer) As Integer @ Argument cardNo: The card number of PCI-9113A card initialized. auto_scan: 0: autoscan is disabled. 1: autoscan is enabled. ad_ch_no: A/D channel number. 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_ch_no], ...
  • Page 76: 9113_Ad_Ffhf_Int_Status

    This function is used to check the status of interrupt operation. The _9113_AD_INT_Start() is executed on background, therefore you can issue this function to check the status of interrupt operation. @ Syntax C/C++ (DOS) U16 _9113_AD_INT_Status (U16 cardNo, U16 *status, U16 *count) C/C++ (Windows 95) U16 W_9113_AD_INT_Status (U16 cardNo, U16 *status, U16 *count) Visual Basic (Windows 95)
  • Page 77: 9113_Ad_Ffhf_Int_Restart

    cardNo: The card number of PCI-9113A card initialized. status: The status of the INT data transfer. blockno: The A/D conversion block number performed currently. @ Return Code ERR_NoError 6.37 _9113_AD_FFHF_INT_Restart @ Description After calling _9113_AD_FFHF_INT_Start(), the A/D conversion and transfer won’t stop until the N blocks of the A/D data is acquired, calling this function can restart the FIFO half full interrupt transfer without re-initial all the relative registers.
  • Page 78 timer is stopped. This function returns the number of data has been transferred, no matter whether the A/D interrupt data transfer is stopped by this function. @ Syntax C/C++ (DOS) U16 _9113_AD_INT_Stop (U16 cardNo, U16 *count) C/C++ (Windows 95) U16 W_9113_AD_INT_Stop (U16 cardNo, U16 *count) Visual Basic (Windows 95) W_9113_AD_INT_Stop (ByVal cardNo As Integer, count As Integer) As Integer...
  • Page 79: Chapter 7 Calibration & Utilities

    Calibration & Utilities In data acquisition process, how to calibrate your measurement devices to maintain its accuracy is very important. Users can calibrate the analog input channels under the users' operating environment for optimizing the accuracy. This chapter will guide you to calibrate your PCI-9113A to an accuracy condition.
  • Page 80: Vr Assignment

    7.1.1 VR Assignment There are four variable resistors (VR) on the PCI-9113A board to allow you making accurate adjustment on A/D channels. The function of each VR is specified as Table 7.1. A/D uni-polar offset adjustment A/D full scale adjustment A/D bi-polar offset adjustment PGA offset adjustment Table 7.1 Function of VRs...
  • Page 81: Software A/D Offset Calibration

    5. Set the analog gain = 1 and channel number #0 by software. 6. Short the A/D channel 0 (pin 1 of CN1) to ground (GND). 7. Adjust VR3 to obtain reading between 2047~2048. 8. Applied a +10V reference input signal to A/D channel 0 (pin 1 of CN1), and trim the VR2 to obtain reading between 4094~4095.
  • Page 82 7.2.1.1 Running 9113UTIL.exe After finishing the DOS installation, you can execute the utility by typing as follows: C> cd \ADLINK\DOS\9113\Util C> 9113AUTIL The following diagram will be displayed on you screen. The message at the bottom of each window guides you how to select item, go to the next step and change the default settings.
  • Page 83 ****** Calibration of PCI9113A ****** <1> Card Type PCI9113A <2> AD Polarity setting Bipolar <3> AD Input Range Gain=1 Bipolar(-10V~10V) >>> <Up/Down>: Select Item, <PgUp/PgDn>: Change Setting <<< 7.2.1.3 Calibration This function guides you to calibrate the PCI-9113A. The calibration program serves as a useful test of the PCI-9113A's A/D functions and can aid in troubleshooting if problems arise.
  • Page 84 ****** PCI-9113A Calibration ****** <1> A/D Bipolar (Gain = 1, -10V ~ 10V) adjusting <2> A/D Unipolar (Gain = 1, 0V ~ 10V) adjusting <Esc> Quit Select 1 to 2 or <Esc> to quit calibration. 7.2.1.4 Functional Testing This function is used to test the functions of PCI-9113A. It includes A/D polling testing, A/D Interrupt Testing, and A/D FIFO Half-Full Interrupt testing.
  • Page 85: I_Eeprom

    7.2.2 I_EEPROM This file is used to enable or disable the interrupt of PCI-9113A board. This software is a text-driven program. Because the default interrupt on PCI-9113A board is “on”, users who don’t want to use interrupt function can use this utility to turn off the interrupt of their PCI-9113A board. 7.2.2.1 Running I_eeprom.exe After finishing the DOS installation, you can execute the utility by typing as...
  • Page 87: Product Warranty/Service

    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 purchase of the original buyer and that upon written notice of any such defect, Seller will, at its option, repair or replace the defective item under the terms of this warranty, subject to the provisions and specific exclusions listed herein.

Table of Contents