background image

 

 

 

NuDAQ

 

P C I -9 1 1 4 D G / H G

 

Enhanced Multi-Functions 

Data Acquisition Card

 

User’s Guide

 

Содержание NuDAQ PCI-9114DG

Страница 1: ...NuDAQ P C I 9 1 1 4 D G H G Enhanced Multi Functions Data Acquisition Card User s Guide ...

Страница 2: ......

Страница 3: ...ng out of the use or inability to use theproduct 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 DAQBench are reg...

Страница 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 ...

Страница 5: ......

Страница 6: ......

Страница 7: ... PCIS OPC OPC Server 6 Chapter 2 Installation 7 2 1 What You Have 7 2 2 Unpacking 8 2 3 PCB Layout of PCI 9114 9 2 4 Hardware Installation 10 2 5 Device Installation for Windows Systems 10 2 6 Connector Pin Assignment 11 2 6 1 Pin Assignment of CN1 11 2 6 2 Pin Assignment of CN2 CN3 12 2 7 Jumper Descriptions 12 2 7 1 JP1 Analog Signal Input Type Selection 12 2 7 2 JP2 Cold Junction Sensor Selecti...

Страница 8: ... 5 A D Data Format 31 4 2 Interrupt Control 32 4 2 1 System Architecture 32 4 2 2 IRQ Level Setting 32 4 2 3 Dual Interrupt System 32 4 2 4 Interrupt Source Control 33 4 3 Isolation Digital Input 33 4 4 Isolation Digital Output 35 4 5 Timer Counter Operation 37 4 5 1 Introduction 37 4 5 2 Pacer Trigger Source 37 Chapter 5 Software Library 39 5 1 Libraries Installation 39 5 2 Programming Guide 40 5...

Страница 9: ...ontrol 61 5 28 _9114_CLR_IRQ1 62 5 29 _9114_CLR_IRQ2 62 5 30 _9114_Get_IRQ_Channel 63 5 31 _9114_Get_IRQ_Status 63 5 32 _9114_AD_FFHF_Polling 64 5 33 _9114_AD_FFHF_Polling_MUX 64 5 34 _9114_AD_Aquire 65 5 35 _9114_AD_Aquire_MUX 66 5 36 _9114_AD_INT_Start 68 5 37 _9114_AD_FFHF_INT_Start 69 5 38 _9114_AD_INT_Status 71 5 39 _9114_AD_FFHF_INT_Status 71 5 40 _9114_AD_FFHF_INT_Restart 73 5 41 _9114_AD_I...

Страница 10: ...iv Contents Product Warranty Service 83 ...

Страница 11: ...bed Chapter 3 Registers Format describes the details of registers format and structure of the PCI 9114 this information is very important for the programmers who want to control the hardware by low level programming language Chapter 4 Operation Theorem describes how the PCI 9114 operates The A D and timer counter functions are introduced Also some programming concepts are specified in this chapter...

Страница 12: ......

Страница 13: ...echnology make this card ideal for data logging and signal analysis applications in medical process control and etc The following block diagram shows the brief functions of the PCI 9114 32 bits PCI Bus 32 SE 16DI MUX PGA Gain 1 10 100 1000 16 bits AD PCI Controller AD Controller ASIC 8254 Timer Cold Junction Sensor 1K FIFO 16 Channels Isolation DI 16 Channels Isolation DO ...

Страница 14: ...K WORDS FIFO memory Auto scanning channel selection 16 Isolated Digital Input Channels 16 Isolated Digital Output Channels with high driving capability 5000 V rms high voltage isolation for DIO channels 1 2 Applications Industrial process control Transducer thermocouple RTD Power monitor Medical instrument Biomedical measurement 1 3 Specifications Analog Input A D Converter B B ADS7805 or equivale...

Страница 15: ...on voltage 5000 V rms Throughput 10 KHz Isolation Digital Output IDO Number of output channels 16 channels current source Output type open emitter 0 5 to 50 VDC Source Current Single channel sources 500 mA maximum 8 channels source 60mA maximum simultaneously One TD62083 chip contains 8 channels totally Isolation voltage 5000 V rms Throughput 10 KHz General Specifications Connector 37 pin D type c...

Страница 16: ...ns descriptions are included in this user s guide 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 ...

Страница 17: ...he user s guide in the CD Manual_PDF Software DAQBench DAQBench Manual PDF 1 4 5 DASYLabTM PRO DASYLab is an easy to use software package 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 in...

Страница 18: ...4 9 PCIS OPC OPC Server PCIS OPC is an OPC Server which can link with the OPC clients There are many software packages on the market can provide the OPC clients now The PCIS OPC supports the Windows NT It needs license ...

Страница 19: ... Install the software drivers and run utility to test section 2 5 Cabling with external devices section 2 6 2 8 2 1 What You Have In addition to this User s Manual the package includes the following items PCI 9114 Enhanced Multi function 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 Sav...

Страница 20: ... anti static mat Inspect the card module carton for obvious damage Shipping and handling may cause damage to your module Be sure there are no shipping and handing damages on the module before processing After opening the card module carton extract the system module and place it only on a grounded anti static surface component side up Again inspect the module for possible damage Note DO NOT APPLY P...

Страница 21: ...Installation 9 2 3 PCB Layout of PCI 9114 ...

Страница 22: ...1 Turn off your computer 2 Turn off all accessories printer modem monitor etc connected to your computer 3 Remove the cover from your computer 4 Setup jumpers on the PCI or CompactPCI card 5 Select a 32 bit PCI slot PCI slot are short than ISA or EISA slots and are usually white or ivory 6 Before handling the PCI cards discharge any static buildup on your body by touching the metal case of the com...

Страница 23: ...AI2H AI3H AI2L AI1L AI0L AI1H AI0H AI6H AI7H AI5H AI4H AI5L AI6L AI4L AI3L AGND AI7L AGND GND 12V CN1 for Differential Input mode AI10H AI11H AI9H AI8H AI14H AI13H AI12H AI10L AI9L AI8L AI13L AI14L AI12L AI11L AI15L AI15H 12V 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 36 35 34 33 32 31 30 29 28 27 37 26 25 24 23 22 21 20 Figure 2 1 Pin Assignment of CN1 Legend AIn Analog Input Channel n for s...

Страница 24: ...7 20 DO_0 CN3 for Isolation Digital Output 18 19 DO_1 DO_2 DO_3 DO_4 DO_5 DO_6 DO_7 EOGND Vpower DO_8 DO_9 DO_10 DO_11 DO_12 DO_13 DO_14 DO_15 EOGND Vpower Figure 2 2 Pin Assignment of CN2 CN3 Legend DIn Isolation Digital Input Channel n n 0 15 EICOMx Common plane for Isolation Input group x x 1 4 DOn Isolation Digital Output Channel n EOGND Isolation Output Signal Ground Vpower Isolation Output D...

Страница 25: ...t the C J sensor to AD Channel 0 under Differential Input mode Note that if the JP1 is wrongly set as SE mode the C J sensor is connected to CH 0 and the CH 16 is connected to ground plane l Connect the C J Sensor to AD Channel 0 under Single Ended Input mode CH 16 is used as normal single ended input CJ JP2 Do not Use the C J Sensor Normal CJ JP2 Use the C J Sensor D I mode Normal CJ JP2 Use the ...

Страница 26: ...e simple applications that do not need complex signal condition in front of the A D conversion Connect with ACLD 9188 ACLD 9188 is a general purposed terminal board for all the cards which come equipped with 37 pin D sub connector Connect with ACLD 9178 ACLD 9178 is a general purposed terminal board for all the cards which come equipped with two 20 pin header connector Connect with DIN 37D DIN 37D...

Страница 27: ...egisters The PCR which is 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 o...

Страница 28: ...16 Registers Format Please do not try to modify the base address and interrupt which assigned by the PCI PnP BIOS it may cause resource confliction in your system ...

Страница 29: ...ll I O Base Address 1 Write Read Base 00h Isolation DO port Isolation DI port Base 02h AD MUX channel no AD MUX channel no setting Base 04h AD range control AD range control read back Base 06h AD trigger mode AD trigger mode read back Base 08h Interrupt control Interrupt control read back Base 0Ah Software AD trigger FIFO status read back Base 0Ch Clear H W IRQ1 Base 0Eh Clear H W IRQ2 Base 20h 82...

Страница 30: ...SE2 03h X X X X X X X X AD15 AD0 Analog to digital data AD15 is the Most Significant Bit MSB AD0 is the Least Significant Bit LSB CH4 CH0 Channel number of the A D data 3 4 A D Channel Control Register The PCI 9114 provides 32 SE or 16 DI channels The channel control register is used to set the A D channels to be converted The 5 LSBs of this register control the channel number Under non auto scann...

Страница 31: ...Registers Format 19 CN4 is MSB and CN0 is LSB ...

Страница 32: ...nding A D range is listed in the table below G1 G0 Gain HG DG Analog Input Range of PCI 9114HG Analog Input Range of PCI 9114DG 0 0 1 1 10V 10V 0 1 10 2 1V 5V 1 0 100 4 100 mV 2 5V 1 1 1000 8 10 mV 1 25V 3 6 A D Status Read back Register The A D FIFO status can be read back from this register Address BASE 0Ah Attribute read only Data Format Bit 7 6 5 4 3 2 1 0 BASE 0Ah X X X X AD_BUSY FF_FF FF_HF ...

Страница 33: ...l and Read back Register The PCI 9114 has a dual interrupt system thus two interrupt sources can be generated and be checked by the software This register is used to select the interrupt sources Address BASE 08h Attribute write and read Data Format Bit 7 6 5 4 3 2 1 0 BASE 08h X X X X MUX FFEN ISC1 ISC0 ISC0 IRQ0 signal select 0 IRQ on the ending of the AD conversion EOC 1 IRQ when FIFO is half fu...

Страница 34: ...the PCI interrupt signal is level trigger the interrupt clear register must be written to clear the flag after processing the interrupt request event otherwise that another interrupt request is inserted will cause the software to hang on processing the interrupt event There are two interrupt clear registers The two registers are used to clear the IRQ1 and IRQ2 respectively Address BASE 0Ch Attribu...

Страница 35: ... Format Base 20h Counter 0 Register R W Base 22h Counter 1 Register R W Base 24h Counter 2 Register R W Base 26h 8254 CONTROL BYTE W 3 12 High Level Programming To operate the PCI 9114 you can bypass the detailed register structures and use the high level application programming interface API to control your PCI 9114 card directly The software library DOS library for Borland C C is included in the...

Страница 36: ......

Страница 37: ...n Before programming the PCI 9114 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 Users have to understand the interrupt system sect...

Страница 38: ... should know about the A D data format Refer to section 4 1 5 for details 4 1 2 A D Signal Source Control To control the A D signal source the signal type signal channel and signal range should be considered Signal Type The A D signal sources of PCI 9114 could be single ended SE or differential input DI There are 32 SE or 16 DI A D channels on board To avoid ground loops and get more accurate meas...

Страница 39: ...t one is the software programming and the second one is the auto channel scanning which is controlled by the ASCAN bit in AD trigger mode control register As ASCAN is cleared 0 the value of AD Channel Control register defines the channel to be selected As ASCAN is set 1 the value in AD channel control register defines the ending channel number of auto scanning operation Under auto scan mode the ch...

Страница 40: ...igger conditions are specified as follows Software trigger TSSEL 0 The trigger source is software controllable in this mode That is the A D conversion is starting when any value is written into the software trigger register This trigger mode is suitable for low speed A D conversion Under this mode the timing of the A D conversion is fully controlled by software However it is difficult to control t...

Страница 41: ... becomes high You can consider the FF_EF bit as a flag to indicate the converted data ready status That is FF_EF is high means the data is ready Note that while A D is converted the ADBUSY bit is low After A D conversion the ADBUSY becomes high to indicate not busy Please do NOT use this bit to poll the AD data It is possible to read A D converted data without polling The A D conversion time will ...

Страница 42: ...ause it is not necessary to be the highest priority The other benefit is this method will not use hardware interrupt resource Therefore the interrupt 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 9114 provides traditional hardware end of conversion EOC interrupt capab...

Страница 43: ...range of A D data read from the FIFO port is from 32768 to 32767 As the A D gain is 1 the A D signal range is 10V 10V The relationship between the voltage and the value is shown in the following table Voltage Volts A D Data Hex Decimal Value 10V Bipolar 7FFF 32767 9 9997 4000 16384 5 0000 0001 1 0 0003 0000 0 0 0000 FFFF 1 0 0003 C000 16385 5 0000 8001 32767 9 9997 8000 32768 10 0000 The formula b...

Страница 44: ...ces Fig 4 2 1 shows the interrupt system Figure 4 2 1 Dual Interrupt System of PCI 9114 4 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 The IRQ level is set by the PCI plug and play BIOS This value is save...

Страница 45: ...f the two bits In addition the PCI controller itself can also control the use of the interrupt For manipulating the interrupt system more easily we recommend you to use the function _9114_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 changing the initial condition of the PCI controller t...

Страница 46: ... ID_7 EICOM2 ID_8 ID_11 EICOM3 ID_12 ID_15 EICOM4 Table 4 3 Digital input signals and ground plane The common plane could be either common power or common ground The following diagram shows the EICOM as common ground The external devices or circuits provide the power source or current source 1 2 K O h m Isolated Input E I C O M The following diagram shows the EICOM as common power The external dev...

Страница 47: ...heel diode which can protect the driver if the loading is inductance loading such as relay motor or solenoid If the loading is resistance loading such as resistor or LED the connection to fly wheel diode is not necessary Therefore the first step for connecting the output with external device is to distinguish the type of loading For example if the loading is LED or resistor you can use the followi...

Страница 48: ...ding such as relay you can use the following wiring diagram The POWER must connect to the external power to form a fly wheel current loop Figure 4 6 opto isolated output circuit for inductance loading Vpower From digital circuits DO_n EOGND Load Power Supply ...

Страница 49: ... Timer counter system of PCI 9114 4 5 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 9114 80KHz The minimum signal rate is 2MHz 65535 65535 which is a very slow fr...

Страница 50: ......

Страница 51: ...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...

Страница 52: ...indows 95 DLL driver e g W_9114_Initial 5 2 2 Data Types We defined some data type in Pci_9114 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 32768 t...

Страница 53: ...Syntax C C DOS U16 _9114_Initial U16 existCards PCI_INFO info C C Windows 95 U16 W_9114_Initial U16 existCards PCI_INFO info Visual Basic Windows 95 W_9114_Initial existCards As Integer info As PCI_INFO As Integer Argument existCards numbers of existing PCI 9114 cards info relative information of the PCI 9114 cards Return Code ERR_NoError ERR_BoardNoInit ERR_PCIBiosNotExist ...

Страница 54: ...ByVal cardNo As Integer Argument cardNo The card number of initialized PCI 9114 card Return Code None 5 5 _9114_DO Description This function is used to write data to digital output port There are 16 digital output channels on PCI 9114 Syntax C C DOS U16 _9114_DO U16 cardNo U16 ADData C C Windows 95 U16 W_9114_DO U16 cardNo U16 DOData Visual Basic Windows 95 W_9114_DO ByVal cardNo As Integer ByVal ...

Страница 55: ...rt Return Code ERR_NoError 5 7 _9114_AD_Read_Data Description This function is used to read the AD conversion data from AD Data register The resolution of A D conversion data is 16 bit Syntax C C DOS U16 _9114_AD_Read_Data U16 cardNo U16 far ADData C C Windows 95 U16 W_9114_AD_Read_Data U16 cardNo U16 ADData Visual Basic Windows 95 W_9114_AD_Read_Data ByVal cardNo As Integer ADData As Integer As I...

Страница 56: ...44 C C Library the digital value Return Code ERR_NoError ...

Страница 57: ... Basic Windows 95 W_9114_AD_Read_Data_Repeat ByVal cardNo As Integer ADData As Integer ByVal n As Integer As Integer Argument cardNo The card number of PCI 9114 card initialized ADData A D converted value The resolution of AD data is 16 bit The bit 0 of ADData is the LSB of A D converted data and the bit 15 of ADData is the MSB of A D converted data Please refer to section 5 1 5 for the relationsh...

Страница 58: ...nt cardNo The card number of PCI 9114 card initialized ADData A D converted value The resolution of A D conversion data is 16 bit The unsigned integer data format of ADData is as follows Every 32 bit unsigned integer data bit 0 15 A D converted data bit 16 17 20 converted channel no Please refer to section 5 1 5 for the relationship between the voltage and the value Return Code ERR_NoError 5 10 _9...

Страница 59: ...C C Library 47 U16 _9114_AD_Read_Data_Repeat_MUX U16 cardNo U32 far ADData U16 n C C Windows 95 U16 W_9114_AD_Read_Data_Repeat_MUX U16 cardNo U32 ADData U16 n ...

Страница 60: ...r of times to read the AD conversion data Return Code ERR_NoError 5 11 _9114_AD_Set_Channel Description This function is used to set AD channel by means of writing data to the channel control register There are 32 single ended A D channels in PCI 9114 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...

Страница 61: ...C C Library 49 cardNo The card number of PCI 9114 card initialized ADChannelNo The selected channel number or the ending channel number to perform A D conversion Return Code ERR_NoError ...

Страница 62: ..._B_0_1_V 10m V X 1000 AD_B_0_01_V For PCI9114DG Input Range V Gain Gain Code 10 V X 1 AD_B_10_V 5 V X 2 AD_B_5_V 2 5 V X 4 AD_B_2_5_V 1 25 V X 8 AD_B_1_25_V Syntax C C DOS U16 _9114_AD_Set_Range U16 cardNo U16 ADRange C C Windows 95 U16 W_9114_AD_Set_Range U16 cardNo U16 ADRange Visual Basic Windows 95 W_9114_AD_Set_Range ByVal cardNo As Integer ByVal ADRange As Integer As Integer Argument cardNo ...

Страница 63: ...nt cardNo The card number of PCI 9114 card initialized ADRange The programmable gain of A D conversion the possible values are AD_B_10_V AD_B_1_V AD_B_0_1_V AD_B_0_01_V AD_B_5_V AD_B_2_5_V AD_B_1_25_V Return Code ERR_NoError 5 14 _9114_AD_Get_Status Description This function is used to get AD FIFO status from the status readback register Syntax C C DOS U16 _9114_AD_Get_Status U16 cardNo U16 ADStat...

Страница 64: ...52 C C Library ADSTS_FF_EF FIFO is empty ADSTS_FF_HF FIFO is half full ADSTS_FF_FF FIFO is full A D data may have been loss ADSTS_BUSY AD is busy A D data is written into FIFO Return Code ERR_NoError ...

Страница 65: ...alue of AD mode The mode could be one or a combination of the following modes A_9114_AD_FIFO_ENABLE A_9114_AD_FIFO_DISABLE A_9114_AD_TimerTrig A_9114_AD_SoftTrig A_9114_AD_AutoScan Return Code ERR_NoError 5 16 _9114_AD_Get_Mode Description This function is used to get AD mode from AD trigger mode control register Please refer to section 5 1 3 for the detailed description of AD trigger modes Syntax...

Страница 66: ...S U16 _9114_INT_Set_Reg U16 cardNo U16 INTC C C Windows 95 U16 W_9114_INT_Set_Reg U16 cardNo U16 INTC Visual Basic Windows 95 W_9114_INT_Set_Reg ByVal cardNo As Integer ByVal INTC As Integer As Integer Argument cardNo The card number of PCI 9114 card initialized INTC The value written to the interrupt control register Return Code ERR_NoError 5 18 _9114_AD_Get_Reg Description This function is used ...

Страница 67: ...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 _9114_Reset_FIFO U16 cardNo C C Windows 95 U16 W_9114_Reset_FIFO U16 cardNo Visual Basic Windows 95 W_9114_Reset_FIFO ByVal cardNo As Integer As Integer Argument cardNo The card number of PCI 9114 card initialized Return Code...

Страница 68: ...igger U16 cardNo C C Windows 95 U16 W_9114_AD_Soft_Trigger U16 cardNo Visual Basic Windows 95 W_9114_AD_Soft_Trigger ByVal cardNo As Integer As Integer Argument cardNo The card number of PCI 9114 card initialized Return Code ERR_NoError ...

Страница 69: ... card initialized Tmr_ch Port of 8254 Timer the value is within 0 to 2 Count The counter value Return Code ERR_NoError 5 22 _9114_Get_8254 Description This function is used to read PCI 9114 8254 Programmable Timer The read value is stored in count Syntax C C DOS U16 _9114_Get_8254 U16 cardNo U16 ChannelNo U8 count C C Windows 95 U16 W_9114_Get_8254 U16 cardNo U16 ChannelNo U8 count Visual Basic Wi...

Страница 70: ...58 C C Library count value read from 8254 programmable timer only 8 LSBs are effective Return Code ERR_NoError ...

Страница 71: ..._AD_Timer ByVal cardNo As Integer ByVal c1 As Integer ByVal c2 As Integer As Integer Argument cardNo The card number of PCI 9114 card initialized c1 frequency divider of timer 1 c2 frequency divider of timer 2 Return Code ERR_NoError 5 24 _9114_Counter_Start Description The counter 0 of the PCI 9114 Timer Counter chip can be freely programmed by the users This function is used to program the count...

Страница 72: ... of the Counter 0 Syntax C C DOS U16 _9114_Counter_Read U16 cardNo U16 c0 C C Windows 95 U16 W_9114_Counter_Read U16 cardNo U16 c0 Visual Basic Windows 95 W_9114_Counter_Read ByVal cardNo As Integer c0 As Integer As Integer Argument cardNo The card number of PCI 9114 card initialized c0 count value of counter 0 Return Code ERR_NoError 5 26 _9114_Counter_Stop Description This function is used to st...

Страница 73: ...ntrol register Please refer to section 5 1 4 for detailed description of A D data transfer modes Syntax C C DOS void _9114_INT_Source_Control U16 cardNo U16 int1Ctrl U16 int2Ctrl C C Windows 95 void W_9114_INT_Source_Control U16 cardNo U16 int1Ctrl U16 int2Ctrl Visual Basic Windows 95 W_9114_INT_Source_Control ByVal cardNo As Integer ByVal int1Ctrl As Integer ByVal int2Ctrl As Integer Argument car...

Страница 74: ... C C DOS void _9114_CLR_IRQ1 U16 cardNo C C Windows 95 void W_9114_CLR_IRQ1 U16 cardNo Visual Windows 95 W_9114_CLR_IRQ1 ByVal cardNo As Integer Argument None Return Code None 5 29 _9114_CLR_IRQ2 Description This function is used to clear interrupt request that is requested by PCI 9114INT2 If you use interrupt to transfer A D converted data you should use this function to clear interrupt request s...

Страница 75: ...ByVal cardNo As Integer irq_no As Integer Argument cardNo The card number of PCI 9114 card initialized Irq_no The IRQ level used to transfer A D data for this card Return Code None 5 31 _9114_Get_IRQ_Status Description This function is used to get the status of the two IRQs INT1 and INT2 in PCI 9114 card Syntax C C DOS void _9114_Get_IRQ_Status U16 cardNo U16 ch1 U16 ch2 C C Windows 95 void W_9114...

Страница 76: ... 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 _9114_AD_FFHF_Polling U16 cardNo I 16 far ad_buf C C Windows 95 U16 W_9114_AD_FFHF_Polling U16 cardNo I16 ad_buf Visual Basic Windows 95 W_9114_AD_FFHF_Polling ByVal cardNo As In...

Страница 77: ...iption of half full polling mode Syntax C C DOS U16 _9114_AD_FFHF_Polling_MUX U16 cardNo U32 far ad_buf C C Windows 95 U16 W_9114_AD_FFHF_Polling_MUX U16 cardNo U32 ad_buf Visual Basic Windows 95 U16 W_9114_AD_FFHF_Polling_MUX ByVal cardNo As Integer ad_buf As Long As Integer Argument cardNo The card number of PCI 9114 card initialized ad_buf The 32bits A D converted value The data format can be r...

Страница 78: ...t reads the A D data when the data is ready Syntax C C DOS U16 _9114_AD_Aquire_MUX U16 cardNo U32 far ad_data C C Windows 95 U16 W_9114_AD_Aquire_MUX U16 cardNo U32 far ad_data Visual Basic Windows 95 W_9114_AD_Aquire_MUX ByVal cardNo As Integer ad_data As Long As Integer Argument cardNo the card number of PCI 9114 card initialized ad_data the 32bits A D converted value The resolution of A D conve...

Страница 79: ...C C Library 67 ...

Страница 80: ...source therefore you must specify c1 c2 as calling this function In addition this function in DOS library supports just one PCI 9114 card and provides only one ISR interrupt service routine for processing the interrupt events Syntax C C DOS U16 _9114_AD_INT_Start U16 c ardNo 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_9114_AD_INT_Start U16 card...

Страница 81: ...ider of Timer 1 c2 the frequency divider of Timer 2 Return Code ERR_InvalidADChannel ERR_AD_InvalidGain ERR_InvalidTimerValue ERR_NoError 5 37 _9114_AD_FFHF_INT_Start Description This function is used to initial and start up the AD EOC end of conversion interrupt by using AD FIFO Half Full Interrupt Transfer Mode This function could perform A D conversion N times with interrupt data transfer by us...

Страница 82: ...s 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 9114 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 If the auto_scan is set as disable only the...

Страница 83: ... is executed on background therefore you can issue this function to check the status of interrupt operation Syntax C C DOS U16 _9114_AD_INT_Status U16 cardNo U16 status U16 count C C Windows 95 U16 W_9114_AD_INT_Status U16 cardNo U16 status U16 count Visual Basic Windows 95 W_9114_AD_INT_Status ByVal cardNo As Integer status As Integer count As Integer As Integer Argument cardNo the card number of...

Страница 84: ...ax C C DOS U16 _9114_AD_FFHF_INT_Status U16 cardNo U16 status U16 blockNo C C Windows 95 U16 W_9114_AD_FFHF_INT_Status U16 cardNo U16 status U16 blockNo Visual Basic Windows 95 W_9114_AD_FFHF_INT_Status ByVal cardNo As Integer status As Integer blockNo As Integer As Integer Argument cardNo the card number of PCI 9114 card initialized status the status of the INT data transfer blockno the A D conve...

Страница 85: ...AD_FFHF_INT_Restart U16 cardNo Visual Basic Windows 95 W_9114_AD_FFHF_INT_Restart ByVal cardNo As Integer As Integer Argument cardNo the card number of PCI 9114 card initialized Return Code ERR_NoError 5 41 _9114_AD_INT_Stop Description This function is used to stop the interrupt data transfer function After executing this function the internal AD trigger is disabled and the AD timer is stopped Th...

Страница 86: ...74 C C Library CardNo the card number of PCI 9114 card initialized count the number of A D data which has been transferred Return Code ERR_AD_INTNotSet ERR_NoError ...

Страница 87: ... System Configuration Calibration and Functional Testing and I_eeprom which is used to enable or disable interrupt of PCI 9114 board The utility programs are described in the following sections 6 1 Calibration 6 1 1 What do you need Before calibrating your PCI 9114 card you should prepare some equipments for the calibration Calibration program Once the program is executed it will guide you to do t...

Страница 88: ...d TP2 5 Adjust VR3 until the multi meter value approach to zero Bipolar offset calibration 1 Set AD input signal type to single ended default input 2 Set Gain AD range register to desired value 3 Use multi meter to calibrate the external reference voltage to the lowest value of the specified AD range e g If AD range is 10V the external reference voltage will be set as 10V 4 Connect the external re...

Страница 89: ...inate any temperature drift For example user can short the resistor RB32 to ground Measuring the digital value of channel 31 can obtain the offset voltage of the 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 offs...

Страница 90: ...ration F3 Function testing Esc Quit Select function key F1 F3 or press Esc to quit System Configuration This function guides you to configure the PCI 9114 card and set the right hardware configuration The configuration window shows the setting items that you have to set before using the PCI 9114 card The following diagram will be displayed on the screen as you choose the Configuration function fro...

Страница 91: ...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 you proceed the calibration The instructions will guide you to calibrate each item step by step The bottom window shows the layout of PCI 9114 In addition the proper V...

Страница 92: ...Full Interrupt testing When you choose one of the testing functions from the function 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 9114 Function Testing 1 A D with Polling Test 2 A D with Interrupt Test 3 A D with FIFO Half Full Interrupt 4 DI DO Test Esc Quit Select 1 to 4 or Esc to quit function testing F...

Страница 93: ...interrupt of their PCI 9114 board If the interrupt is disabled then BIOS will not assign any IRQ resource to PCI 9114 This may solve some compatibility problem due to the ISA cards IRQ is not sharing Running I_eeprom exe After finishing the DOS installation you can execute the utility by typing as follows C cd ADLINK 9114 DOS UTIL C I_eeprom At first this program prompts you to input the card type...

Страница 94: ......

Страница 95: ...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...

Отзывы: