background image

 

 

N u D A Q

 

P C I - 9 1 1 3 A  

32 Channels Isolated 

Analog Input Card 

User’s Guide

 

Summary of Contents for 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 2: ......

Page 3: ...t of the use or inability to use the product or documentation even if advised of the possibility of such damages This document contains proprietary information protected by copyright All rights are reserved No part of this manual may be reproduced by any mechanical electronic or other means in any form without prior written permission of the manufacturer Trademarks NuDAQ NuIPC NuDAM NuPRO are regi...

Page 4: ...RO nupro ADLINK com tw Software sw ADLINK com tw AMB amb ADLINK com tw TEL 886 2 82265877 FAX 886 2 82265717 Address 9F No 166 Jian Yi Road Chungho City Taipei 235 Taiwan R O C Please inform or FAX us of your detailed information for a prompt satisfactory and constant service Detailed Company Information Company Organization Contact Person E mail Address Address Country TEL FAX Web Site Questions ...

Page 5: ... PCIS ICL InControl TM Driver 5 1 4 9 PCIS OPC OPC Server 5 Chapter 2 Installation 7 2 1 What You Have 7 2 2 Unpacking 7 2 3 Hardware Installation 8 2 4 Device Installation for Windows Systems 9 2 5 PCI 9113A s Layout 9 2 6 Jumper Settings 10 2 6 1 Analog Signal Input Type Selection 10 2 6 2 Polarity Selection Jumper 10 2 6 3 Full Range Jumper 10 2 6 4 Possible AD Input Range Configurations 11 2 6...

Page 6: ...ar Register 21 4 11 A D Data and Channel Number Registers 22 Chapter 5 Operation Theorem 23 5 1 A D Conversion 23 5 1 1 A D Conversion Procedure 24 5 1 2 A D Signal Source Control 24 5 1 3 A D Trigger Source Control 27 5 1 4 A D Data Transfer Modes 27 5 1 5 A D Data Format 31 5 2 Interrupt Control 32 5 2 1 System Architecture 32 5 2 2 IRQ Level Setting 33 5 2 3 Dual Interrupt System 33 5 2 4 Inter...

Page 7: ...0 _9113_Get_8254 53 6 21 _9113_AD_Timer 53 6 22 _9113_Counter_Start 54 6 23 _9113_Counter_Read 55 6 24 _9113_Counter_Stop 55 6 25 _9113_INT_Source_Control 56 6 26 _9113_CLR_IRQ 57 6 27 _9113_Get_IRQ_Channel 58 6 28 _9113_Get_IRQ_Status 58 6 29 _9113_AD_FFHF_Polling 59 6 30 _9113_AD_FFHF_Polling_MUX 60 6 31 _9113_AD_Aquire 60 6 32 _9113_AD_Aquire_MUX 61 6 33 _9113_AD_INT_Start 62 6 34 _9113_AD_FFHF...

Page 8: ...iv Contents 7 1 3 Software A D Offset Calibration 71 7 2 Utilities 71 7 2 1 9113UTIL 71 7 2 2 I_EEPROM 75 Product Warranty Service 77 ...

Page 9: ...in assignment and connection between outside signals or devices and PCI 9113A Chapter 4 Registers Format describes the details of registers format and structure of PCI 9113A this information is important for the programmers who want to control the hardware by low level programming Chapter 5 Operation Theorem describes how to operate PCI 9113A The A D timer counter and some programming concepts are...

Page 10: ......

Page 11: ...ng feature of PCI 9113A is that high speed isolated photo couplers are used between all signal lines of digital and analog converter It can protect your PC and peripherals from damage due to the high voltages on the analog inputs The block diagram of PCI 9113A is shown below ControlLogic PCI Bus Controller Boot EPROM 1K A D FIFO 12 Bit A D Converter ADS774 Isolated DC DC Converter 15 32 CH Single ...

Page 12: ... software trigger timer pacer On board A D 1K WORDS FIFO memory Auto scanning channel selection Input impedance 10M Ω Analog input voltage protection 70 voltage peak to peak Compact size half size PCB Integral 3000VDC Isolation DC to DC converters for stable power sources DB 37 connector pin assignment is fully compatible with ACL 8113 and PCI 9113 1 2 Applications Industrial process control Trans...

Page 13: ...e 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 Over voltage Protection Continuous 35V maximum Accuracy 0 015 of reading 1 bit Input Impedance 10 MΩ Trigger Mode Software and Pacer Data Transfer Pooling Interrupt FIFO half full interrupt FIFO dEPTH 1024 samples General Specifications Connector 37 pin D type connector Ope...

Page 14: ...de u Windows 95 DLL For VB VC Delphi BC5 the functions descriptions are included in this user s guide u PCIS DASK Include device drivers and DLL for Windows 98 Windows NT and Windows 2000 DLL is binary compatible across Windows 98 Windows NT and Windows 2000 That means all applications developed with PCIS DASK are compatible across Windows 98 Windows NT and Windows 2000 The developing environment ...

Page 15: ...age which provides easy setup instrument functions such as FFT analysis Please contact us to get DASYLab PRO which include DASYLab and ADLink hardware drivers 1 4 6 PCIS DDE DDE Server and InTouchTM DDE stands for Dynamic Data Exchange specifications The PCIS DDE includes the PCI cards DDE server The PCIS DDE server is included in the ADLINK CD It needs license The DDE server can be used conjuncti...

Page 16: ...6 Introduction now The PCIS OPC supports the Windows NT It needs license ...

Page 17: ...stallation Guide If any of these items is missing or damaged contact the dealer from whom you purchased the product Save the shipping materials and carton in case you want to ship or store the product in the future 2 2 Unpacking Your PCI 9113A card contains sensitive electronic components that can be easily damaged by static electricity The card should be done on a grounded anti static mat The ope...

Page 18: ...e equipped with plug and play PCI controller it can requests base addresses and interrupt according to PCI standard The system BIOS will install the system resource based on the PCI cards configuration registers and system parameters which are set by system BIOS Interrupt assignment and memory usage I O port locations of the PCI cards can be assigned by system BIOS only These system resource assig...

Page 19: ...tems Once Windows 95 98 2000 has started the Plug and Play function of Windows system will find the new NuDAQ NuIPC cards If this is the first time to install NuDAQ NuIPC cards in your Windows system you will be informed to input the device information source Please refer to the Software Installation Guide for the steps of installing the device 2 5 PCI 9113A s Layout Figure 2 1 PCB Layout of the P...

Page 20: ...5 Single Ended Input Default JP5 Differential Input 2 6 2 Polarity Selection Jumper JP2 is the polarity selection jumper The following diagram shows the two configurations JP2 Uni polar input Default JP2 Bi polar input 2 6 3 Full Range Jumper JP3 set the full range of the analog input channels The following diagram shows the possible configurations JP3 20V Full Range Default JP3 10V Full Range ...

Page 21: ... three possible combinations 0 10V 5V 5V and 10V 10V See the following table for reference JP3 2 3 1 2 JP2 1 2 5V 10V 2 3 0 10V X 2 6 5 Binary 2 s Complement Coding Selection Jumper JP4 set the coding method of the A D converter The following diagram shows the possible configurations JP4 Binary Coding Default JP4 2 s Complement Coding ...

Page 22: ......

Page 23: ... devices such as daughter boards or other devices 3 1 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 The pin assignments of CN1 and JP1 are illustrated in the Figure 3 1 and Figure 3 2 ...

Page 24: ...AI5H AI3H AI1H AI2H AI0H AI12H AI14H AI10H AI8H AI11H AI13H AI9H AI7H IGND AI15H IGND IGND IGND CN1 For Differential Input Mode AI4L AI6L AI2L AI0L AI12L AI10L AI8L AI5L AI3L AI1L AI11L AI13L AI9L AI7L AI15L AI14L IGND Figure 3 1 Pin Assignment of CN1 Legend AIn Analog Input Channel n for single ended n 0 31 AixH Analog Input Channel x for differential positive input x 0 15 AixL Analog Input Chann...

Page 25: ...hen more than two floating sources are connected the sources must be with common ground AIn IGND n 0 31 Signal Source Opertional Amplifier To A D Input Multipexer V1 V2 Figure 3 3 Signal sources and single ended connection The differential input DI mode means the voltage signal to be measured is by a pair of signals for example AI3L and AI3H is a differential pair The AD circuits measure the volta...

Page 26: ...ssemble cable The ACLD 9881 provides low pass filter for the 32 channels it is very flexible for wiring 3 3 2 Connect with ACLD 9137 The ACLD 9137 is a direct connector for the card which is equipped with 37 pin D sub connector This board provides a simple way for connection It is very suitable for the simple applications that do not need complex signal condition before the A D conversion is perfo...

Page 27: ...sters The PCR which i s compliant to the PCI bus specifications is initialized and controlled by the plug play PnP PCI BIOS User s can study the PCI BIOS specification to understand the operation of the PCR Please contact with PCISIG to acquire the specifications of the PCI interface The PCI bus controller PCI 9050 is provided by PLX technology Inc www plxtech com For more detailed information of ...

Page 28: ...ses relative to the base address Users can read the PCR to get the two PCI 9113A base addresses by using the PCI BIOS function call I O Base Address 1 Write Read Base 00h AD MUX channel no AD FIFO value Base 02h AD range control AD status read back Base 04h AD trigger mode AD trigger mode Base 06h Interrupt control Interrupt setting Read Back Base 08h Software AD trigger Base 0Ah Clear H W IRQ I O...

Page 29: ...ute write only Data Format Bit 7 6 5 4 3 2 1 0 BASE 0 x x x CN4 CN3 CN2 CN1 CN0 BASE 1 x x x x x x x x CNn multiplexer channel number CN4 is MSB and CN0 is LSB 4 5 A D Input Signal Range Control Register The A D range register is used to adjust the analog input ranges This register directly controls the PGA programmable gain amplifier When a different gain value is set the analog input range will ...

Page 30: ...ave been loss AD_BUSY 0 means AD is busy the A D data has not been latched in FIFOyet If AD_BUSY changes from 0 to 1 A D data is written into FIFO 4 7 A D Trigger Mode Control Register This register is used to control or read back the A D trigger control setting and the A D range setting Address BASE 4 Attribute write and read Data Format Bit 7 6 5 4 3 2 1 0 BASE 4 X X X X G1 G0 TSSEL ASCAN BASE 5...

Page 31: ...e checked by the software This register is used to select the interrupt sources Address BASE 6 Attribute write and read Data Format Bit 7 6 5 4 3 2 1 0 BASE 12 X X X X X FFEN ISC1 ISC0 ISC0 IRQ0 signal select 0 IRQ on the ending of the AD conversion EOC 1 IRQ when FIFO is half full ISC1 IRQ1 signal select Timer Interrupt only FFEN FIFO enable pin 0 FIFO Enable Power On Default value 1 FIFO Disable...

Page 32: ...13A 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 Address BASE 2 0 Attribute read only Data Format Bit 7 6 5 4 3 2 1 0 BASE2 0 AD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0 BASE2 1 x X x x AD11 AD10 AD9 AD8 BASE2 2 x X x CN4 CN3 CN2 CN1 CN0 BASE2 3 x X x x x x x x AD11 AD0 Analog to digital data AD11 i...

Page 33: ...version 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 A D trigger source control A D data transfer mode Interrupt System refer to section 5 2 A D data format Note Because some of the A D data transfer modes will use the system interrupt resource the users have to understand the interrupt ...

Page 34: ...rces The A D data should be transferred into PC s memory for further using or processing The data can be read by I O instruction which is handled directly by software or transferred to memory via interrupt Please refer to section 5 1 4 to obtain ideas about the multi configurations for A D data transfer To process A D data programmer should know about the A D data format Refer to section 5 1 5 for...

Page 35: ...s the ending channel number of auto scanning operation Under auto scan mode the channel is scanning from channel 0 to the ending channel Whenever a trigger signal is rising the channel number to be selected will increase automatically For example if the ending channel number is 3 the auto channel scanningsequence is 0 1 2 3 0 1 2 3 until the ASCAN bit is cleared Signal Range The proper signal rang...

Page 36: ...26 Operation Theorem Note Gain value of 1000 is programmable however the accuracy is not guaranteed ...

Page 37: ...rate trigger Refer to interrupt control section section 5 2 for fixed rate timer interrupt operation Timer Pacer Trigger TSSEL 1 An on board timer counter chip 8254 is used to provide a trigger source for A D conversion at a fixed rate Two counters of the 8254 chip are cascaded together to generate trigger pulse with precise period Please refer to section 5 3 for 8254 architecture This mode is ide...

Page 38: ...the AD data It is possible to read A D converted data without polling The A D conversion time will not exceed 8 5µs on PCI 9113A card Hence after software trigger the software can wait for at least 8 5µs and then read the A D register without polling The data polling transfer is very suitable for the application that needs to process AD data in real time Especially when combining with the timer in...

Page 39: ...errupt is reserved for system clock or emergency external interrupt request The FIFO half full polling method is the most powerful A D data transfer mode EOC Interrupt Transfer The PCI 9113A 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 use...

Page 40: ...nerated 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: ...0049 0 0025 5 0049 800 2048 0 0000 0 0000 5 0000 7FF 2047 0 0049 0 0025 4 9951 400 1024 5 0000 2 5000 2 5000 000 0 10 0000 5 0000 0 0000 Voltage Volts Bipolar Unipolar A D Data Hex 2 s Complement Signed Decimal Value 10V 5V 0 10V 7FF 2047 9 9951 4 9975 9 9951 400 1024 5 0000 2 5000 7 5000 001 0001 0 0049 0 0025 5 0049 000 0000 0 0000 0 0000 5 0000 FFF 0001 0 0049 0 0025 4 9951 C00 1024 5 0000 2 50...

Page 42: ...a powerful and flexible system that is suitable for A D data acquisition and many applications The system is aDual Interrupt System The dual interrupt means the hardware can generate two interrupt request signals in the same time and the software can service these two request signals by ISR Note that the dual interrupt does not mean the card occupies two IRQ levels The two interrupt request signal...

Page 43: ...ed After servicing an IRQ signal users should check if another IRQ is also asserted and 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 only The sources of INT1 and INT2 are selective by the Interrupt Control ISC Register Because of dual interrupt system for example...

Page 44: ...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 If users want to disable the IRQ level please use the ADLINK s software utility to change the power on interrupt setting ...

Page 45: ... C G C G C G O O O H H CLK0 G0 OUT0 Figure 5 3 1 Timer Counter System of PCI 9113A 5 3 2 Pacer Trigger Source The timer 1 and timer 2 are cascaded 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 9113A 100KHz The minimum sign...

Page 46: ......

Page 47: ...eveloping environment can be Visual Basic 4 0 or above Visual C C 4 0 or above Borland C 5 0 or above Borland Delphi 2 x 32 bit or above or any Windows programming language that allows calls to a DLL It provides the C C VB and Delphi include files 6 1 Libraries Installation Please refer to the Software Installation Guide for the detail information about how to install the software libraries for DO...

Page 48: ...e Windows 95 DLL driver e g W_6308_Initial 6 2 2 Data Types We defined some data type in Pci_6308 h DOS and Acl_pci h Windows 95 These data types are used by NuDAQ Cards library We suggest you to use these data types in your application programs The following table shows the data type names and their range Type Name Description Range U8 8 bit ASCII character 0 to 255 I16 16 bit signed integer 3276...

Page 49: ...ws 95 W_9113_Initial existCards As Integer info As PCI_INFO As Integer Argument existCards numbers of existing PCI 9113A cards info relative information of the PCI 9113A cards Return Code ERR_NoError ERR_BoardNoInit ERR_PCIBiosNotExist 6 4 _9113_Software_Reset Description This function is used to reset the I O port configuration Note that this function cannot re start the PCI bus and all the hardw...

Page 50: ...6 cardNo U16 far ADData C C Windows 95 U16 W_9113_AD_Read_Data U16 cardNo U16 ADData Visual Basic Windows 95 W_9113_AD_Read_Data ByVal cardNo As Integer ADData As Integer As Integer Argument cardNo The card number of initialized PCI 9113A card ADData A D converted value The resolution of AD data is 12 bit The bit 0 of ADData is the LSB of A D converted data and the bit 11 of ADData is the MSB of A...

Page 51: ...on of A D data is 12 bit The bit 0 of ADData is the LSB of A D converted data and the bit 11 of ADData is the MSB of A D converted data Please refer to section 5 1 5 for the relationship between the voltage and the value n The number of times to read the A D conversion data Return Code ERR_NoError 6 7 _9113_AD_Read_Data_MUX Description This function is used to read data from A D Data and Channel N...

Page 52: ...he relationship between the voltage and the value Return Code ERR_NoError 6 8 _9113_AD_Read_Data_Repeat_MUX Description This function is used to read data from A D Data and Channel Number Register n times continuously The A D Data and Channel Number Register is a 32 bit register Please refer to section 4 10 for the description of A D Data and Channel Number Register Syntax C C DOS U16 _9113_AD_Rea...

Page 53: ...Channel Description This function is used to set A D channel by means of writing data to the channel control register There are 32 single ended A D channels in PCI 9113A Therefore the channel number could be set between 0 to 31 Under non auto scan mode the ADChannelNo stores the channel number setting Under auto scan mode the ADChannelNo records the channel number of ending channel Syntax C C DOS ...

Page 54: ...44 C C Software Library ADChannelNo The selected channel number or the ending channel number to perform A D conversion Return Code ERR_NoError ...

Page 55: ... 100 AD_B_0_1_V 5 V X 1 AD_B_5_V 500m V X 10 AD_B_0_5_V 50m V X 100 AD_B_0_05_V 0 10 V X 1 AD_U_10_V 0 1 V X 10 AD_U_1_V 0 100m V X 100 AD_U_0_1_V Syntax C C DOS U16 _9113_AD_Set_Range U16 cardNo U16 ADRange C C Windows 95 U16 W_9113_AD_Set_Range U16 cardNo U16 ADRange Visual Basic Windows 95 W_9113_AD_Set_Range ByVal cardNo As Integer ByVal ADRange As Integer As Integer Argument cardNo The card n...

Page 56: ...indows 95 W_9113A_AD_Get_Range ByVal cardNo As Integer ADRange As Integer As Integer Argument cardNo The card number of PCI 9113A card initialized ADRange The programmable gain of A D conversion the possible values are 1 10 and 100 ADRange 0 Gain 1 ADRange 1 Gain 10 ADRange 2 Gain 100 Return Code ERR_NoError 6 12 _9113_AD_Get_Status Description This function is used to get AD FIFO status from the ...

Page 57: ... been loss ADSTS_BUSY AD is busy A D data is written into FIFO Return Code ERR_NoError 6 13 _9113_AD_Set_Mode Description This function is used to set A D trigger mode Please refer to section 5 1 3 for the detailed description of A D trigger modes Syntax C C DOS U16 _9113_AD_Set_Mode U16 cardNo U16 ADMode C C Windows 95 U16 W_9113_AD_Set_Mode U16 cardNo U16 ADMode Visual Basic Windows 95 W_9113_AD...

Page 58: ...D trigger modes Syntax C C DOS U16 _9113_AD_Get_Mode U16 cardNo U16 ADMode C C Windows 95 U16 W_9113_AD_Get_Mode U16 cardNo U16 ADMode Visual Basic Windows 95 W_9113_AD_Get_Mode ByVal cardNo As Integer ADMode As Integer As Integer Argument cardNo The card number of PCI 9113A card initialized ADMode The value of A D trigger mode The returned value could be one or a combination of the following mode...

Page 59: ... ByVal INTC As Integer As Integer Argument cardNo The card number of PCI 9113A card initialized INTC The value written to the interrupt control register Return Code ERR_NoError 6 16 _9113_AD_Get_Reg Description This function is used to get the A D mode setting and interrupt control setting by reading data from the Interrupt control read back register The settings returned are stored in INTC Please...

Page 60: ...A D data are stored in the FIFO after conversion This function is used to reset A D FIFO This function should be called before performing A D conversion to clear the old data stored in the FIFO Syntax C C DOS U16 _9113_Reset_FIFO U16 cardNo C C Windows 95 U16 W_9113_Reset_FIFO U16 cardNo Visual Basic Windows 95 W_9113_Reset_FIFO ByVal cardNo As Integer As Integer Argument cardNo The card number of...

Page 61: ... Integer Argument cardNo The card number of PCI 9113A card initialized Return Code ERR_NoError 6 19 _9113_Set_8254 Description This function is used to write PCI 9113A 8254 Programmable Timer Syntax C C DOS U16 _9113_Set_8254 U16 cardNo U16 ChannelNo U8 count C C Windows 95 U16 W_9113_Set_8254 U16 cardNo U16 ChannelNo U8 count Visual Basic Windows 95 W_9113_Set_8254 ByVal cardNo As Integer ByVal C...

Page 62: ...52 C C Software Library Return Code ERR_NoError ...

Page 63: ... initialized Tmr_ch Port of 8254 Timer the value is within 0 to 2 count The value read from 8254 programmable timer only 8 LSBs are effective Return Code ERR_NoError 6 21 _9113_AD_Timer Description This function is used to set the Timer 1 and Timer 2 Timer 1 and Timer 2 are used as frequency dividers for generating constant A D sampling rate dedicatedly It is possible to stop the pacer trigger by ...

Page 64: ...on The counter 0 of the PCI 9113A Timer Counter chip can be freely programmed by the users This function is used to program the counter 0 This counter can be used as frequency generator if internal clock is used It also can be used as event counter if external clock is used All the 8254 modes six operating modes are available Syntax C C DOS U16 _9113_Counter_Start U16 cardNo U16 mode U16 c0 C C Wi...

Page 65: ...urn Code ERR_NoError 6 23 _9113_Counter_Read Description This function is used to read the counter value of the Counter 0 Syntax C C DOS U16 _9113_Counter_Read U16 cardNo U16 c0 C C Windows 95 U16 W_9113_Counter_Read U16 cardNo U16 c0 Visual Basic Windows 95 W_9113_Counter_Read ByVal cardNo As Integer c0 As Integer As Integer Argument cardNo The card number of PCI 9113A card initialized c0 count v...

Page 66: ...ounter value of the Counter 0 Return Code ERR_NoError 6 25 _9113_INT_Source_Control Description PCI 9113A has a dual interrupt system therefore two interrupt sources can be generated and be checked by the software This function is used to select and control PCI 9113A interrupt sources by writing data to interrupt control register Please refer to section 5 1 4 for detailed description of A D data t...

Page 67: ...e following 0 INT2 disable 1 INT2 pacer timer interrupt 2 INT2 external interrupt source Return Code None 6 26 _9113_CLR_IRQ Description This function is used to clear interrupt request that is requested by PCI 9113A If you use 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 Syntax C C ...

Page 68: ... As Integer irq_no As Integer Argument cardNo The card number of PCI 9113A card initialized Irq_no The IRQ level used to transfer A D data for this card Return Code None 6 28 _9113_Get_IRQ_Status Description This function is used to get the status of the two IRQs INT1 and INT2 in PCI 9113A card Syntax C C DOS void _9113_Get_IRQ_Status U16 cardNo U16 ch1 U16 ch2 C C Windows 95 void W_9113_Get_IRQ_S...

Page 69: ... software reads the A D data which is stored in FIFO in size of one block 512 words The FIFO half full polling method is the most powerful A D data transfer mode Please refer to section 5 1 4 for the detailed description of half full polling mode Syntax C C DOS U16 _9113_AD_FFHF_Polling U16 cardNo U16 far ad_buf C C Windows 95 U16 W_9113_AD_FFHF_Polling U16 cardNo U16 ad_buf Visual Basic Windows 9...

Page 70: ...nce between this function and 9113_AD_FFHF_Polling is that the former reads data from the 16 bit register and the latter reads data from 32 bit data register Please refer to section 5 1 4 for the detailed description of half full polling mode Syntax C C DOS U16 _9113_AD_FFHF_Polling_MUX U16 cardNo U32 far ad_buf C C Windows 95 U16 W_9113_AD_FFHF_Polling_MUX U16 cardNo U32 ad_buf Visual Basic Windo...

Page 71: ... A D converted value The bit 0 of ADData is the LSB of A D converted data and the bit 11 of ADData is the MSB of A D converted data Please refer to section 5 1 5 for the relationship between the voltage and the value Return Code ERR_NoError ERR_AD_AquireTimeOut 6 32 _9113_AD_Aquire_MUX Description This function is used to poll the A D conversion data for PCI 9113A It reads the A D data when the da...

Page 72: ...acer trigger It takes place in the background and will not stop until the N th conversion has been completed or your program execute _9113_AD_INT_Stop function to stop the process After executing this function it is necessary to check the status of the operation by using the function _9113_AD_INT_Status The function can perform on single A D channel autoscan is disabled or multiple A D channels au...

Page 73: ...nel number If the auto_scan is set as enabled the selection sequence of A D channel is 0 1 2 3 ad_ch_no 0 1 2 3 ad_ch_no If the auto_scan is set as disabled only the data input from ad_ch_no is converted ad_gain A D analog input range the possible values are AD_B_10_V AD_B_1_V AD_B_0_1_V AD_B_5_V AD_B_0_5_V AD_B_0_05_V AD_U_10_V AD_U_1_V AD_U_0_1_V count The number of A D conversion ad_buffer The ...

Page 74: ...toscan is disabled or multiple A D channels autoscan is enabled with fixed analog input range Note The interrupt mode provided in this function is internal timer source therefore you must specify c1 c2 as calling this function In addition this function in MS DOS Borland C library supports just one PCI 9113A card and provides only one ISR interrupt service routine for processing the interrupt event...

Page 75: ..._B_0_1_V AD_B_5_V AD_B_0_5_V AD_B_0_05_V AD_U_10_V AD_U_1_V AD_U_0_1_V blockNo The number of blocks for performing A D conversion one block of A D conversion is 512 words ad_buffer The start address of the memory buffer to store the AD data The buffer size must large than the number of AD conversion The unsigned integer data format in ad_buffer is as follows Every 32 bit unsigned integer data bit ...

Page 76: ... card initialized status The status of the INT data transfer count The A D conversion count number performed currently Return Code ERR_NoError 6 36 _9113_AD_FFHF_INT_Status Description This function is used to check the status of interrupt operation by using AD FIFO Half Full Interrupt Transfer Mode The _9113_AD_FFHF_INT_Start is executed on background therefore you can issue this function to chec...

Page 77: ...l all the relative registers However if the interrupt operation was stopped by calling _9113_AD_FFHF_INT_Stop the program should use _9113_AD_FFHF_INT_Start to restart the interrupt transfer function Syntax C C DOS U16 _9113_AD_FFHF_INT_Restart U16 cardNo C C Windows 95 U16 W_9113_AD_FFHF_INT_Restart U16 cardNo Visual Basic Windows 95 W_9113_AD_FFHF_INT_Restart ByVal cardNo As Integer As Integer A...

Page 78: ...ction 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 Argument CardNo The card number of PCI 9113A card initialized count The number of A D data which has been transferred Return Code ERR_AD_INTNotSet ERR_NoError ...

Page 79: ...is chapter will guide you to calibrate your PCI 9113A to an accuracy condition 7 1 Calibration Before calibrating your PCI 9113A card you should prepare some equipments for the calibration Calibration program Once the program is executed it will guide you to do the calibration This program 9113UTIL EXE is located in the directory C ADLINK 9113 DOS UTIL Default A 5 1 2 digit multimeter 6 1 2 is rec...

Page 80: ...pin 9 of CN1 3 Use multi meter to measure the voltage between TP1 and TP2 4 Adjust VR4 until the multi meter value approach to zero 7 1 2 2 Uni polar input 1 Set JP5 as single ended input 2 Set JP2 as uni polar A D input 3 Set JP3 to 10V full range 4 Set JP4 to direct binary coding 5 Short the A D channel 0 pin 1 of CN1 to ground GND pin 9 of CN1 6 Set the analog gain 1 and channel number 0 by sof...

Page 81: ... AD channels If the digital offset value is Voff user can modify any AD data by subtracting Voff from the AD data to obtain the offset calibrated value Note that the Voff may be different for each gain level Users should calibrate the offset value for every gain value 7 2 Utilities This software CD provides two utility programs They are 9113Autil exe which provides three functions System Configura...

Page 82: ...ult settings PCI 9113A Utility Rev 1 0 Copyright 2000 2004 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 2 1 2 System Configuration This function guides you to configure the PCI 9113A card and set the right hardware configuration The configuration window shows the setting items that you have t...

Page 83: ...s re calibration interval is recommended For laboratory conditions 6 months to 1 year is acceptable When you choose the calibration function from the main menu list a calibration items menu is displayed on the screen After you select one of the calibration items from the calibration items menu a calibration window shows The upper window shows the detailed procedures which have to be followed when ...

Page 84: ...3A It includes A D polling testing A D Interrupt Testing and A D FIFO Half Full Interrupt testing When you choose one of the testing functions from the functions menu a diagram is displayed on the screen The figures below are the function testing menu window and A D with polling Testing window PCI 9113A Function Testing 1 A D with Polling Test 2 A D with Interrupt Test 3 A D with FIFO Half Full In...

Page 85: ...terrupt 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 follows C cd ADLINK DOS 9113 UTIL C I_eeprom At first this program prompts you to input the card type 9113 After specifying the card type this program shows the instructions to guide you to enable or disa...

Page 86: ......

Page 87: ...g its specifications or if the serial number has been removed Seller does not assume any liability for consequential damages as a result from our products uses and in any event our liability shall not exceed the original selling price of the equipment The equipment warranty shall constitute the sole and exclusive remedy of any Buyer of Seller equipment and the sole and exclusive liability of the S...

Reviews: