background image

 

NuDAQ

 

PCI-9111DG/HR

 

Multi-Functions 

Data Acquisition Card 

User’s Guide

 

Summary of Contents for NuDAQ PCI-9111DG

Page 1: ...NuDAQ PCI 9111DG HR Multi Functions Data Acquisition Card User s Guide ...

Page 2: ...ial damages arising out 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 is r...

Page 3: ...m tw NuPRO nupro adlink com tw Technical Support Software sw 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 Questi...

Page 4: ......

Page 5: ...ing 7 2 3 PCI 9111 s Layout 8 2 4 Jumper Descriptions 9 2 5 Hardware Installation Outline 9 2 6 Device Installation for Windows Systems 10 2 7 Connectors Pin Assignment 10 2 8 Daughter Board Connection 12 2 8 1 Connect with ACLD 8125 12 2 8 2 Connect with ACLD 9137 13 2 8 3 Connect with ACLD 9182 13 2 8 4 Connect with ACLD 9185 13 2 8 5 Connect with ACLD 9138 and ACLD 9188 13 Chatper 3 Registers F...

Page 6: ...es 28 4 1 5 Pre Trigger Control 30 4 1 6 A D Data Format 31 4 2 Interrupt Control 33 4 2 1 System Architecture 33 4 2 2 IRQ Level Setting 33 4 2 3 Dual Interrupt System 33 4 2 4 Interrupt Source Control 34 4 3 Extended Digital I O Port 34 4 4 D A Conversion 35 4 5 Digital Input and Output 36 4 6 Timer Counter Operation 36 4 6 1 Introduction 36 4 6 2 Pacer Trigger Source 37 4 6 3 Pre Trigger Counte...

Page 7: ...9111_Set_8254 53 5 27 _9111_Get_8254 54 5 28 _9111_AD_Timer 54 5 29 _9111_Counter_Start 55 5 30 _9111_Counter_Read 55 5 31 _9111_Counter_Stop 56 5 32 _9111_INT_Source_Control 56 5 33 _9111_CLR_IRQ 57 5 34 _9111_Get_IRQ_Channel 58 5 35 _9111_Get_IRQ_Status 58 5 36 _9111_AD_FFHF_Polling 59 5 37 _9111_AD_Aquire 59 5 38 _9111_AD_HR_Aquire 60 5 39 _9111_AD_INT_Start 60 5 40 _9111_AD_FFHF_INT_Start 62 5...

Page 8: ... 2 Bipolar Analog Output 69 Chatper 7 Software Utility 70 7 1 9111util 70 7 1 1 Running 9111util exe 70 7 1 2 System Configuration 71 7 1 3 Calibration 72 7 1 4 Functional Testing 73 7 2 I_EEPROM 74 Product Warranty Service 75 ...

Page 9: ...onnection are illustrated l Chapter 3 Registers Format describes the details of register format and structure of the PCI 9111 this information is very important for the programmers who want to control the hardware by low level programming l Chapter 4 Operation Theorem describes how to operate the PCI 9111 The A D D A DIO and timer counter functions are introduced Also some programming concepts are...

Page 10: ......

Page 11: ...n for PCI 9111 16 bit analog input resolution for PCI 9111HR l Auto scanning channel selection up to 256 channels l Up to 100KHz A D sampling rates l 16 single ended analog input channels l Bipolar input signals l Programmable gain of x1 x2 x4 x8 x16 Input Range 10V 5V 2 5V 1 25V 0 625V l On chip sample hold l One 12 bit monolithic multiplying analog output channel l 16 digital output and 16 digit...

Page 12: ...D interface driver 1 3 Specifications u Analog Input A D l Converter B B ADS7805 ADS7804 or equivalents successive approximation type l Resolution 12 bit 16bits l Input Channels 16 single ended l Analog Signal Input Range Software controlled Bipolar 10V 5V 2 5V 1 25V 0 625V l Conversion Time 8 µ sec l Over voltage protection Continuous 35V maximum l Accuracy GAIN 1 2 0 01 of FSR 1 LSB GAIN 4 8 0 0...

Page 13: ... TTL compatible inputs and outputs l Input Voltage Low Min 0V Max 0 8V High Min 2 0V Max 5 5V l Input Load Low 0 8V 0 2mA max High 2 7V 20mA max l Output Voltage Low Min 0V Max 0 4V High Min 2 4V Max 5 5V l Driving Capacity Low Max 0 5V at 8 0mA Sink High Min 2 7V at 0 4mA Source u Extended Digital I O EDIO l Channel 4 inputs and outputs l Input Voltage Low 0 8V 10µA max High 3 5V 10µA max l Input...

Page 14: ...TM DASYLabTM InTouchTM InControlTM ISaGRAFTM and so on All the software options are included in the ADLink CD The non free software drivers are protected with serial licensed code Without the software serial number you can still install them and run the demo version for two hours for demonstration purpose Please contact with your dealer to purchase the formal license serial code 1 4 1 Programming ...

Page 15: ...EW software package The PCIS LVIEW supports Windows 95 98 NT 2000 The LabVIEW drivers are free shipped with the board You can install and use them without license For detail information about PCIS LVIEW please refer to the user s guide in the CD Manual_PDF Software PCIS LVIEW 1 4 3 PCIS VEE HP VEE Driver The PCIS VEE includes the user objects which are used to interface with HP VEE software packag...

Page 16: ...th any DDE client under Windows NT 1 4 7 PCIS ISG ISaGRAFTM driver The ISaGRAF WorkBench is an IEC1131 3 SoftPLC control program development environment The PCIS ISG includes ADLink products target drivers for ISaGRAF under Windows NT environment The PCIS ISG is included in the ADLINK CD It needs license 1 4 8 PCIS ICL InControlTM Driver PCIS ICL is the InControl driver which support the Windows N...

Page 17: ...ackage includes the following items l PCI 9111 Enhanced Multi function Data Acquisition Card l ADLINK CD l Software Installation 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 9111 card contains sensitive electronic comp...

Page 18: ...rton extract the system module and place it only on a grounded anti static surface component side up Again inspect the module for damage Press down on all the socketed IC s to make sure that they are properly seated Do this only with the module place on a firm flat surface Note DO NOT APPLY POWER TO THE CARD IF IT HAS BEEN DAMAGED You are now ready to install your PCI 9111 2 3 PCI 9111 s Layout Fi...

Page 19: ... or CompactPCI cards are 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 This...

Page 20: ...tion for Windows Systems Once Windows 95 98 2000 has started the Plug and Play function ofWindows 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 7 Connectors Pin Assignment The ...

Page 21: ...2 11 10 9 8 7 6 5 4 3 2 1 Figure 2 3 Pin Assignment of CN1 u 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 Digital ground ...

Page 22: ... Stop Signal EDI n Extended Digital Input Channel n 0 3 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 connections are specified as follows 2 8 1 Connect with ACLD 8125...

Page 23: ...n protect your PC system from damage when an abnormal input signal is occurred 2 8 4 Connect with ACLD 9185 The ACLD 9185 is a 16 channels SPDT relay output board This board is connected with CN2 of PCI 9111 via 20 pin flat cable By using this board you can control outside device through the digital output signals 2 8 5 Connect with ACLD 9138 and ACLD 9188 ACLD 9138 and ACLD 9188 are general purpo...

Page 24: ... 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 LCR please visit PLX te...

Page 25: ...AD channel read back Base 08h AD range control AD range and AD status read back Base 0Ah AD trigger mode AD mode and interrupt setting read back Base 0Ch Interrupt control Not used Base 0Eh Software AD trigger Not used Base 10h 3Eh Reserved Base 40h Timer 8254 Ch 0 Base 42h Timer 8254 Ch 1 Base 44h Timer 8254 Ch 2 Base 46h Timer Control Timer Status Base 48h Clear H W IRQ Not used Table 3 1 I O Ad...

Page 26: ...ovides 16 single ended analog input channel The channel control register is used to set the A D channels to be converted Under non auto scanning mode the register sets the channel number for conversion Under auto scanning mode the register sets the ending channel number Address BASE 6h Attribute write only Data Format Bit 7 6 5 4 3 2 1 0 BASE 6h CN7 CN6 CN5 CN4 CN3 CN2 CN1 CN0 BASE 7h Where CNn Mu...

Page 27: ...crease automatically if any A D trigger signal is inserted 3 6 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 be changed to the its corresponding value Address BASE 8h Attribute write only Data Format Bit 7 6 5 ...

Page 28: ...s AD_BUSY 0 means AD is busy the A D data has not been latched in FIFO yet If AD_BUSY changes from 0 to 1 A D is not busy and the data is written into FIFO 3 8 A D Trigger Mode Control Register This register is used to control the A D trigger source and trigger method Address BASE 0Ah Attribute write only Data Format Bit 7 6 5 4 3 2 1 0 BASE 0Ah X X X X PTRG EITS TPST ASCAN BASE 0Bh X X X X X X X ...

Page 29: ...are Trigger Register To generate a trigger pulse to the PCI 9111 for A D conversion you just write any data to this register and then the A D converter will be triggered Address BASE 0Eh Attribute write only Data Format Bit 7 6 5 4 3 2 1 0 BASE 0Eh X X X X X X X X 3 10 Interrupt Control Register The PCI 9111 has dual interrupt systems and two interrupt sources can be generated and be checked by th...

Page 30: ...errupt request event otherwise another interrupt request will be inserted and cause the software hangs on processing the interrupt event Address BASE 48h Attribute write only Data Format Bit 7 6 5 4 3 2 1 0 BASE 48h X X X X X X X X 3 12 A D Mode Interrupt Control Read Back Register The AD mode setting and interrupt control setting can be read from this register Refer to section 3 8 and section 3 1...

Page 31: ...PUT EDO mode 1 2 EDO_OUT_EDO EDO mode 2 3 EDO_OUT_CHN EDO mode 3 The output EDO value can be put on the EDO pins only when the EDO is set as mode 2 Under mode 1 the EDO output value will not be put on the EDO pins therefore the EDO signals are used as input only port Under mode 3 the EDO pins presents the high nibble 4 MSBs of the AD channel number no matter auto channel scan ASCAN bit is set or n...

Page 32: ...DI1 DI0 Base 3h DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8 Address BASE 2h Attribute write only Data Format 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 convert the D A output digital data to analog signal Address BASE 0 Attribute write only Data Format for D A Channel 1 Bit 7 6 5 4 3 2 1 0 Base...

Page 33: ...escriptions about all the features of 82C54 You can download the data sheet on the following web site http support intel com support controllers peripheral 231164 htm or http www tundra com Address BASE 40h BASE 46h Attribute read write Data Format Base 40h Counter 0 Register R W Base 42h Counter 1 Register R W Base 44h Counter 2 Register R W Base 46h 8254 CONTROL BYTE W ...

Page 34: ...e PCI 9111 4 1 A D Conversion Before programming the PCI 9111 to perform the A D conversion you should understand the following issues l A D conversion procedure l A D signal source control l A D trigger source control l A D data transfer mode l A D Pre trigger function l Interrupt System refer to section 4 2 l A D data format Note Because some of the A D data transfer modes w ill use the system i...

Page 35: ...rther using or processing The data can be either read by I O instruction which is handled directly by software or transferred to memory via interrupt Please refer to section 4 1 4 to obtain ideas about the multi configurations for A D data transferring Some applications need to grab the data only before or after special hardware event The Pre Trigger is useful to stop the A D operation Refer to se...

Page 36: ...o channel scanning which is controlled by the ASCAN bit in AD mode control register As ASCAN is cleared 0 the value of AD channel MUX register defines the channel to be selected Only one channel can be selected in this situation As ASCAN is set 1 the value in AD channel MUX register defines the ending channel number of auto scanning operation Under auto scan mode the channel is scanning from chann...

Page 37: ...igger please refer to section 3 8 for details Whenever the external source is set the internal sources are disabled If the internal trigger is selected two internal sources can be selected the software trigger or the timer pacer trigger The A D operation mode is controlled by A D mode bits EITS TPST of A D mode register Total three trigger sources are provided in the PCI 9111 The different trigger...

Page 38: ...ll The data must be transferred to host memory after the date is ready and before the FIFO is full On the PCI 9111 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 This mode can be used with software A D trigger mode After the A D conversion is triggered by software the...

Page 39: ...the sampling rate is higher than users expect or the polling rate is too slow it is also possible due to your system occupy the CPU resource thus reducing the polling rate When the FIFO is half full and not full the software can read one block 512 words A D data without check the FIFO status This method is very convenient to read A D in size of a block and it is benefit to software programming Usu...

Page 40: ...e Trigger mode the hardware is continuously acquiring A D data and waiting for the pre trigger signal Before the pre trigger signal is inserted the software must read the FIFO data to prevent FIFO full Besides if these data are usable the software should store these data as many as possible to the host PC s memory When the pre trigger signal is inserted the counter is starting to count down from t...

Page 41: ...om 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 Data Hex Decimal Value Voltage Volts 7FFF 32767 9 99969 4000 16384 5 00000 0001 1 0 00031 0000 0 0 00000 FFFF 1 0 00031 C000 16384 5 0000...

Page 42: ... A D converted data value is shown in the following table A D Converted Data Hex Decimal Value Voltage Volts 7FF 2047 9 9951 400 1024 5 0000 001 1 0 0049 000 0 0 0000 FFF 1 0 0049 C00 1024 5 0000 801 2047 9 9951 800 2048 10 0000 The formula between the A D converted data and the voltage value is Voltage AD data K gain _ 1 10 where gain is the value of the A D gain control register K 32768 for PCI ...

Page 43: ...urces Fig 4 2 1 shows the interrupt system Figure 4 2 1 Dual Interrupt System of PCI 9111 4 2 2 IRQ Level Setting There is only one IRQ level is 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 The IRQ level is set by the PCI plug and play BIOS and saved in ...

Page 44: ...n _9111_INT_Source_Control to control the IRQ source so that you can disable one or two of the IRQ sources Note that even you disable all the two IRQ sources without change the 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 applicat...

Page 45: ...ip between the digital data DAn and the output voltage is formulated as following Vout span x DAn 4096 Unipolar Vout span x DAn 4096 10 Bipolar where span is the span in volts If your output range is 10V 10V Bipolar then span is 20 if your output range is 0 10V Unipolar then span is 10 The Vout is the output voltage and the DAn is the digital data value in the D A data registers Before performing ...

Page 46: ... board The digital I O signal is fully TTL DTL compatible The detailed digital I O signal specification can be referred to section 1 3 Digital Output DO Digital GND DGND Digital Input DI From TTL Signal To TTL Devices PCI 9111 Outside Device 74LS244 74LS373 4 6 Timer Counter Operation 4 6 1 Introduction One 8254 programmable interval timer counter chip is installed on PCI 9111 There are three coun...

Page 47: ...igger counter The clock source of counter 0 is from A D trigger source so that 8254 can count the A D trigger numbers after the pre trigger signal pin 12 of CN3 is inserted The gate control is set when the pre trigger signal is change from H to L and cleared when the counter is counting down to zero In software library the timer 0 is always set as mode 0 event counter 4 6 4 I O Address The 8254 in...

Page 48: ...oping 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 5 1 Libraries Installation Please refer to the Software Installation Guide for the detail information about how to install the software libraries for DOS or...

Page 49: ...he Windows 95 DLL driver e g W_9111_Initial 5 2 2 Data Types We defined some data type in Pci_9111 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 bits ASCII character 0 to 255 I16 16 bits signed integer 3...

Page 50: ...s number of existing PCI 9111 cards pciInfo relative information of the PCI 9111 cards Return Code ERR_NoError ERR_BoardNoInit ERR_PCIBiosNotExist 5 4 _9111_DO Description This function is used to write data to digital output port There are 16 digital output channels on PCI_9111 Syntax C C DOS U16 _9111_DO U16 cardNo U16 DOData C C Windows 95 U16 W_9111_DO U16 cardNo U16 DOData Visual Basic Window...

Page 51: ... W_9111_DO_ByVal cardNo As Integer ByVal do_ch_no As Integer ByVal do_data As Byte As Integer Argument cardNo The card number of PCI 9111 card initialized do_ch_no The channel number to perform digital output the value has to be set from 0 to 15 do_data The value will be written to digital output port either 0 or 1 Return Code ERR_NoError ERR_InvalidDOChannel 5 6 _9111_DI Description This function...

Page 52: ... C Windows 95 U16 W_9111_DI_Channel U16 cardNo U16 di_ch_no Boolean di_data Visual Basic Windows 95 W_DAQ1210_DI_Channel ByVal cardNo As Integer ByVal di_ch_no As Integer di_data As Byte As Integer Argument cardNo The card number of PCI 9111 card initialized di_ch_no The channel number to perform digital output the value has to be set from 0 to 15 di_data The value read from digital input channel ...

Page 53: ...gital output channels can be set as three modes refer to section 6 2 10 however the output EDO value can be put on the EDO pins only when the EDO mode is set as EDO_OUT_CHN Therefore the program should call _9111_Set_EDO_Function refer to section 6 2 10 to set EDO mode as EDO_OUT_EDO before writing data to EDO channels Syntax C C DOS U16 _9111_EDO U16 cardNo U16 DOData C C Windows 95 U16 W_9111_ED...

Page 54: ... value Return Code ERR_NoError 5 11 _9111_Set_EDO_Function Description The 4 EDO channels on PCI 9111 can be used as digital output EDO_OUT_EDO digital input EDO_INPUT or channel number output EDO_OUT_CHN This function is used to set the mode of EDO pins Syntax C C DOS U16 _9111_Set_EDO_Function U16 cardNo U16 x C C Windows 95 U16 W_9111_Set_EDO_Function U16 cardNo U16 x Visual Basic Windows 95 W_...

Page 55: ... initialized DAData D A converted value please refer to section to learn the relationship between the voltage and the value Return Code ERR_NoError 5 13 _9111_AD_Read_Data Description This function is used to read the AD conversion data from analog input port Syntax C C DOS U16 _9111_AD_Read_Data U16 cardNo I16 far ADData C C Windows 95 U16 W_9111_AD_Read_Data U16 cardNo I16 ADData Visual Basic Wi...

Page 56: ...een the voltage and the value n The number of times to read the AD conversion data Return Code ERR_NoError 5 15 _9111_AD_Set_Channel Description This function is used to set AD channel by means of writing data to the multiplexer scan channel register There are 16 single ended A D channels in PCI 9111 therefore the channel number could be set between 0 to 15 Under non auto scan mode the ADChannelNo...

Page 57: ...he ending channel number The bit 4 to 7 of ADChannelNo is the selected channel Syntax C C DOS U16 _9111_AD_Get_Channel U16 cardNo U16 ADChannelNo C C Windows 95 U16 W_9111_AD_Get_Channel U16 cardNo U16 ADChannelNo Visual Basic Windows 95 W_9111_AD_Get_Channel ByVal cardNo As Integer ADChannelNo As Integer As Integer Argument cardNo The card number of PCI 9111 card initialized ADChannelNo channel n...

Page 58: ...teger As Integer Argument cardNo The card number of PCI 9111 card initialized ADRange The programmable gain of A D conversion the possible values are AD_B_10_V AD_B_5_V AD_B_2_5_V AD_B_1_25_V AD_B_0_625_V Return Code ERR_NoError 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 s...

Page 59: ...111_AD_Get_Status Description This function is used to get AD FIFO status from the gain control register Syntax C C DOS U16 _9111_AD_Get_Status U16 cardNo U16 ADStatus C C Windows 95 U16 W_9111_AD_Get_Status U16 cardNo U16 ADStatus Visual Basic Windows 95 W_9111_AD_Get_Status ByVal cardNo As Integer ADStatus As Integer As Integer Argument cardNo The card number of PCI 9111 card initialized ADStatu...

Page 60: ... As Integer Argument cardNo The card number of PCI 9111 card initialized ADMode The value of AD mode The mode could be one or a combination of the following modes A_9111_AD_PreTrg_ON A_9111_AD_PreTrg_OFF A_9111_AD_External_SRC A_9111_AD_Internal_SRC A_9111_AD_TimerTrig A_9111_AD_SoftTrig A_9111_AD_AutoScan Return Code ERR_NoError 5 21 _9111_AD_Get_Mode Description This function is used to get AD m...

Page 61: ...AD_AutoScan Return Code ERR_NoError 5 22 _9111_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 9 to learn how to set the interrupt control register Syntax C C DOS U16 _9111_INT_Set_Reg U16 cardNo U16 INTC C C Windows 95 U16 W_9111_INT_Set_Reg U16 cardNo U16 INTC Visual Basic Windows 95 W_9111_INT_...

Page 62: ..._Get_Reg ByVal cardNo As Integer INTC As Integer As Integer Argument cardNo The card number of PCI 9111 card initialized INTC The value returned from interrupt control register Return Code ERR_NoError 5 24 _9111_Reset_FIFO Description The PCI 9111 A D data are stored in the FIFO after conversion This function is used to reset A D FIFO This function should be called before performing A D conversion...

Page 63: ... Argument cardNo The card number of PCI 9111 card initialized Return Code ERR_NoError 5 26 _9111_Set_8254 Description This function is used to write PCI 9111 8254 Programmable Timer Syntax C C DOS U16 _9111_Set_8254 U16 cardNo U16 ChannelNo U8 count C C Windows 95 U16 W_9111_Set_8254 U16 cardNo U16 ChannelNo U8 count Visual Basic Windows 95 W_9111_Set_8254 ByVal cardNo As Integer ByVal ChannelNo A...

Page 64: ... LSBs are effective Return Code ERR_NoError 5 28 _9111_AD_Timer Description This function is used to set the Timer 1 and Timer 2 Timer 1 and Timer 2 are used as frequency dividers for generating constant A D sampling rate dedicatedly It is possible to stop the pacer trigger by setting any one of the dividers as 0 Because the AD conversion rate is limited due to the conversion time of the AD conver...

Page 65: ..._9111_Counter_Start U16 cardNo U16 mode U16 c0 Visual Basic Windows 95 W_9111_Counter_Start ByVal cardNo As Integer ByVal mode As Integer ByVal c0 As Integer As Integer Argument cardNo The card number of PCI 9111 card initialized 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 ma...

Page 66: ...tion Syntax C C DOS U16 _9111_Counter_Stop U16 cardNo U16 c0 C C Windows 95 U16 W_9111_Counter_Stop U16 cardNo U16 c0 Visual Basic Windows 95 U16 W_9111_Counter_Stop ByVal cardNo As Integer c0 As Integer As Integer Argument cardNo The card number of PCI 9111 card initialized c0 the current count value of the Counter 0 Return Code ERR_NoError 5 32 _9111_INT_Source_Control Description The PCI 9111 h...

Page 67: ...terrupt 2 INT1 FIFO half full int2Ctrl the value to control INT2 the value can be set and the corresponding definition is the following int2Ctrl 0 INT2 disable 1 INT2 pacer timer interrupt 2 INT2 external interrupt source Return Code None 5 33 _9111_CLR_IRQ Description This function is used to clear interrupt request which is requested by PCI 9111 If you use EOC interrupt or FIFO half full interru...

Page 68: ...tialized Irq_no the IRQ level used to transfer A D data for this card Return Code None 5 35 _9111_Get_IRQ_Status Description This function is used to get the status of the two IRQs INT1 and INT2 in PCI 9111 card 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_IRQ_Status ByVal...

Page 69: ... U16 _9111_AD_FFHF_Polling U16 cardNo I16 far ad_data C C Windows 95 U16 W_9111_AD_FFHF_Polling U16 cardNo I16 ad_data Visual Basic Windows 95 W_9111_AD_FFHF_Polling 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 section 5 1 6 for details Return Code ERR_NoE...

Page 70: ... ad_data Visual Basic Windows 95 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 section 5 1 6 for details Return Code ERR_NoError ERR_AD_AquireTimeOut 5 39 _9111_AD_INT_Start Description This function is used to initialize and start up th...

Page 71: ...yntax C C DOS U16 _9111_AD_INT_Start U16 cardNo U16 auto_scan U16 ad_ch_no U16 ad_gain U16 count I16 far ad_buffer U16 c1 U16 c2 C C Windows 95 U16 W_9111_AD_INT_Start U16 cardNo U16 auto_scan U16 ad_ch_no U16 ad_gain U16 count I16 far ad_buffer U16 c1 U16 c2 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 In...

Page 72: ...ction to stop the process After executing this function it is necessary to check the status of the operation by using the function _9111_AD_FFHF_INT_Status While all the specified blocks of data are acquired the interrupt 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 inpu...

Page 73: ... the buffer size must large than the number of AD conversion blockNo 512 c1 the frequency devider of Timer 1 c2 the frequency devider of Timer 2 Return Code ERR_InvalidADChannel ERR_AD_InvalidGain ERR_InvalidTimerValue ERR_NoError 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 ...

Page 74: ...function to check the status of interrupt operation While all the specified blocks of data are acquired the interrupt status will be changed to AD_FFHF_BLOCK_FULL Syntax C C DOS U16 _9111_AD_FFHF_INT_Status U16 cardNo U16 status U16 blockNo 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...

Page 75: ...full interrupt transfer without re initial all the relative registers However if _9111_AD_INT_Stop has been called the program should use _9111_AD_FFHF_INT_Start to restart interrupt transfer function Syntax C C DOS U16 _9111_AD_FFHF_INT_Restart U16 cardNo C C Windows 95 U16 W_9111_AD_FFHF_INT_Restart U16 cardNo Visual Basic Windows 95 W_9111_AD_FFHF_INT_Restart ByVal cardNo As Integer As Integer ...

Page 76: ...been transferred no matter whether the AD interrupt data transfer is stopped by this function Syntax C C DOS U16 _9111_AD_INT_Stop U16 cardNo U16 count C C Windows 95 U16 W_9111_AD_INT_Stop U16 cardNo U16 count Visual Basic Windows 95 W_9111_AD_INT_Stop ByVal cardNo As Integer count As Integer As Integer Argument CardNo the card number of PCI 9111 card initialized count the number block of A D dat...

Page 77: ...curacy This chapter will guide you to calibrate your PCI 9111 to an accuracy condition 6 1 What do you need Before calibrating your PCI 9111 card you should prepare some equipment s for the calibration l Calibration program Once the program is executed it will guide you to do the calibration This program is included in the delivered package l A 5 1 2 digit multimeter 6 1 2 is recommended l A volta...

Page 78: ...djustment Table 6 1 Functions of VRs 6 3 A D Adjustment 1 Set the analog gain 1 and channel number 0 by software 2 Short the A D channel 0 pin 1 of CN3 to ground GND and connect the TP1 and TP2 with your DVM Trim the variable resister VR5 to obtain a value as close as possible to 0V 3 Applied a 10V reference input signal to A D channel 0 and trim the VR4 to obtain reading between 2046 2047 9111DG ...

Page 79: ... Write the digital value 2048 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 A calibration utility is supported in the software CD which is included in the product package The detailed calibration procedures and description can be found in the utility Users only need to run the software calibration utility and follow ...

Page 80: ...ey areSystem Configuration Calibration and Functional Testing This utility software is designed as menu driven based windowing style Not only the text messages are shown for operating guidance but also has the graphic to indicate you how to set right hardware configuration 7 1 1 Running 9111util exe After finishing the DOS installation you can execute the utility by typing as follows C cd ADLINK D...

Page 81: ...e PCI 9111 card and set the right hardware configuration The configuration window shows the setting items that you have to set before using the PCI 9111 card The following diagram will be displayed on the screen as you choose the Configuration function from main menu Calibration of PCI9111 1 Card Type 9111DG 2 ADC Trigger Source Internal 3 Timer Clock Source Internal 4 DA Polarity setting Bipolar ...

Page 82: ...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 you proceed the calibration The instructions will guide you to calibrate each item step by step The bottom window shows the layout of PCI 9111 In addition the proper Variable Resister V...

Page 83: ... 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 9111 Function Testing 1 DI DO Test 2 D A Test 3 A D with Polling Test 4 A D with Interrupt Test 5 A D with FIFO Half Full Interrupt Esc Q...

Page 84: ...ers who doesn t want to use interrupt function can use this utility to turn off the interrupt of their PCI 9111 board After finishing the DOS installation you can execute the utility by typing as follows C cd ADLINK DOS 9111 UTIL C I_eeprom At first this program prompts you to input the card type 9111 After specifying the card type this program shows the instructions to guide you to enable or disa...

Page 85: ...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: