Home
cPCI-9116®/cPCI-9116R® User's Guide
Contents
1. 82 7 1 Running 9116util exe program 82 e Gallbrati n ie getesselt 83 7 2 1 What do You need esse esse ee ke Re Ee Re ek Ge ke es Re eke 83 GAP VR Assignment EE W Se WEN aR ta 84 723 A D Adjustment esse ees ee se anena ee ee RA v la 84 73 Functional RECH WEE 85 Warranty Policy cccssssensssseeesseeeeeeseeeeeenseensaseceesenseeeeeassneeeaseeeeeeneeenes 87 Table of Contents e iii Tables Table 1 Table 2 Table 3 Table 4 Table 5 Table 6 Table 7 Table 8 Table 9 Table 10 Table 11 Table 12 Table 13 Table 14 Table 15 Table 16 Table 17 Table 18 ive Tables Legend of J1 Connector conoccccocccccccnoncnononcnancncnncncnrnncnnnncnnnnnns 15 VO Port Address 2s este sik kore GERS ERGER a d V n Ke eka ege 20 Timer Counter Register Address AA 21 General Purpose Timer Counter Register 22 General Purpose Timer Counter Control Register 22 GPTCO s Mode selecCtON ee ee ke ee ke ee ee 23 A D Data Hegtsiers AAA 24 Channel Gain Queue Register aaaaaaiaaasaassansaassaann 24 Gain Selection Bis 25 A D amp FIFO Control Register A 26 A D amp FIFO Status Register Eu ee ee ke ee ee 27 Digital VO register Read sesse ee ee EE 29 Digital VO register rte 29 A D Trigger Mode Register AAA 30 Trigger Mode Selection Bits A 31 Interrupt Control Register A 31 Interrupt Status Reg
2. Table 9 Gain Selection Bits HL_sel bit3 gt 31 channel selection single ended 1 when channel number is larger than 31 0 when channel number is smaller than or equal to 31 DIFF bit1 Analog Input Signals Type 1 Differential 0 Single ended UNIP bit2 Analog Input Signals Polarity 1 Unipolar 0 Bipolar U CMMDI bitO User Defined Common Mode Selection 1 User Defined Common Mode Pin 1 0 Local Ground of 9116 series Registers e 25 47 A D amp FIFO Control Register Address BASE 28 Attribute Write Data Format Table 10 A D amp FIFO Control Register DMA Bit8 Write Only Set for DMA transfer SC dis Bit7 Write Only Set to disable the SC counter Clear Channel Gain Queue Bit6 Write Only Clear the Channel Gain Oueue 0 no effect on the Channel Gain Queue 1 clear the Channel Gain Queue Set done Bit5 Write Only 0 indicate the Channel Gain Queue is not ready 1 indicate the Channel Gain Queue is OK Clear DFIFO Bit4 Write Only Clear the Data FIFO 0 no effect on Data FIFO 1 clear the Data FIFO Clear Trg_det Bit3 Write 1 to clear 26 e Registers Write 1 to clear the trigger status 0 no effect 1 clear trigger detect status Clear SC TC Bit2 Write 1 to clear Write 1 to clear Scan Counter Terminal Count status 0 no effect 1 clear the SC TC status Clear ADOR Bit1 Write 1 to clear Write 1 to clear the A D Overrun Status 0 no effect 1 clear the A D Overrun stat
3. 0x0C Base 0x10 Base 0x14 Base 0x18 Base 0x1C Base 0x20 Base 0x24 Base 0x28 Base 0x2C Base 0x30 Base 0x34 Base 0x38 20 e Registers Sample Interval Counter Scan Counter DIV Counter Delay1 Counter GP Counter Timer 0 GP Counter Timer Control Reg A D FIFO Data Reg SS Channel Gain Queue A D and FIFO Status Reg JAD and FIFO Control Reg Digital IN Reg Dout Digital OUT Reg X A D Trigger Mode Reg Interrupt Control Reg Table 2 VO Port Address 4 2 Internal Timer Counter Register The 9116 series card basically has 6 counters which are responsible for the scan timing of the analog input data acquisition The 6 counters occupy 6 VO address locations in the 9116 card as shown below Address BASE 0 BASE 14 Attribute read write Data Format Base 0x00 Base 0x04 Base 0x08 Base 0x0C Base 0x10 Base 0x14 SI counter SI2 counter SC counter DIV counter DLY1 counter M counter Scan Interval Counter Register R W 24bit Sample Interval Counter Register R W 16bit Scan Counter Register R W 24bit DIV Counter Register R W 9bit Delay1 Counter Register R W 16bit M Counter Register R W 16bit Table 3 Timer Counter Register Address Scan Interval counter Sample Interval counter total Scan Count counter specify the number of samples per scan Delay Interval counter only used in delay trigger mode specify the number of scans before
4. SSH_OUT pin47 Acquisition_in_progress Acquired data lt gt gt M scans before N scans trigger after trigger gt Operation start Acquired amp stored data M N scans Figure 15 Middle trigger trigger with scan is in progress Post Trigger Acquisition Use post trigger acquisition in applications where you want to collect data after an external trigger event The number of scans after the trigger is specified in SC_counter as illustrated in fig 16 The total acquired data length DIV_counter SC_counter DIV_Counter 4 SC_Counter 3 ExtTrg I Scan_start AD conversion II II TI TI Scan_in_progress SSH_OUT Acauisition in progress Acquired amp stored data 3 scans Operation start Figure 16 Post trigger 44 e Operation Theory Delay Trigger Acquisition Use delay trigger acquisition in applications where you want to delay the data collection after the occurrence of a specified trigger event The delay time is controlled by the value which is pre loaded in the Delay_counter 16bit The counter counts down on the rising edge of Delay_counter clock source after the trigger condition is met The clock source can be software programmed either Timebase clock 24MHz or A D sampling clock Timebase SI2_counter When the count reaches 0 the counter stops and 9
5. Specify the Scan Interval SI counter Timebase SI2_counter 16 bit Specify the data Sampling Interval SI2_counter Timebase SC_counter 24 bit Specify Scan Count Counter after trigger DIV_counter 9 bit Specify the number of samples per scan The acquisition timing and the meaning of the 4 counters are illustrated in figure 9 36 e Operation Theory Timebase clock source In scan acduisition mode all the A D conversions start on the output of counters which use Timebase as the clock source With the software you can specify the Timebase to be either an internal clock source on board 24MHz or an external clock input on pin 45 of J1 The external clock is useful when you want to acquire data at rates not available with the internal A D sample clock The external clock source must generate TTL compatible continuous clocks and the maximum frequency is 24MHz while the minimum is 1MHz 3 Scans 4 Samples per scan SC_Counter 3 DIV_Counter 4 channel sequences are specified in Channel Gain Queue Ch2 Ch2 Ch2 i Ch3 i Ch3 i Gh3 i E Chi Ch Scan start AD conversion Scan in progress SSH OUT pin47 Acauisition in progress Sampling Interval t Scan Interval T SI2_COUNTER TimeBase SI_COUNTER TimeBase Figure 9 Scan Timing In the scan acquisition mode the channel gain and input configurations single end differential or U_CMMD must be
6. may cause damage to your module Be sure there are no shipping and handling damages on the modules carton before continuing After opening the card module carton extract the system module and place it only on a grounded anti static surface with component side up Again inspect the module for damages 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 cPCI 9116 R Installation e 9 cPCI 9116 and cPCI 9116R Layout 2 3 Y Aa 8LI6 049 aal KI em PCB Layout of the cPCI 9116 Figure 1 10 e Installation Ty Aas TO BETZE TS M Goen as TE TIETE Wy ME SSF HE Ero FEKE SR Wi ITT em o El En E Si S Oss Bu al CIE PCB Layout of cPCI 9116R and Rear VO adaptor Sen CO HE mol 13 HO EOERE TIS Figure 2 Installation e 11 24 PCI Configuration 1 Plug and Play As a plug and play component the board requests an interrupt numbe
7. 9116 series board that allows you to make adjustments to the A D channels The function of each VR is specified in Table 18 A D unipolar offset adjustment A D bipolar offset adjustment A D full scale adjustment PGA offset adjustment Table 18 Functions of VRs 7 2 3 A D Adjustment When you choose the calibration function from the main menu list a calibration items menu is displayed on the screen After you have select one of the calibration items from the calibration items menu a calibration window displays on the screen The upper window outlines the procedures that must be carefully followed to calibrate the 9116 series card The instructions will guide you through the calibration process step by step The bottom window shows the layout of the 9116 series card and the Variable Resister VR that needs to be adjusted will blink CPCI 9116 Calibration lt 1 gt A D PGA offset adjusting lt 2 gt A D Bipolar Gain 1 5V 5V adjusting lt 3 gt A D Unipolar Gain 1 OV 10V adjusting lt Esc gt Quit Select 1 to 3 or lt Esc gt to quit calibration Figure 23 A D Adjustment menu Screen 84 e Software Utility amp Calibration 7 2 3 1 PGA offset Calibration 1 Short the A D channel 0 pin 2 of J1 to ground pin51 of J1 2 Use multi meter to measure the voltage between TP1 and TP2 on board 3 Adjust VR4 to obtain the multi meter value as close as possible to OV 7 2 3 2 Bipolar input
8. A D with DMA A post trigger lt 8 gt A D with DMA amp delay trigger with retrigger 3 lt 9 gt A D with continuous DMA Double buffer mode lt Esc gt Quit Select 0 to 9 or lt Esc gt to quit function testing Figure 24 cPCI 9116 Function Testing Screen A calibration utility is supported in the software CD that is included in the product package The calibration procedures and descriptions can be found in the utility Users only need to run the software calibration utility and follow the procedures The 9116 series card is shipped calibrated from the factory Unless the 9116 card is operating in a very hostile environment with high temperature fluctuation and vibration users do not need to calibrate the 9116 series card when you first receive it 86 e Software Utility amp Calibration Warranty Policy Thank you for choosing ADLINK To understand your rights and enjoy all the after sales services we offer please read the following carefully 1 Before using ADLINK s products please read the user manual and follow the instructions exactly When sending in damaged products for repair please attach an RMA application form which can be downloaded from http rma adlinktech com policy All ADLINK products come with a limited two year warranty one year for products bought in China The warranty period starts on the day the product is shipped from ADLINk s factory Peripherals and third party products not man
9. DMA buffer memory in the computer Note that even when the acquired data length is less than the Data FIFO the AD data will not held in the Data FIFO but directly transferred to the host memory by bus mastering DMA The DMA transfer mode is very complex to program We recommend using a high level program library to configure this card If you want to program the software which can handle DMA bus master data transfer please refer to information about the PCI controller at www amcc com Note In DMA transfer mode the maximum acquired data length in one acquisition can be up to 64M bytes 82M samples which is the limit of the PCI controller However the memory that you allocate for data transfer must be continuous 5 2 Digital Input and Output To program the digital VO operation is fairly straightforward The digital input DI operation is to read data from its corresponding registers and the digital output DO operation is to write data to its corresponding registers The digital VO registers formats are shown in section 4 9 The DO can be read back when reading the DI port Note that the DIO data channel can only be read or written to in the form of 16 bit blocks It is impossible to access individual bits 48 e Operation Theory 5 3 General Purpose Timer Counter Operation An independent 16 bit up down timer counter is designed in the FPGA for user applications Fig 19 shows a simplified model of the timer counter on the 9116
10. Ground Referenced Signal U Source AIxL Figure 5 Ground referenced source and differential input Fig 6 shows how to connect a floating signal source to the 9116 card in differential input mode For floating signal sources a resistor is reguired on each channel to provide a bias return path The resistor value should be about 100 times the equivalent source impedance If the source impedance is less than 100ohms simply connect the negative side of the signal to AGND as well as the negative input of the Instrumentation Amplifier without any resistors In differential input mode less noise is coupled into the signal connections than in single ended mode x 0 31 Input Multipexer Instrumentation Amplifier Ground AlxH P Referenced e To A D Signal CO e Converter Source AL le S BM AGND NM Figure 6 Floating source and differential input Signal Connections e 17 User Common Mode U CMMD To measure ground referenced signal sources which are connected to the same ground point you can connect the signals in a User Common Mode U_CMMD configuration Fig 7 illustrates the connections The signal local ground reference is connected to the negative input of the instrumentation Amplifier and the common mode ground potential to signal ground The instrumentation amplifier will now reject the 9116 series ground I
11. card number 116 status U32 count U32 start_idx Argument card_number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Status status of the DMA data transfer AD DMA STOP or 0 DMA is completed AD DMA RUN or 1 DMA is not completed Count the number of A D data that have been transferred Return Code ERR_NoError ERR_AD_DMANotSet ERR_BoardNolnit 70 e C Library 6 9 3 9116 AD DMA Stop Description This function is used to stop the DMA data transfer and obtain the start index of the data buffer when pre trigger or middle trigger is selected Syntax C C DOS int 9116 AD DMA Stop l16 card number U32 count U32 start idx Argument card number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Count the number of A D converted data that have been transferred start idx The index where the data started from within the user s buffer i e the seguence of read data is buff start_idx buff start_idx 1 _ buff 0 buff 1 _ buff start_idx 1 Return Code ERR_NoError ERR_BoardNolnit C Library e 71 6 10 AD one shot scan data acquisition with interrupt transfer functions These functions are used to start scan data acquisition with interrupt transfer according to the selected trig
12. numbers are CARD_1 CARD 2 CARD 3 CARD 4 gate src 0 internal gate source 1 external clock source from pin97 of J1 Return Code ERR NOError ERR BoardNolnit 6 12 5 9116 GPO Set UPDOWN SRC Description This function is used to select the up down control source of GPTC When internal source is selected you can use function 9116 _GPO_Set_UPDOWN to select up down counter operation Syntax C C DOS Int 9116_GPO_Set_UPDOWN_SRC 116 card number U8 updown_src Argument card_number the card number of cPCI 9116 to be initialized totally 4 cards can be initialized the valid card numbers are CARD_1 CARD_2 CARD_ 3 CARD 4 0 internal source Updown src 1 external source from pin98 of J1 C Library e 79 Return Code ERR NOError ERR BoardNolnit 6 12 6 9116 GPO Set UPDOWN Description This function is used to select up down operation of GPTC when internal up down source is selected Syntax C C DOS Int 9116 GPO Set UPDOWNI I16 card number U8 updown Argument card number the card number of cPCI 9116 to be initialized totally 4 cards can be initialized the valid card numbers are CARD_1 CARD_2 CARD 3 CARD_4 Updown 0 count down 1 count up Return Code ERR_NoError ERR_BoardNolnit 6 12 7 9116 GPO EN Description This function is used to enable the counting of GPTC Syntax C C DOS Int 9116 GPO_EN 116 card number U8 gp0 en Argument card numbe
13. register There are 8 digital input and 8 digital output channels provided by the 9116 series cards The address Base 30 is used to access digital inputs and control digital outputs Address BASE 30 Attribute read Data Format SKAR or pe os ou oe De on 00 Ca is a n se oor pos pos Doa bos boz bor boo Bt 23 22 21 20 19 18 17 s RS E ETE HEI ESA ES Bt s so 29 28 27 26 25 24 EAS Table 12 Digital VO register Read Address BASE 30 Attribute write Data Format AR To pos os Doa bos boz bor boo et MEN MR HER E HERI MIR EDE TE EE GEE EE EE AE DE Bit 23 22 21 20 19 s 17 16 i EE eS ESE A sit 31 30 29 28 27 26 25 aza EE KN EN ET RN BN EE Table 13 Digital VO register Write Registers e 29 4 10 A D Trigger Mode Register Address BASE 0x34 Attribute write only Data Format softconv bit10 ACQ_EN bit9 M_enable bit8 Retrig bit7 DLY SRC bit6 30 e Registers Table 14 A D Trigger Mode Register ADC direct conversion control 1 generate 1 convert pulse 0 no effect Acquisition enable bit 1 enable the acquisition timing 0 disable the acquisition timing M counter enable bit 1 ignore trigger signals before M counter reaches 0 0 accept the trigger signal anytime Re triggerability in an acquisition 1
14. specified in the hardware Channel Gain Queue please refer to 5 1 3 2 for more details There are 5 trigger modes to start the scan acquisition please refer to 5 1 3 3 details The data transfer modes will be discussed in 5 1 3 4 Operation Theory e 37 Note 1 The maximum A D sampling rate is 250kHz Therefore Sl2 counter can t be smaller than 96 while using the internal Timebase 2 The SI counter is a 24 bit counter and the SI2 counter is a 16 bit counter Therefore the maximum scan interval while using the internal Timebase 2 24M s 0 699s and the maximum sampling interval between 2 channels while using the internal Timebase 2 24M s 2 73ms 3 The scan interval can t be smaller than the product of the data sampling interval and the DIV_counter value The relationship can be represented as SI_counter gt SI2_counter DIV_counter Scan with SSH You can send the SSH_OUT signal on pin 47 of J1 to an external S amp H circuits to sample and hold all signals if you want to simultaneously sample all channels in a scan as illustrated in fig 9 Note The SSH_OUT signal is sent to external S amp H circuits to hold the analog signal Users must implement external S amp H circuits on their own to carry out the S amp H function There are no on board S amp H circuits 5 1 3 2 Specifying Channels Gains and input configurations in the Channel Gain Queue Like software polling acquisition mode the channel gain an
15. the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Counter value the SI2_Counter value Range 96 through to 65536 Return Code ERR NOError ERR BoardNolnit C Library e 65 6 8 4 9116 AD Set DIV Description Set DIV Counter value for programmable scan acquisition mode Refer to Chapter 5 for definition of DIV Counter Syntax C C DOS int 9116 AD Set_DIV 116 card number U32 counter value Argument card number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Counter value the DIV Counter value Range 1 through to 512 Return Code ERR NOError ERR BoardNolnit 6 8 5 9116 AD Set_DLY1 Description Set DLY1_Counter value when delay trigger mode is selected Syntax C C DOS int 9116 AD Set_DLY1 116 card number U32 counter value Argument card number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD 1 CARD 2 CARD 38 CARD 4 Counter value the DLY1_Counter value Range 1 through to 65535 Return Code ERR_NoError ERR_BoardNolnit 66 e C Library 6 8 6 9116 AD Set M Description Set M Counter value when pre trigger or middle trigger mode is selected Syntax C C DOS int 9116 AD Set M 116 card number U32 counter valu
16. 10 of the A D trigger mode register BASE 34 After the software initializes the A D conversion the software polls the FIFO Empty status bit4 in the A D amp FIFO Status register BASE 28 until it changes to active low logic If the Data FIFO is empty before an A D conversion starts the Empty bit will be high After the A D conversion is completed the A D data is written to the Data FIFO immediately thus the Empty becomes low You can consider the Empty bit as a flag to indicate the converted data ready status That is a low Empty bit meaning the data is ready The A D data is now ready to be transferred to host memory from the FIFO This method is suitable for applications that needs to process AD data in real time Under this mode the timing of the A D conversion is fully controlled by the software However it is difficult to control a fixed A D conversion rate unless another timer interrupt service routine is used to generate a fixed conversion rate trigger ADLINK s software driver provides an integral function to acquire a single data That is it will start an A D conversion then poll the Empty flag and read the data back when the data is ready We also provide individual functions to allow users to start an A D conversion only Users must read it back from the A D data register BASE 24 by themselves This method makes it possible to read A D converted data without polling The conversion and acquisition time of the ADC does
17. 116 card starts to acquire data The total acquired data length DIV_counter SC_counter DIV_Counter 4 SC_Counter 3 ExtTrg i I Scan_start I I AD_conversion II IN IN Scan_in_progress E SSH_OUT Acquisition_in_progress __ e L lt gt lt gt Delay until E Delay_Counter reaches 0 Operation start Acquired 8 stored data 3 scans Figure 17 Delay trigger Note When the Delay_counter clock source is set to Timebase the maximum delay time 218 24M s 2 73ms and when the source is set to A D sampling clock the maximum delay time SCH GI counter 24M Operation Theory e 45 Post Trigger or Delay trigger Acguisition with re trigger Use post trigger or delay trigger acquisition with re trigger function in applications where you want to collect data after several external trigger events The number of scans after each trigger is specified in SC counter and users could program Retrig no to specify the number of re triggers Fig 18 illustrates an example In this example 2 scans of data is acquired after the first trigger signal then the board waits for the re trigger signal re trigger signals which occur before the first 2 scans of data is acquired will be ignored When the re trigger signal occurs the board scans 2 more scans of data The process repeats until the specified amount of re trigger signals are detected The
18. 4 e C Library 6 3 2 9116 AD Clr DFIFO Description This function is used to clear the A D Data FIFO Syntax C C DOS int 9116 AD _Clr_DFIFO 116 card number Argument card number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Return Code ERR NOError ERR BoardNolnit C Library e 55 6 4 DIO functions 6 4 1 9116 DI Description This function is used to read data from the digital input port There are 8 digital input channels on the cPCI 9116 All 8 channels can be accessed using this function Syntax C C DOS int 9116 DI 116 card number unsigned int far data Argument card_number the card number of the cPCI 91 16 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 data 8 bit data read from the digital input port Return Code ERR_NoError ERR_BoardNolnit 6 4 2 _9116 DO Description This function is used to write data to the digital output port There are 8 output channels on the cPCI 9116 Syntax C C DOS int 9116 DO 116 card number unsigned int data Argument card_number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD_2 CARD_ 3 CARD_4 data data written to the output port Return Code ERR_NoError ERR_BoardNolnit 56 e C Libr
19. Analog Input A D Converter LT 1606 or equivalent 250KHz Number of channels programmable v 64 single ended SE v 32 differential input DI v Mixing of SE and DI analog signal between channel allowed A D Data FIFO Buffer Size 1024 locations Channel Gain Queue Length 512 words configurations Resolution 16 bit Input Range Controlled by Channel Gain Queue Bipolar 5V 2 5V 1 25V 0 625V Y Unipolar 0 10V 0 5V 0 2 5V 0 1 25 CMRR DC to 60 Hz typical Input Range 5 0 10V 2 5 0 5V 1 25 0 2 5V 0 625 0 1 25V Overvoltage Protection Continuous 35V maximum Accuracy 0 01 of FSR Input Impedance 100 MO 6pF Time base source v Internal 24MHz v External clock Input fmax 24MHz fmin 1MHz Programmable scan interval and sampling rate divided from time base source Introduction e 3 e Trigger Mode Y e I E SS amp Y Software trigger Pre trigger Post trigger Middle Trigger Delay Trigger ata Transfer Polling EOC interrupt transfer FIFO half full Interrupt transfer Bus mastering DMA e Data Throughput 250KHz maximum Digital I O DIO e Channel 8 TTL compatible digital inputs and outputs e Input Voltage N N Low VIL 0 8 V max IIL 0 2mA max High VIH 2 0V max IIH 0 02mA max e Output Voltage Y Y General Low VOL 0 5 V max IOL 8mA max High VOH 2 7V min IOH 400nA Purpose Timer Counte
20. BoardNolnit 74 e C Library 6 11 AD continuous scan data acquisition with double buffered DMA transfer functions These functions are used to perform continuous scan data acquisition with double buffered DMA data transfer It takes place in the background and will not stop until the execution of 9116 AD DMA Stop function to stop the process Note these functions do not apply to pre trigger and middle trigger mode Refer to the sample program AD_DEMO10 C 6 11 1 9116 DblBufferMode Description This function is used to enable the double buffered mode If double buffered mode is set function 9116 AD DMA Start will perform continuous scan data acquisition Otherwise function 9116 AD DMA Start only performs one shot scan data acquisition Syntax C C DOS int 9116 DblBufferModel l16 card number U8 enable Argument card number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Enable enable disable double buffered mode DMA 0 disabled 1 enabled Return Code ERR_NoError ERR_BoardNolnit C Library e 75 6 11 2 9116 DblBufferTransfer Description Using this function to copy the converted A D data from the circular to transfer buffer Syntax C C DOS int 9116 DblBufferTransfer l16 card number U32 far user butter Argument card number the card number of the cPCI 9116 to be initialized to
21. CPCI 9116 cPCI 9116R 64 Ch 16 bit 250KS s Analog input Card For 3U CompactPCI User s Guide Recycled Paper Copyright 2002 ADLINK Technology Inc All Rights Reserved Manual Rev 1 10 April 28 2003 Part No 50 15002 101 The information in this document is subject to change without prior notice in order to improve reliability design and function and does not represent a commitment on the part of the manufacturer In no event will the manufacturer be liable for direct indirect special incidental or consequential 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 NulPC are registered trademarks of ADLINK Technology Inc Other products names mentioned herein are used for identification purposes only and may be trademarks and or registered trademarks of their respective companies Getting service from ADLINK Customer Satisfaction is the most important priority for ADLINK Tech Inc If you need any help or service please contact us 9F No 166 Jian Yi Road Chungho City Taipei 235 Taiwan Please email or FAX us of your detailed information for a prompt satisfacto
22. Calibration 1 Calibrate the PGA offset as described in 7 2 3 1 2 Connect A D channel 0 pin 2 of J1 to ground pin 51 of J1 and Applied a precise 5V to A D channel 1 pin 3 of J1 3 Trim VR2 to obtain the reading of A D channel 0 flicks between 0 to 1 and Trim VR3 to obtain reading of A D channel 1 flicks between 32766 32767 7 2 3 3 Unipolar input Calibration 1 Calibrate the PGA offset as described in 7 2 3 1 2 Applied a precise 5 V input signal to A D channel 1 pin 3 of J1 3 Trim VR to obtain reading flicking between 0 1 7 3 Functional Testing This function is used to test the functions of the 9116 series card it includes Digital I O testing A D polling test A D Interrupt Test A D with DMA test A D with DMA amp pre trigger test A D with DMA amp mn trigger test A D with DMA amp post trigger test A D with DMA amp delay trigger with re trigger 3 test and A D with continuous DMA test Double buffer mode When you choose one of the testing functions from the function menu a diagram is displayed on the screen The figure below is the function testing menu window Software Utility amp Calibration e 85 CPCI 9116 Function Testing DI DO Test lt 1 gt A D with Polling Test chO 31 lt 2 gt A D with Polling Test ch32 63 lt 3 gt A D with Interrupt Test lt 4 gt A D with DMA Test lt 5 gt A D with DMA A pre trigger lt 6 gt A D with DMA 8 mn trigger lt 7 gt
23. D 2 CARD_3 CARD_4 ch the channel which is being set valid values are between 0 to 63 for single ended configuration and 0 to 31 for differential mode configuration range the A D input range possible values are listed in column AD_INPUT of the following table 58 e C Library Input type HY Ta eera AD B 0 625 V 8 0 AD_U_1_25_ 0V 1 25V Diff differential single ended input selection SINGLE_ENDED or 0 single ended DIFFERENTIAL or 1 differential cmmd_sel common mode reference selection when single ended mode is selected 0 input signals are referenced to system ground 1 input signals are referenced to U CMMD pin1 of J1 Return Code ERR_NoError ERR InvalidADChannel ERR BoardNolnit ERR_InvalidADGain C Library e 59 6 5 3 9116 AD CFIFO SetDone Description This function is used to stop setting A D channel gain queue Syntax C C DOS int 9116 AD CFIFO SetDone I16 card number Argument card number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD 1 CARD 2 CARD 3 CARD 4 Return Code ERR NOError ERR BoardNolnit 60 e C Library 6 6 AD Software Polling functions 6 6 1 9116 AD Acduire Description This function is used to poll the A D converted data It will trigger an A D conversion and read the A D data when the data is ready To perform a software polling data acquisition us
24. ESE SEGE Ee it 66 6 8 6 9116 AD Set M R la RR KEES Ee bek ee BEE ae ek Biv Ge Ge AD 67 6 8 7 9116 AD Set Hei 68 ii e Table of Contents 6 9 AD one shot scan data acquisition with DMA transfer functions 69 6 9 1 9116 AD DMA Giart ees 69 6 9 2 9116 AD DMA Status ee Re Re ke ee KARA 70 6 9 3 9116 AD DMA Gron iese see ee ee ee Re Re Re ee KARAR 71 6 10 AD one shot scan data acquisition with interrupt transfer functions 72 6 10 1 9116 AD INT Start eise eke ee AR Re ee Re ae 72 6 10 2 9116 AD INT Gtatus iese esse see Re Re Re ee Re ee 73 EI 9116 AD INT SOP a bay cia lwara toate taa 74 6 11 AD continuous scan data acquisition with double buffered DMA transfer functiONS E ee RA RR AA Re ka RA ee SERA RE RRA ee ee 75 6 11 1 9116 DblGufterMode iii Re 75 6 11 2 9116 DblBufferlransfer iis Re ee ee Re ee ee 76 6 11 3 9116 GetOverrunStatuS esse Re Re Re Re 77 6 12 General Purpose Timer Counter functiOnS iese ee RA 77 6 12 1 9116 GPO Set Mode AAA 77 6 122 9116 GPO Set Count si si c i d lia yin slav l na s kata 78 6 12 3 9116 GO Set GK eur OES EIE GEE nn grunar 78 6 124 _9116 GPO0_ Set GATE GC 79 6 12 5 9116 GPO Set UPDOWN GC 79 6 12 6 9116 GPO0 Set UPDOWN seek ke Re kene Re an 80 6 12 7 9116 GPO EN Ee SS Ese Ge EER GR ESE ed se sna GE ee ln d ayan 80 6 12 8 9116 GPO Read COUNE ee Re Re RA ER 81 Chapter 7 Software Utility 8 Calibration
25. For more information about DAQBench please refer to the user s guide in the CD Manual_PDF Software DAQBench DAQBench Manual PDP Introduction e 7 Installation This chapter describes how to install the 9116 series cards The contents of the package and unpacking information that you should be aware of are described first The 9116 series cards perform an automatic configuration of the IRO port address and BIOS address You do not need to set these configurations as you would do in ISA form factor DAS cards Automatic configuration allows your system to operate more reliable and safe 2 1 What You Have In addition to this User s Guide the package should also include the following items e CPCI 9116 or cPCI 9116R with rear VO adaptor Analog input Data Acquisition Card e ADLINK All in one Compact Disc e Software Installation Guide If any of these items are 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 8 e Installation 2 2 Unpacking The card contains electro static sensitive components that can be easily be damaged by static electricity Therefore the card should be handled on a grounded anti static mat The operator should be wearing an anti static wristband grounded at the same point as the anti static mat Inspect the card module carton for obvious damages Shipping and handling
26. M scans of data is converted The M enable bit in middle trigger mode takes the same effect as in pre trigger mode If M enable is set to 1 the tigger signal will be ignored until the first M scans of data are converted this assures user of obtaining M N scans of data under middle trigger mode However if M_enable is set to 0 the trigger signal will be accepted at any time Fig 14 shows the acquisition timing with M_enable 1 42 e Operation Theory M_Counter M 3 DIV Counter 4 SC Counter N 1 The first M scans gt Trigger signals which occur in the shadow region the first M scans will be ignored ExtTrg pin46 i 1 Scan_start I i I AD_conversion TI ii ni MT III II Scan in progress SSH OUT pind7 Acauisition in progress Aquired data lt gt lt gt M scans before N scans trigger after trigger Operation start Acquired amp stored data M N scans Figure 14 Middle trigger with M_enable 1 If an external trigger event occurs when a scan is in progress the stored N scans of data would include this scan And the first stored data will always be the first channel entry of a scan as illustrated in Fig 15 Operation Theory e 43 M_Counter M 2 DIV Counters4 SC_Counter N 2 Trigger occurs when a scan is in progress ExtTrg pind6 Scan start AD conversion l N II III Hii j li I Scan_in_progress
27. Re triggerable 0 trigger only once Delay time unit in delay trigger mode 1 delay in sampling rate S12 0 delay in Timebase TimeBase bit5 The Timebase Selection of 9116 series 1 External Timebase 0 Internal Timebase 24 MHz TrgP bit4 The Trigger polarity selection bit 1 Negative Edge Trigger 0 Positive Edge Trigger MODE2 O bit3 bit1 Trigger Mode Selection Bits MODE MODE MODEO Description Fo o o _ Software Trigger ooi Post Trigger o TET Delay Trigger pot pre Tigger Po Medle Tigger Table 15 Trigger Mode Selection Bits 4 11 Interrupt Control Register Address BASE 0x38 Attribute write Data Format Bt Ezre EEE ED E EN E ER Ern LIT Ci Timer C r_STTC or Hur Bit 15 14 13 12 o 8 Timer_en STTC_en Hfull_en DTg en EOC_en Bit 23 22 21 20 19 18 L 16 Seah HEDAR HENE EE Bit 31 so 29 23 27 26 Ec MEA E i Table 16 Interrupt Control Register Timer en bit12 General Purpose Timer Interrupt Enable Control 1 Enable 0 Disable Registers e 31 SCTC_en bit 1 Hfull en bit10 DTrg en bit9 EOC en bit8 Clr Timer bit4 Clr_SCTC bit3 Clr_HFull bit2 Clr_DTrg bit1 Clr_EOC bit0 32 e Registers Trigger Complete Interrupt Enable Control 1 Enable 0 Disable A D FIFO Half Full Interrupt Enable Control 1 Enable 0 Disable External Digital T
28. The total acquired data length DIV_counter SC_counter Pre Trigger Acquisition Use pre trigger acquisition in applications where you want to collect data before an external trigger event The A D starts when you execute the specified function calls to begin the operation and it stops when the external trigger event occurs Users must program the value M in the M_counter 16bit to specify the amount of stored scans of data before the trigger event If the external trigger occurs after M scans of data are converted the program only stores the last M scans of data as illustrated in fig 10 where M_counter M 3 DIV counter 4 SC counter 0 The total stored amount of data DIV counter M_counter 12 Operation Theory e 39 IM counter M 3 DIV counter 4 SC counter 0 ExtTrg pin46 f Scan_start I I I I AD_conversion TITI ji ji li l mm IHR UU Scan in progress SSH OUT pind47 Acauisition in progress Aquired data Acquired amp stored data M scans Operation start Figure 10 Pre trigger trigger occurs after M scans Note If an external trigger event occurs when a scan is in progress the data acquisition won t stop until this scan completes and the stored M scans of data include the last scan Therefore the first stored data will always be the first channel entry of a scan that is the first channel entry in the Channel G
29. a trigger only used in pre trigger and middle trigger modes Registers e 21 4 3 General Purpose Timer Counter Register One 16 bit general purpose timer counter exists in the 9116 series card Writing to this register loads the initial count value into the general purpose timer counter Reading from this register feedbacks the current count value of the general purpose timer counter Address BASE 0x18 Attribute write read Data Format eS EE EIE SIE T Ger ars ars ara ara ar2 arr aro Ten 15 a 13 12 Lw js js Tepis GP 4 farra Gp 2 Gp 1 GP10 aro ape Bit 23 22 21 20 19 18 17 16 KERE ENE HERE EIE AE GE Bit 31 3 29 28 27 26 25 za Es si sak AA EI Table 4 General Purpose Timer Counter Register 44 General Purpose Timer Counter Control Register Address BASE 0x20 Attribute write only Data Format en Se Ere ee el EE EIE Ee Table 5 General Purpose Timer Counter Control Register 22 e Registers Counter en bit7 GPTCO count enable 1 enable GPTCO 0 disable GPTCO UpDown bit6 GPTCO s up down pin software control 1 Up counter 0 Down counter UpDown src bit5 GPTCO s up down pin selection bit 1 External input Pin 98 0 Software Control Gate src bit4 GPTC0 s gate source 1 External Input Pin 97 0 gate controlled by setting the enable bit7 Clk_src bit3 GPTCO s clock source 1 External Input Pin 96 0 Internal Ti
30. ain Queue if the number of entries in the Channel Gain Queue is equivalent to the value of DIV counter no matter when the trigger signal occurs as illustrated in Fig 11 where M counter M s3 DIV counter 4 SC counter 0 IM counter M 3 DIV counter 4 SC_counter 0 ExtTrg pin46 K Trigger occurs Scan_start 4 Data acquisition AD_conversion TI TN nal HUN won t stop until a scan completes Scan_in_progress SSH_OUT pin47 Acquisition_in_progress L lt gt x gt Aquired data Acquired 8 stored data M scans Operation start Figure 11 Pre trigger trigger with scan is in progress 40 e Operation Theory When an external trigger signal occurs before the first M scans of data are converted the amount of stored data could be fewer than the originally specified amount of DIV counter M counter as illustrated in fig 12 This situation can be avoided by setting M enable If M enable is set to 1 the trigger signal will be ignored until the first M scans of data are converted and it assures user of obtaining M scans of data under pre trigger mode as illustrated in fig 13 However if M enable is set to 0 the trigger signal will be accepted in any time as illustrated in fig 12 Note that the total amount of stored data is still always a multiple of DIV_counter number of samples per scan because the data acquisition won t stop unti
31. ary 6 5 AD Channel Gain Queue configuration functions 6 5 1 9116 AD Clr_CFIFO Description This function is used to reset the A D Channel Gain Queue Refer to 5 1 2 1 for definition of Channel Gain Queue Before calling the 9116 AD Set CFIFO function to set the A D channel and input range this function must be call to clear the A D Channel Gain Queue Syntax C C DOS int 9116 AD Cl CFIFO 116 card number Argument card number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Return Code ERR NOError ERR BoardNolnit C Library e 57 6 5 2 9116 AD Set CHIFO Description This function is used to specify the A D channel and the input range Note 9116 AD Clr CFIFO should be called before you use this function to set the channels and gains in the Channel Gain Queue After the settings are completed you have to call 9116 AD CFIFO SetDone to stop filling out the Channel Gain Queue The sequence to call these three functions is 9116 AD Clr _CFIFO _9116_AD_Set_CFIFO Setting A D channels and gains 9116 AD Set CFIFO 9116 AD CFIFO SetDone Syntax C C DOS int 9116 AD Set_CFIFO 116 card number 116 ch 116 range U16 diff U16 cmmd_ sel Argument card_number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CAR
32. ations developed with PCIS DASK are compatible across Windows 98 Windows NT and Windows 2000 The developing environment can be VB VC Delphi BC5 or any Windows programming language that allows calls to a DLL The user s guide and function reference manual of PCIS DASK are in the CD Please refer the PDF manual files under Manual_ PDF Software PCIS DASK e PCIS DASK X Includes device drivers and shared library for Linux The developing environment can be Gnu C C or any programming language that allows linking to a shared library The users guide and function reference manual of PCIS DASK X are in the CD Manual_PDF Software PCIS DASK X The above software drivers are shipped with the board Please refer to the Software Installation Guide for installation procedures 1 4 2 PCIS LVIEW LabVIEW Driver PCIS LVIEW contains the Vis which are used to interface with Ns LabVIEW software package The PCIS LVIEW supports Windows 95 98 NT 2000 The LabVIEW drivers is shipped free with the board You can install and use them without a license For more information about PCIS LVIEW please refer to the users guide in the CD Manual_PDF Software PCIS LVIEW 6 e Introduction 14 3 DAQBench ActiveX Controls We suggest customers who are familiar with ActiveX controls and VB VC programming use the DAQBenchTM ActiveX Control component library for developing applications The DAQBenchTM is designed under Windows NT 98
33. ctPCI cards software driver are using full names to represent the functions real meaning The naming convention rules are In DOS Environment _ hardware_model action _name e g _9116_initial 6 2 2 Data Types We defined some data type in 9116 h DOS These data types are used by NuDAQ Cards library We suggest that you use these data types in your application programs The following table shows the data type names and their range U32 32 bit single precision 0 to 4294967295 floating point F32 32 bit single precision 3 402823E38 to floating point 3 402823E38 F64 64 bit double precision 1 797683134862315E308 to floating point 1 797683134862315E 309 Boolean logic value TRUE FALSE 52 e C Library 6 2 3 Sample Programs List DOS You can get sample programs once cPCI 9116 dos driver is installed The following is the list of the files and it s description AD DEMOO Software polling with single ended input AD DEMO 1 Software polling with differential input AD DEMO 2 Scan data acquisition with software trigger and EOC interrupt transfer AD DEMOS Scan data acquisition with software trigger and Half Full interrupt transfer AD DEMO4 Scan data acquisition with software trigger and DMA transfer AD DEMOS Scan data acquisition with pre trigger M_enable 1 and DMA transfer AD DEMOG Scan data acquisition with pre trigger M_enable 0 and DMA transfer AD_DEMO8 Scan data acquisition with post tri
34. d input configurations single end differential and U CMMD must also be specified in the hardware Channel Gain Queue under scan acquisition mode Please refer to 5 1 2 1 for details Note that in scan acquisition mode the number of entries in the Channel Gain Queue is normally equivalent to the value of DIV_counter that is the numbers of samples per scan Example Set SI2_counter 240 SI counter 960 SC_counter 3 DIV_counter 4 Timebase Internal clock source Channel entries in the Channel Gain Queue ch1 ch2 ch0 ch2 38 e Operation Theory Then Acquisition sequence of channels 1 2 0 2 1 2 0 2 1 2 0 2 Sampling Interval 240 24M s 10 us Scan Interval 960 24M s 40 us Equivalent sampling rate of cht ch1 25kHz Equivalent sampling rate of ch2 50kHz 5 1 3 3 Trigger Modes There are 5 trigger modes software trigger pre trigger post trigger middle trigger and delay trigger to start the data acquisition described in 5 3 1 1 All but software trigger are external digital triggers An external digital trigger event occurs when a rising edge or a falling edge software programmable of a digital signal is detected on pin 46 of J1 They are described as follows Software Trigger Acquisition This trigger mode does not need any external trigger source The data acquisition starts right after you execute the specified function calls to begin the operation The scan timing is the same as fig 9
35. dican ta 50 CPCI 9116 Utility Main Green 83 A D Adjustment menu Screen iese ee ee 84 CPCI 9116 Function Testing Screen 86 Figures e v Outline of Chapters This manual is designed to help you use the 9116 series The manual describes how to modify various settings on the card to meet your requirements It is divided into seven chapters Chapter1 Introduction gives an overview of the product features applications and specifications Chapter 2 Installation describes how to install the 9116 series The layout of 9116 series is shown Chapter 3 Signal Connection describes the connectors pin assignment and how to connect external signal and devices to the 9116 series card Chapter 4 Registers describes the details of the registers and ts structure This information is important for programmers who want to control the hardware with low level programming Chapter 5 Operation theory describes the working theory of the 9116 series card The A D DIO and timer counter functions are introduced Also some programming concepts are specified Chapter 6 Software Utility amp Calibration describes how to run the utility program included in the software CD and how to calibrate the 9116 series card for accurate measurements vi e Outline of Chapters Introduction The cPCI 9116 series products are advanced data acquisition cards based on the 32 bi
36. e Argument card number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Counter value the M Counter value Range 1 through to 65535 Return Code ERR NOError ERR BoardNolnit C Library e 67 6 8 7 9116 AD Set Retrig Description Set the number of re trigger counts when post trigger or delay trigger mode is selected Syntax C C DOS int 9116 AD Set Retrig 116 card number 116 retrig_en U16 retrig no Argument card number the card number of cPCI 9116 to be initialized totally 4 cards can be initialized the valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 retrig en Enable disable re trigger mode acquisition when post trigger or delay trigger mode is selected 0 disable re trigger 1 enable re trigger retrig_no Number of re trigger counts Range 1 through to 65535 Return Code ERR_NoError ERR_BoardNolnit 68 e C Library 6 9 AD one shot scan data acquisition with DMA transfer functions These functions are used to start scan data acquisition with DMA transfer according to the selected trigger mode and conditions 6 9 1 9116 AD DMA Start Description This function will perform programmable scan data acquisition with DMA data transfer using the pacer trigger It takes place in the background and will not stop until the completion of all conversions or the execution of 9116 AD DMA St
37. ernal Timebase Clock Input ExtTrg External Digital Trigger Signal SSH_OUT SSH Output Signal GP_TC_CLK General Purpose Timer Counter Clock Input GP_TC_GATE General Purpose Timer Counter Gate Input GP_TC_UPDN Purpose Timer Counter Up Down Control Input 0 down 1 up GP_TC_OUT General Purpose Timer Counter Output 5V OUT 5V Output 15V OUT 15V Output 15V OUT 15V Output AGND Analog Ground DGND Digital Ground N C No Connection Table 1 Legend of J1 Connector Signal Connections e 15 3 2 Analog Input Signal Connection The 9116 series provides up to 64 single ended or 32 differential analog input channels You can set and fill the Channel Gain Queue to get the desired combination of the input signal types The analog signals can be converted to digital value by the A D converter To avoid ground loops and to obtain accurate measurements from the A D conversion it is quite important to understand the signal source type and how to choose the analog input modes Single ended Differential or User Common Mode 3 2 1 Types of signal sources Floating Signal Sources A floating signal source means it is not connected in any way to the buildings ground system A device with an isolated output is a floating signal source such as optical isolator outputs transformer outputs and thermocouples Ground Referenced Signal Sources A ground refe
38. ers must set the Channel Gain Queue using functions in 6 5 and then performing this function will retrieve the data in the order the Channel Gain Queue has been set Refer to the sample program AD DEMOO C Syntax C C DOS int 9116 AD Acduire 116 card number U16 far ad data Argument card number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 ad data 16 bit A D converted values in binary code format Return Code ERR NOError ERR BoardNolnit C Library e 61 6 7 AD Trigger control functions 6 7 1 9116 AD Trig Ctrl 9116 AD Set TrigMode 9116 AD Set TrigPol 9116 AD Set Timebase 9116 AD Set Delay SRC 9116 AD Set M enable Description These functions are used to set the AD trigger controls The 9116 AD Trig Cirl function provides settings for all trigger parameters while the other functions provide individual settings for each trigger parameter Syntax C C DOS int 9116 AD Trig_Ctrl 116 card number 116 trig_src 116 trig mode 116 trig pol 116 timebase sel 116 delay_src 116 retrig en 116 M enable 116 ACO enable int 9116 AD Set TrigMode 116 card number 116 trig mode int 9116 AD _Set_TrigPol 116 card number 116 trig pol int 9116 AD Set Timebase 116 card number 116 timebase sel int 9116 AD Set Delay SRC 116 card number 116 delay_src int 9116 AD Set M enable 116 card number 116 M enab
39. f double word length 72 e C Library Mode EOC or Half full interrupt transfer mode selection 0 EOC interrupt transfer mode 1 Half full interrupt transfer mode Return Code ERR_NoError ERR_BoardNolnit ERR InvalidADChannel ERR_InvalidTimerValue ERR_AD_InvalidGain 6 10 2 _9116_AD_INT_Status Description Since the 9116 AD INT Start function runs in the background this function can be used to check its operation status Syntax C C DOS int 116 9116 AD_INT_Status 116 card number 116 status U32 count Argument card_number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Status status of the DMA data transfer AD INT STOP or 0 Interrupt transfer is completed AD INT RUN or 1 Interrupt transfer is not completed Count the number of A D data that has been transferred Return Code ERR NOError ERR AD DMANotSet ERR BoardNolnit C Library e 73 6 10 3 9116 AD INT Stop Description This function is used to stop the interrupt data being transferred Syntax C C DOS int 9116 AD_INT_Stop 116 card number U32 count Argument card_number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Count the number of A D converted data that has been transferred Return Code ERR NOError ERR
40. ger mode and conditions Note that these functions cannot be applied to pre trigger and middle trigger mode 6 10 1 9116 AD INT Start Description This function will perform programmable scan data acquisition with interrupt transfer by using the pacer trigger It takes place in the background and will not stop until the completion of all the conversions or the execution of 9116 AD INT Stop function to stop the process The data acquired will be in the order of the Channel Gain Queue setting After executing this function it is necessary to check the status of the operation by using the function 9116 AD INT Status and execute 9116 AD INT Stop after you obtain the AD_INT_STOP status from _9116_AD_INT_Status Syntax C C DOS int 9116 AD_INT_Start 116 card number U32 SI_ value U32 SI2_value U32 SC value U32 DIV value U16 ad_buffer U16 mode Argument card number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD_2 CARD_3 CARD_4 SI value Set SI_Counter value Range 96 through to 16777215 SD value Set SI2_Counter value Range 96 through to 65535 SC value Set SC Counter value Range 1 through to 16777215 DIV value Set DIV Counter value Range 1 through to 65535 ad buffer the start address of the memory buffer to store the A D data the buffer size must be larger then the numbers of A D conversion The memory should be o
41. gger and DMA transfer AD DEMOS Scan data acquisition with delay trigger re trigger and DMA transfer AD DEMO10 Continuous scan data acquisition with double buffered mode DMA transfer DIO_DEMO GP DEMOO General purpose timer counter mode0 operation GP_DEMO1 General purpose timer counter mode1 operation AD_DEMO7 Scan data acquisition with middle trigger M_enable 1 and DMA transfer C Library e 53 6 3 Initial functions 6 3 1 9116 Initial Description This function is used to initialize the cPCI 9116 Each cPCI 9116 card must be initialized with this function before calling other functions is permitted Syntax C C DOS int 9116 Initial 116 card number U16 op_base_address U16 pt_base_address U16 irq_no U16 pci master Argument card_number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD_3 CARD_4 op_base_address the physical location of the S5933 PCI controller operation Registers in VO space pt_base_address the physical location of add on registers in pass through I O space The base address used in CH4 irq_no the interrupt IRQ level of your cPCI 9116 card this available IRQ value is automatically assigned by the system BIOS pci_master BIOS enables or disables bus mastering in PCI Command Register Return Code ERR_NoError ERR_PCIBiosNotExist ERR_PCICardNotExist ERR_PCIIrqNotExist 5
42. gital VO Connection ksa ee ee RA lala ee RA ee talv 18 Chapter 4 Redisters ss oa dn sil ner skin di 19 4 1 VO Port AddieSS is ER N EE EE ee Ee ERGER GEE ER EE EE 19 4 2 Internal Timer Counter Register esse see ee Re ee Re ee ee 21 4 3 General Purpose Timer Counter Register sesse ese ke ee 22 44 General Purpose Timer Counter Control Register 22 45 AD Data Registers ar er sis las yaka Sido an EE VER RGN da ka wen oe ar da dak 24 4 6 Channel Gain Queue Heite 24 4 7 A D amp FIFO Control Register A 26 48 A D amp FIFO Status Register iese ese ke ee ke ee ee Re ee ee 27 4 9 Digital VO register see ee ee ee Re ee Warna ee lala kka ee 29 4 10 A D Trigger Mode Register AAA 30 4 11 Interrupt Control Register ese ke ke Re ke ee ee cnn 31 4 12 Interrupt Status Register esse ee ee ee ke kk kk ee ee 33 Table of Contents e i Chapter 5 Operation Theory aaaaaaaaaaaan an nannnnnnnnnnunununununnnnnnnnnnunnnnnnn 34 51 A D CGoflV r SIOR Es GE RE KERE ba Ee ee EE EE Es ee sus ee EE ee ae 34 5 1 1 A D Conversion Procedure ee ee ee ee 34 5 1 2 Software conversion with polling data transfer acquisition mode Software Polling iii Re Re Re ee 35 5 1 3 Programmable scan acquisition moqe 36 5 1 4 A D Data Transfer Modes AA 47 5 2 Digital Input and Output 48 5 3 General Purpose Timer Counter Operation o oooincccinnicinnccincnnccccnnn
43. he connector is illustrated in the Figure 3 1 With the REAR VO adaptor specifically designed for the cPCI 9116R the cPCI 9116R connector pin assignments are identical to that of the cPCI 9116 The red LED positioned on the front panel is used as a power indicator Signal Connections e 13 3 1 1 100 pin SCSI type connector J1 U_CMMD AIHO Alo AlH1 All AIH2 Al2 AIH3 Al3 AIH4 Al4 AIH5 AIS AIH6 Al6 AIH7 Al7 AIH8 Al8 AIH9 AI9 AIH10 Alo AlH11 Al11 AIH12 Al12 AIH13 Al13 AIH14 Al14 AIH15 ANS AIH16 Al16 AIH17 Al17 AIH18 A18 AIH19 Al19 AIH20 Al20 AIH21 Al21 AIH22 Al22 AIH23 Al23 AIH24 Al24 AIH25 Al25 AIH26 Al26 AIH27 Al27 AIH28 Al28 AIH29 Al29 AIH30 AI30 AIH31 Al31 AGND 15V out N C DIO DI DIS DI3 DI4 DI5 DI6 DI7 ExtTimeBase ExtTrg SSH_OUT GP_TC_OUT 5V Out DGND Figure 3 14 e Signal Connections N 9 OI EF GO N C GP_TC_CLK GP_TC_GATE GP_TC_UPDN 5V out DGND J1 Pin Assignments KKK KKK ECKE KK KKK ECKE KEE ECKER L oe E Geh od ell oe Ga od 0 JO om bk Go O o TETE N N AO L22 L23 L24 L25 L26 L27 L28 L29 L30 L31 3 1 2 Legend of J1 Signal Name Definition U CMMD User Common Mode Aln Analog Input Channel n single ended AlHn Analog High Input Channel n differential AlLn Analog Low Input Channel n differential Din Digital Input Signal Channel n DOn Digital Output Signal Channel n ExtTimeBase Ext
44. heory The operation theory of the functions on the 9116 series is described in this chapter The functions include the A D conversion Digital VO and General Purpose Counter Timer The operation theory can help you better understand how to configure and program the 9116 series card 5 1 A D Conversion 5 1 1 A D Conversion Procedure When using an A D converter users should beware of the properties of the signal to be measured Users can decide which channel to use and where to connect the signals to the card Please refer to 3 2 for signal connections In addition users should define and control the A D signal configurations including channels gains and A D signal types The A D acquisition is initiated by a trigger source users must decide how to trigger the A D conversion The data acquisition will start when a trigger condition is met After the end of the A D conversion the A D data is buffered in a Data FIFO The A D data is then transferred into PC s memory for further processing There are two acquisition modes Software Polling and Scan acquisition They will be described separately in the following section including the timing signal source control trigger mode and transfer method 34 e Operation Theory 5 1 2 Software conversion with polling data transfer acquisition mode Software Polling This is the easiest way to acquire a single A D data The A D converter starts a conversion when the user writes 1 into bit
45. ion 1 mode1 operation C Library e 77 Return Code ERR NOError ERR BoardNolnit 6 12 2 9116 GPO Set Count Description This function is used to set the initial count value of GPTC Syntax C C DOS int 9116 GPO Set Count 116 card number U16 GP value Argument card number the card number of cPCI 9116 to be initialized totally 4 cards can be initialized the valid card numbers are CARD 1 CARD 2 CARD 38 CARD 4 GP value 16 bit count initial value Return Code ERR NOError ERR BoardNolnit 6 12 3 9116 GPO Set CLK Description This function is used to select the clock source of GPTC Syntax C C DOS int 9116 GPO Set CLK 116 card nmber U8 clk_src Argument card number the card number of cPCI 9116 to be initialized totally 4 cards can be initialized the valid card numbers are CARD 1 CARD 2 CARD 3 CARD 4 Clk erc 0 internal clock source 24MHz timebase 1 external clock source from pin96 of J1 Return Code ERR NOError ERR BoardNolnit 78 e C Library 6 12 4 9116 GPO Set GATE SRC Description This function is used to select the gate source of GPTC When internal gate source is selected you can use function 9116 GPO EN to enable disable the counting Syntax C C DOS int 9116 GPO _Set_GATE_SRC 116 card number U8 gate_src Argument card_number the card number of cPCI 9116 to be initialized totally 4 cards can be initialized the valid card
46. ister esse ee ke Re Re ee ee 33 Functions A a EE EE lar 84 Figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 Figure 16 Figure 17 Figure 18 Figure 19 Figure 20 Figure 21 Figure 22 Figure 23 Figure 24 PCB Layout of the CPCI 9116 ee ae Re RR ee 10 PCB Layout of cPCI 9116R and Rear VO adaptor 11 Rn e ul E EE 14 Single ended Mode and Floating sources 16 Ground referenced source and differential input 17 Floating source and differential Imput 17 Ground referenced source and User Common Mode eelere TEE 18 Digital VO ConnectON ees ee Re RA Re Re Re 18 Scan TM EE EA OK EO VVERIN 37 Pre trigger trigger occurs after M scans 40 Pre trigger trigger with scan is in progress 40 Pre trigger with M enable 0 trigger occurs before M Se EO EER ER EE 41 Pre trigger with M_enable 1 42 Middle trigger with M enable 1 EEEE 43 Middle trigger trigger with scan is in progress 44 le diie e AE ER OE 44 BEA ARE OE NA ER EE EE EE 45 Post trigger with re trigger ees ee ee ee ee ee 46 General purpose Timer Counter model 49 Mode 0 Operations cctv verti any enh eee ee ed ed e 50 Mode1 OperatiOf zz ra
47. l a scan is completed M_Counter M 3 DIV_Counter 4 SC_Counter 0 ExtTrg pin46 I Scan_start AD_ conversion jj Tl Scan_in_progress SSH_OUT pin47 Acquisition_in_progress ER Acquired amp stored data 2 scans Operation start Figure 12 Pre trigger with M_enable 0 trigger occurs before M scans Operation Theory e 41 IM counter M 3 DIV counter 4 SC counter 0 The first M scans gt Trigger signals which occur in the shadow region the first M scans will be ignored ExtTrg pin46 I I Scan_start I I AD_conversion l NM III m MI MUN Scan in progress SSH OUT pin47 Acauisition in progress __ Aquired data Acquired amp stored data j M scans Operation start Figure 13 Pre trigger with M_enable 1 Note The SC counter must be set to 0 in pre trigger acquisition mode Middle Trigger Acquisition Use middle trigger acquisition in applications where you want to collect data before and after an external trigger event The number of scans stored before the trigger is specified in M_ counter while the number of scans after the trigger is specified in GC counter Like pre trigger mode the number of stored data can be less than the specified amount of data DIV counter M_counter SC_counter if an external trigger occurs before
48. le Argument card number Trig erc Trig mode 62 e C Library the card number of the cPCI 91 16 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Reserved Set to 0 for proper operation Trigger mode setting Refer to 5 1 3 3 for details NO TRIG or 0 acquisition starts immediately when 9116 AD DMA Start or 9116 AD INT Start is performed software trigger POST TRIG or 1 post trigger mode DLY TRIG or 2 delay trigger mode PRE TRIG or 3 pre trigger mode MN TRIG or 4 middle trigger mode Trig pol Timebase sel Delay erc retrig en M enable ACO enable Return Code ERR NOError ERR BoardNolnit trigger polarity setting RISE TRIG or 0 rising edge trigger FALL TRIG or 1 falling edge trigger Timebase source selection Refer to 5 1 3 1 for details INT TIMEBASE or 0 internal timebase 24MHz EXT TIMEBASE or 1 external timebase from pind5 Delay source selection in delay trigger mode Refer to 5 1 3 3 for details 0 delay in timebase 1 delay in samples Enable disable re trigger mode acquisition when post trigger or delay trigger mode is selected 0 disable re trigger 1 enable re trigger Enable disable M enable bit when pre trigger or middle trigger mode is selected Mode acguisition when post trigger or delay trigger is selected Refer to 5 1 3 3 pre trigger amp middle trigger section fo
49. mebase MODE1 MODEO bit1 bit0 GPTCO s Mode selection MODE1 MODEO Description po 0o General Counter EE EE BIERE Table 6 GPTCO s Mode selection Registers e 23 45 A D Data Registers The digital converted data is 16 bits and is stored into 32 bit registers Address BASE 24 Attribute read Data Format EA ETE IE EE Tan Roe aos aba aba ana ADI Ano ES Ta Em KUR MTR ER Pants AD 4 abra abre ADIT ADT Ros ADE Bit 23 22 z 20 s 18 r 16 Pera REDE AE eS Bit 31 30 29 28 27 26 25 24 EA SERE SIE BN feu Table 7 A D Data Registers AD15 ADO Analog to digital data AD15 is the Most Significant Bit MSB ADO is the Least Significant Bit LSB 4 6 Channel Gain Queue Register This register is used to fill the Channel Gain Queue We recommend users use our call function to avoid any possible errors from these settings Address BASE 0x24 Attribute write Data Format Bes ED ES AE ST j TI ES TI E TAR HEK SE ens EN2 ENI Eno HL sel UNIP DIFF JU CMMD HN E RI RE O FA END RUT E TT EE SEN P Teain Gaino chs cHe GET CHO HERME EER is HERE SIE IE EE EE IG Ee eed Table 8 Channel Gain Queue Register 24 e Registers CH3 CHO bit11 bit8 Internal A D Channel selection bits ENZ ENO bit7 bit4 Multiplexer Enable selection bits Gain1 Gain0 bit13 bit12 Gain selection bits
50. not exceed 4us Hence after software conversion the software need only wait for a maximum of 4us to read the A D Data Register without polling Operation Theory e 35 5 1 2 1 Specifying Channels Gains and input configurations in the Channel Gain Queue In both Software Polling and programmable scan acquisition mode the channel gain and input configuration single end differential and U CMMD where you want to acquire samples from can be specified in the Channel Gain Queue You can set the channel number in the Channel Gain Queue in any order Therefore you can control the channel order from which data is acquired with different gain and input configuration for each channel The maximum number of entries you can set is 512 channels The channel order of acquisition is the same as the order you set in the Channel Gain Queue When the specified channels are sampled from the beginning to the end in the Channel Gain Queue the channels in the Channel Gain Queue will be sampled again until the specified number of samples has been acquired 5 1 3 Programmable scan acquisition mode 5 1 3 1 Scan Timing and Procedure It s recommended that this mode be used if your application needs a fixed and precise A D sampling rate You can accurately program the period between conversions of each individual channel in the scan and the period between conversions of the entire scan There are 4 counters which need to be specified SI counter 24 bit
51. nput Multipexer Instrumentation Amplifier Aln Ground Referenced Signal Source To A D Converter Common mode noise amp Ground potential Figure 7 Ground referenced source and User Common Mode connections 3 3 Digital I O Connection The 9116 series card provides 8 digital input and 8 digital output channels The digital VO signals are fully TTL DTL compatible The details of the digital VO signal specification can be found in section 1 3 74LS244 From TTL Signal 7ALS244 To TTL Devices Digital Output DO Digital GND DGND Figure 8 Digital VO Connection 18 e Signal Connections Registers The descriptions of the registers and structure of the cPCI 9116 are outlined in this chapter The information in this chapter will assist programmers who wish to handle the card with low level programs In addition the low level programming syntax is introduced This information can help beginners to operate the cPCI 9116 in the shortest possible time 4 1 VO Port Address The 9116 series card functions as a 32 bit PCI master device to any master on the PCI bus It supports burst transfer to memory space by using 32 bit data All data read and write are based on 32 bit transactions Table 2 shows the I O address of each register with respect to the base address The function of each register is also shown Registers e 19 VO Address Base 0x00 Base 0x04 Base 0x08 Base
52. om improper repair by unauthorized ADLINK technicians Products with altered and or damaged serial numbers are not entitled to our service This warranty is not transferable or extendible Other categories not protected under our warranty 4 Customers are responsible for all fees necessary to transport damaged products to ADLINK For further questions please e mail our FAE staff service adlinktech com 88 e Warranty Policy
53. op function to stop the process The data acquired will be in the order the Channel Gain Queue is set After executing this function it is necessary to check the status of the operation by using the function 9116 AD DMA Status and execute 9116 AD DMA Stop after obtaining the AD DMA STOP status from 9116 AD DMA Status Syntax C C DOS int 9116 AD DMA Start l16 card number U32 SI value U32 SI2 value U32 SC value U32 DIV value U32 ad buffer Argument card number SI value SI2 value SC value DIV value ad buffer the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD_2 CARD_ 3 CARD_4 Set SI Counter value Range 96 through to 16777215 Set Sl2_Counter value Range 96 through to 65535 Set SC_Counter value Range 1 through to 16777215 Set DIV_Counter value Range 1 through to 65535 the start address of the memory buffer to store the A D data the buffer size must be larger then the numbers of A D conversions The memory should be of double word length C Library e 69 Return Code ERR NOError ERR BoardNolnit ERR InvalidADChannel ERR_InvalidTimerValue ERR_AD_InvalidGain 6 9 2 9116 AD DMA Status Description Since the 9116 AD DMA Start function runs in the background this function can be used to check its operation status Syntax C C DOS int 116 9116 AD DMA_Status 116
54. os 49 Chapter 6 C C Library eene ese ee ER RE ER RE ER ERA ER EER ER RA ER RA ER KAR ER EA ER Rae NEE 51 6 1 Libraries Installation AAA 51 6 2 Programming Guide AAA 52 6 2 1 NAMING Convention 52 622 Data ly pes SESSE uan n GREG nu eae ni 52 6 2 3 Sample Programs List DO 53 6 3 DE UNCIONS OE RE EE NE OR 54 63 1 9116 Mnitial A A id 54 6 32 9116 AD _Clr_DFIFO sees ee ee Re Re ee ee ke 55 EE ve le ie RE EE N ie 56 6 4 1 IM DI EE ner ithe Nita leer nina hie ee 56 642 9116 DORRE bas leda Re NEE entitle ahaa ote 56 6 5 AD Channel Gain Queue configuration functions 57 65 1 9116 AD Cl CFIFO sb Ee ene 57 6 52 9116 AD Set GRIFO iese Bees Se tod 58 6 5 3 9116 AD CEO Gettione ooooococcccconccconccnonccnonncnonccnanccnonos 60 6 6 AD Software Polling functons 61 6 6 1 9116 AD Acqui Erreseina ee AE aa ka h nin a dul xan s 61 6 7 AD Trigger Control functions 20 0 eee ee Re Re Re Re ee ee 62 6 71 916EADTrig EE 62 9116 AD Set Triodode ie RR ER RA 62 9116 AD Ger Triobol 62 9116 AD Set Timebase ie Re RE RA ER 62 9116 AD Set Delay GC 62 9116 AD Set M enable iii ee ee Re Re Re ee ke 62 6 8 AD Counter setting functions ee ee EEE Re ee ee 64 6 8 1 9116 AD Set ZC eise ee khe aki r hana na a ee Re ae 64 6 82 9116 AD Set SIE ESE SE we a A 65 68 3 9116 AD Set Sloan ieee eee 65 6 8 4 9116 AD Set DIV is tege EE eg ee Re ese EE gee Fee ie 66 6 8 5 916 AD Set DIY T EE
55. r e Number of channel One 16 bit Up Down Timer Counter e Clock Input Internal 24MHz or External CLK input up to 20MHz 4 e Introduction e General Specifications Connector 100 pin D type SCSI II connector Operating Temperature 0 C 60 C Storage Temperature 20 C 80 C Humidity 5 95 non condensing Power Consumption v 5V 560mA typical v 3 3V 100mA typical 15V pin35 pin85 Output Current max 5mA 5V pin49 pin99 Output Current max 500mA Dimension Standard Compact PCI 3U size Introduction e 5 14 Software Support ADLINK provides versatile software drivers and packages for users different approach to building a system We not only provide programming libraries such as DLL for many Windows systems but also provide drivers for other software packages such as Lab VIEW All software options are included in the ADLINK CD Non free software drivers are protected with licensing codes Without the software code you can install and run the demo version for two hours for trial demonstration purposes Please contact ADLINK dealers to purchase the formal license 1 4 1 Programming Library For customers who are writing their own programs we provide function libraries for many different operating systems including e 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 applic
56. r the card number of cPCI 9116 to be initialized totally 4 cards can be initialized the valid card numbers are CARD_1 CARD_2 CARD 3 CARD_4 Gp0_en 0 disable counting 1 enable counting 80 e C Library Return Code ERR NOError ERR BoardNolnit 6 12 8 9116 GPO Read Count Description This function is used to read back the counter value of GPTC Syntax C C DOS Int 9116 GPO Read Count 116 card number U16 GP_value Argument card_number the card number of cPCI 9116 to be initialized totally 4 cards can be initialized the valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Gp value read backed counter value Return Code ERR NOError ERR BoardNolnit C Library e 81 Software Utility amp Calibration This software CD provides a utility program 9116util exe and is intended for Calibration and Functional Testing This utility is a menu driven design and operates under the DOS environment The text messages gives operating guidance with graphics to indicate correct hardware configuration and location The utility is described in the following sections Note that the software driver for the cPCI 9116 and cPCI 9116R are the same 7 1 Running 9116util exe program After finishing the DOS installation you can execute the utility by typing the following command Assuming the utility is located in C ADLINK 9116 DOS_BC Util directory the following command should be entered at the DOS p
57. r definition of M enable 0 set M enable to 0 1 set M enable to 1 Set to 0 for proper operation C Library e 63 6 8 AD Counter setting functions These functions are for the setting of the counter values when using programmable scan acquisition mode Refer to Chapter 5 for definition of each counter 6 8 1 9116 AD Set SC Description Set SC Counter value for programmable scan acquisition mode Syntax C C DOS int 9116 AD Set_SC 116 card number U32 counter value Argument card number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Counter value the SC Counter value Range 1 through to 16777215 Return Code ERR NOError ERR BoardNolnit 64 e C Library 6 8 2 9116 AD Set SI Description Set SI Counter value for programmable scan acquisition mode Syntax C C DOS int 9116 AD Ger GI 116 card number U32 counter value Argument card number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD 1 CARD 2 CARD 38 CARD 4 Counter value the SI Counter value Range 96 through to 16777215 Return Code ERR NOError ERR BoardNolnit 6 8 3 9116 AD Set GI Description Set GI Counter value for programmable scan acquisition mode Syntax C C DOS int 9116 AD Set_Sl2 116 card number U32 counter value Argument card number
58. r via a system call The system BIOS responds with an interrupt assignment based on the board information and on known system parameters These system parameters are determined by the installed drivers and the hardware load seen by the system 2 Configuration The board configuration is done on a board by board basis for all PCI form factor boards on your system Because configuration is controlled by the system and software so there is no jumpers for base address DMA and interrupt IRQ need to be set by the user The configuration is subject to change with every boot of the system as new boards are added or boards are removed So there is no idea what s going on to be installed 3 Trouble shooting If your system doesn t boot or if you experience erratic operation with your PCI board in place it s likely caused by an interrupt conflict perhaps because you incorrectly configured the BIOS setup In general the solution once you determine it is not a simple oversight is to consult the BIOS documentation that came with your system 12 e Installation Signal Connections This chapter describes the connectors of the 9116 series The signal connections between the 9116 series cards and external devices are also outlined 3 1 Connectors and Pin Assignment The cPCI 9116 is equipped with one 100 pin SCSI type connector J1 J1 is used for digital input output analog input and timer counter signals The pin assignment for t
59. rate FIFO Half Full Interrupt Transfer Sometimes the application does not need real time processing cause the foreground program is busy polling the FIFO data The FIFO half full interrupt transfer mode is useful for the situation mentioned above Under this mode an interrupt signal is generated when FIFO becomes half full It means that there are 512 words of data in the FIFO ready for transfer The ISR can read the whole block of data when the interrupt occurs A block is 512 words long Note In the current version EOC amp FIFO half full interrupt transfer mode doesn t support pre trigger and middle trigger mode data acquisition Users must use DMA transfer to work with pre trigger or middle trigger data acquisition Operation Theory e 47 DMA Transfer PCI bus mastering DMA is necessary for high speed DAQ in order to utilize the maximum PCI bandwidth The bus mastering controller which is built in into the AMCC 5933 PCI controller controls the PCI bus when it becomes the master on the bus Bus mastering reduces the size of the on board memory and reduces the CPU loading because data is directly transferred to the computer s memory without host CPU intervention Bus mastering DMA provides the fastest data transfer rates on PCI bus Once the analog input operation starts control returns to your program The hardware temporarily stores the acquired data in the onboard Data FIFO and then transfers the data to a user defined
60. rated in fig 21 After the initial count is written initially OUT is low When the counter reaches 1 OUT goes high for one clock pulse OUT then goes low again The counter reloads the initial count and the process will be repeated mode 1 Initial count 3 Count down Gate CLK Count value 3 3 2 2 1 3 2 1 3 OUT Figure 21 Mode 1 Operation Note In Mode 1 the initial count value N must be larger than one 50 e Operation Theory C C Library This chapter describes the software library for operating this card Only the functions in DOS library are described Please refer to the PCIS DASK function reference manual which included in ADLINK CD for the descriptions of the Windows 98 NT 2000 DLL functions The function prototypes and some useful constants are defined in the header files LIB directory DOS 6 1 Libraries Installation Please refer to the Software Installation Guide for the detail information about how to install the software libraries for DOS or PCIS DASK for Windows 98 NT 2000 The device drivers and DLL functions of Windows 98 NT 2000 are included in the PCIS DASK Please refer the PCIS DASK user s guide and function reference which included in the ADLINK CD for detailed programming information C Library e 51 6 2 Programming Guide 6 2 1 Naming Convention The functions of the NUDAQ PCI cards or NulPC Compa
61. renced signal means it is connected in some way to the buildings system That is the signal source is already connected to a common ground point with respect to the 9116 card assuming that the computer is plugged into the same power system Non isolated outputs of instruments and devices that plug into the buildings power system are ground referenced signal sources 3 2 2 Input Configurations Single ended Mode In single ended mode all input signals are connected to ground provided by the 9116 card It is suitable for connections with floating signal sources Figure 4 illustrates single ended connection Note that when more than two floating sources are connected these sources will be referenced to the same common ground J1 Input Multipexer Instrumentation Amplifier Aln Floating WY Signal Source Vi V2 To A D Converter AGND n 0 63 Figure 4 Single ended Mode and Floating sources 16 e Signal Connections Differential input mode The differential input mode provides two inputs that respond to signal voltage differences between them If the signal source is ground referenced the differential mode can be used for common mode noise rejection Figure 5 shows the connection of ground referenced signal sources under differential input mode x 0 31 Input Multipexer Instrumentation AlxH Amplifier To A D Converter Common mode noise amp Ground J AGND potential
62. rigger Interrupt Enable Control 1 Enable 0 Disable End of conversion Interrupt Enable Control 1 Enable 0 Disable write 1 to clear the GPTC Interrupt status 1 clear interrupt from the GPTC 0 no effect write 1 to clear the SCTC Interrupt 1 clear the interrupt on terminal count of the Scan counter 0 no effect write 1 to clear the data FIFO half full interrupt 1 clear the interrupt on the data FIFO half full status 0 no effect write 1 to clear the Digital Trigger Interrupt 1 clear the interrupt when trigger happens 0 no effect write 1 to clear the End of Conversion Interrupt 1 clear the interrupt when EOC 0 no effect 4 12 Interrupt Status Register Address BASE 0x38 Attribute read Data Format HETE TLI EE EMIR EE IE EE EE P timer Ere Hur rg 0C KELEN MEN ef w e 8 a Se s r HEZ EN ELEMAN HER aa HERI ae HER ie 7 ie Timer bit4 SCTC bit3 HFull bit2 DTrg bit1 EOC bit0 Table 17 Interrupt Status Register GPTC generated Interrupt status 1 Interrupt Occurs 0 Interrupt not Occur Scan Counter reach Terminal Count Interrupt status 1 Interrupt Occurs 0 Interrupt not Occur data FIFO Half Full Interrupt 1 Interrupt Occurs 0 Interrupt not Occur Digital Trigger Interrupt status 1 Interrupt Occur 0 Interrupt not Occur End of Conversion Interrupt status 1 Interrupt Occurs 0 Interrupt not Occur Registers e 33 Operation T
63. rompt C gt cd ADLINK 9116 DOS_BC Util C gt 9116UTIL The following diagram will be displayed on you screen The message at the bottom of each window guides you through the selected item 82 e Software Utility amp Calibration er CPCI 9116 Utility Rev 1 0 Copyright 2001 2002 ADLINK Technology Inc All rights reserved lt F1 gt Calibration lt F2 gt Function testing lt Esc gt Quit gt gt gt Select function key F1 F2 or press lt Esc gt to quit lt lt lt Figure 22 CPCI 9116 Utility Main Screen 7 2 Calibration In data acquisition processes calibration of the measurement devices is very important to maintain its accuracy Users can calibrate the analog input channels under the operating environment to optimizing the accuracy of the 9116 series card The following section will guide you though the calibration process for the 9116 series card Note For an environment with frequently large fluctuations in temperature and vibration a 3 months re calibration interval is recommended For laboratory conditions 6 months to 1 year is acceptable 7 2 1 What do you need Before calibrating your 9116 series card you should prepare the following equipment s e A5 1 2 digital multimeter 6 1 2 is recommended e A voltage calibrator or a very stable and noise free DC voltage generator Software Utility 8 Calibration e 83 7 2 2 VR Assignment There are 4 variable resistors VR on the
64. ry and constant service Detailed Company Information Company Organization Contact Person E mail Address Address CPU Environment to Use i BIOS Network Interface Card Other Detail Description Suggestions to ADLINK Table of Contents AAA iv FiGUreS essens sesse EE Re EKA Kar uan u cerro nera cerraran cananea cerca renace v Outline Of ChapterSs aa a222a2aaaaaaaaanananannnnnnnnnnnnnnnnnnnununanunannnnnnnnnnnannnnananana vi Chapter 1 Introduction ees ese ee ER EE ER RE RR EE AR EE AR RE RE AR KEER ER Re ER EG ER ee ER 1 Wl VR RE EE OE EE OE EE EE GO N 2 Ree EE 2 ASS A ETE 3 1 4 Software SUPDO ucraniana cn 6 1 4 1 Programming Librane ee ee Ee ee ee ee ee ee ee 6 14 2 PCIS LVIEW LabVIEW Driver ee 6 1 4 3 DAQBench ActiveX Control 7 Chapter 2 InstallatioN ees ee RE ER RE RE ER ERA RR EA ER RA ER EA ER EER ER RE ER Rae ER Ee A 8 2 1 What de EE 8 2 2 UNPACKING enc SEE et aie A ee ee re 9 2 3 cPCI 9116 and CPCI 9116R Layout 10 24 PCI Configuration lt s yn n sr ESEL iin eee ieee neste 12 Chapter 3 Signal Connections 2aaaaanaaanaan nannnunnnnnnnnnnunanunannnnnnnnnnnan 13 3 1 Connectors and Pin Aeslgmnment 13 3 1 1 100 pin SCSI type connector J1 14 GC CN e Be EE 15 3 2 Analog Input Signal Connection ee ee ee RR ee ee 16 3 2 1 Types of signal eoures sees ee ee Re ee ee 16 3 2 2 Input ConfiguraHOnS s str treige 16 3 3 Di
65. series card It has the following features CLK pin96 Gate pin97 CPCI 9116 Controller Initial Count Mode Count load control read back OUT pin48 UP DOWN ping8 Figure 19 General purpose Timer Counter model Count up Count down controlled by hardware or software low or 0 counts down high or 1 counts up Programmable counter CLK source selection Internal 24MHZ or External CLK input up to 20MHz Programmable Gate selection Internal or External For Internal control you can disable counting only by software For External gate control either software or setting Gate low on pin 97 of J1 disables the counting Initial Count can be loaded from software Current count value can be read with software without affecting circuit operation Two programmable timer modes are provided Operation Theory e 49 Mode 0 Interrupt on Terminal Count Mode 0 is typically used for event counting as illustrated in fig 20 After the initial count is written OUT is initially low and will remain low until the Counter counts to zero OUT then goes high and will remain high until a new count is written into the Counter Mode 0 Initial count 3 Count down Gate CLK Count value 3 3 2 1 1 1 OUT Figure 20 Mode 0 Operation Mode 1 Rate Generator This mode operates like a divide by N counter as illust
66. t CompactPCI architecture The 9116 series include e CPCI 9116 16 bit 250KHz DAS card for 3U CompactPCI e CPCI 9116R 16 bit 250KHz DAS card for 3U CompactPCI with Rear I O connector The 9116 series DAS cards use state of the art technology making it an ideal for data logging and signal analysis applications in medical process control etc Introduction e 1 1 1 Features The 9116 series CompactPCI Advanced Data Acquisition Card provides the following advanced features 32 bit PCI Bus plug and play Up to 64 single ended inputs or 32 differential inputs mixing of using SE and DI analog signal sources 16 bit analog input resolution On board A D 1K FIFO memory 512 words analog input Channel Gain Queue spaces Sampling rate up to 250KS s Bipolar or Unipolar input signals Programmable gain of x1 x2 x4 x8 Jumper less and software configurable Five A D trigger modes software trigger pre trigger post trigger middle trigger and delay trigger Software Polling Interrupt and Bus mastering DMA data transfer available 8 digital input and 8 digital output channels 100 pin D type SCSI I connector for cPCI 9116 100 pin D type SCSI Il connector on a rear VO transition board for cPCI 9116R Compact size standard compact PCI 3U size 1 2 Applications 2 e Introduction Automotive Testing Cable Testing Transient signal measurement ATE Laboratory Automation Biotech measurement 13 Specifications
67. tally 4 cards can be initialized valid card numbers are CARD 1 CARD 2 CARD 38 CARD 4 userBuffer user transfer buffer for A D converted data each time 9116 DblBufferTransfer copies half size of circular buffer to user s Buffer The size of the circular in samples is specified in 9116 AD DMA Start function call Return Code ERR NOError ERR BoardNolnit 76 e C Library 6 11 3 9116 GetOverrunStatus Description When you perform continuous scan data acquisition with double buffered mode DMA transer but you do not use 9116 DblBufferTransfer to copy converted data then circular buffer overrun will occur You can use this function to check overrun counts Syntax C C DOS int 9116 GetOverrunStatus l16 card number U32 overrun_cnt Argument card number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD 1 CARD 2 CARD 3 CARD 4 overrunCount number of overrun counts Return Code ERR_NoError 6 12 General Purpose Timer Counter functions 6 12 1 9116 GPO Set Mode Description This function is used to select operation mode of GPTC Please refer to 5 3 for the details Syntax C C DOS int 9116 GPO_Set_Mode 116 card number U16 mode Argument card_number the card number of the cPCI 9116 to be initialized totally 4 cards can be initialized valid card numbers are CARD_1 CARD 2 CARD 3 CARD 4 Mode 0 mode0 operat
68. total acquired data length DIV_counter SC_counter Retrig_no DIV_Counter 4 SC_Counter 2 retrig_no 3 ExtTrg Scan_start AD_conversion Il nnn UN nn nn nn Scan_in_progress SSH_OUT Acquisition_in_progress Acquired 8 stored data 6 scans Operation start Figure 18 Post trigger with re trigger 46 e Operation Theory 5 14 A D Data Transfer Modes After the end of the A D conversion A D data are buffered into the Data FIFO memory The FIFO size on the 9116 series card is 1024 1K words If the sampling rate is 10 KHz the FIFO can buffer 102 4 ms of analog signal After the FIFO is full any data after this time will be lost The data must be transferred to the host memory after the data is ready and before the FIFO is full In scan acquisition mode there are 3 data transfer modes that can be used They are described below EOC Interrupt Transfer The 9116 series card provides traditional hardware End Of Conversion EOC interrupt capability Under this mode an interrupt signal is generated when the A D conversion has ended and the data is ready to be read into the Data FIFO The hardware interrupt will be asserted and its corresponding ISR Interrupt Service Routine will be invoked and executed The ISR program can read the converted data This method is suitable for data processing applications under real time and fixed sampling
69. ufactured by ADLINK will be covered by the original manufacturers warranty For products containing storage devices hard drives flash cards etc please back up your data before sending them for repair ADLINK is not responsible for any loss of data Please ensure the use of properly licensed software with our systems ADLINK does not condone the use of pirated software and will not service systems using such software ADLINK will not be held legally responsible for products shipped with unlicensed software installed by the user For general repairs please do not include peripheral accessories If peripherals need to be included be certain to specify which items you sent on the RMA Request amp Confirmation Form ADLINK is not responsible for items not listed on the RMA Request amp Confirmation Form 3 Our repair service is not covered by ADLINK s guarantee in the following situations e Damage caused by not following instructions in the User s Manual e Damage caused by carelessness on the user s part during product transportation e Damage caused by fire earthquakes floods lightening pollution other acts of God and or incorrect usage of voltage transformers Warranty Policy e 87 Damage caused by inappropriate storage environments such as with high temperatures high humidity or volatile chemicals Damage caused by leakage of battery fluid during or after change of batteries by customer user Damage fr
70. us Clear ADOS Bit0 Write 1 to clear Write 1 to clear the A D Over Speed Status 0 no effect 1 clear the A D Over Speed status 48 A D amp FIFO Status Register Address BASE 28 Attribute read Data Format Ed EE EE TI NIE IG ZEN IBE ES ea aco Fun HFull Empty Trg det SC TC ADOR ADOS L Bit 15 s s 12 o e e alar lo TE e HEZ Bit 23 22 21 19 s r 16 EE ee ee AFA PISO MEZE Bit 31 3 29 28 27 26 25 aza azan AE a ee ee Ken EEN Table 11 A D amp FIFO Status Register Registers e 27 ACO Bit7 Full Bit6 HFull Bit5 Empty Bit4 Trg_det Bit3 SC_TC Bit2 ADOR Bit1 ADOS Bit0 28 e Registers Read Only set when acquisition is in progress Read Only A D FIFO Full status Fatal Error 0 FIFO Full 1 FIFO not Full Read only A D FIFO Half Full status 0 FIFO Half Full 1 FIFO not Half Full Read Only A D FIFO Empty status 0 FIFO Empty 1 FIFO not Empty Read Write 1 to clear External Digital Trigger Status 1 External Digital Trigger 0 No External Digital Trigger Read Write 1 to clear Scan Counter Terminal Count Status 1 Scan Counter counts to 0 0 Scan Counter not completed Read Write 1 to clear A D Overrun Status Fatal Error 1 A D Overrun 0 A D not Overrun Read Write 1 to clear A D Over Speed Status Warning 1 A D Over Speed 0 A D not Over Speed 4 9 Digital VO
Download Pdf Manuals
Related Search
Related Contents
Mode d`emploi DGT XL - Fédération Française des Échecs Descargar User Manual Interactive Delivery Planner Sensore per indicatore di livello GPL per multivalvole TOMASETTO ガス捕集管総合カタログ - sibata.co.jp 模擬店運営マニュアル Montage - ATI Autoteile Immler Rust-Oleum Specialty 1955830 Use and Care Manual Operating Instructions................................1 Copyright © All rights reserved.
Failed to retrieve file