Home

PCI 725/726/730 PCI PnP Analog Board User`s Manual

image

Contents

1. PCI 725 726 730 PCI PnP Analog Board User s Manual Eagle Technology SS Town South Africa Copyright 2001 200 www eagle co za PCI 730 User Manual Eagle Technology Data Acquisition Analog Boards Data Acquisition and Process Control Eagle Technology 31 35 Hout Street e Cape Town e South Africa Phone 27 21 423 4943 e Fax 27 21 424 4637 Email eagle eagle co za Eagle Technology Copyright 2001 2002 www eagle co za i PCI 730 User Manual Eagle Technology Data Acquisition Copyright All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or any means electronic mechanical by photographing recording or otherwise without prior written permission Copyright Eagle Technology South Africa May 2002 Revision 1 5 Information furnished in this manual is believed to be accurate and reliable however no responsibility is assumed for its use or any infringements of patents or other rights of third parties which may result from its use Trademarks and Logos in this manual are the property of their respective owners Product Warranty Eagle Technology South Africa warrants its products from defect in material and workmanship from confirmed date of purchase for a period of one year if the conditions listed below are met The product warranty will call the Eagle Technology Data Acquisition Device short as ETDAQD e The warra
2. System busy 10 call failed ADC gain out of range Query value not supported Channel number out of range Configuration value specified out of range Counter timer channel out of range Channel list invalid Configuration invalid Mode not valid Hardware error occurred Hardware busy Buffer invalid Registry error occurred Out of resources Waiting on 1 0 completion Range Eagle Technology Copyright 2001 2002 www eagle co za 30 PCI 730 User Manual Eagle Technology Data Acquisition C Layout Diagram Re BD ai HD al g E TET aga bag Dt ole er 0 i pi Wi po zl UFER n LLLE a Ch p E RRES ooooo8 kook Cp age SE Sc 1 aoges Eagle Technology Copyright 2001 2002 www eagle co za 31 PCI 730 User Manual Eagle Technology Data Acquisition D Ordering Information For ordering information please contact Eagle Technology directly or visit our website They can also be emailed at Description PCI 725 16 Channel 100KHz A D PCI 726 16 Channel 100KHz A D 24 Channel DIO 3 Counter Timers PCI 730 16 Channel 100KHz A D 24 Channel DIO 3 Counter Timers 4 Channel D A Table D 1 Ordering Information Please visit our website to have a look at our wide variety of data acquisition products and accessories Eagle Technology Copyright 2001 2002 www eagle co za 32
3. Acquisition Locate File Pci703 inF My Computer tc GE My Network P Select the browse button and search for the PCI730 inf file on the Eagle CD Rom Found New Hardware Wizard EI EEN The driver is normally located in the lt CDROM gt EDRE DRIVERS WDM PCI730 directory Eagle Technology Copyright 2001 2002 www eagle co za 6 PCI 730 User Manual Eagle Technology Data Acquisition Select next when found Found New Hardware Wizard Driver Files Search Results Fate The wizard has finished searching for driver files for your hardware device Sy The wizard found a driver for the following device oy PCI Device Windows found a driver for this device To install the driver Windows found click Next d inf pci 03 inf lt Back Cancel Select next again Found New Hardware Wizard Completing the Found New Hardware Wizard L Pci703 A D Board Windows has finished installing the software for this device To close this wizard click Finish lt Back Cancel When done you might have to restart your computer Post installation When done with the driver installation the device manager can be open to make sure the installation was a success Eagle Technology Copyright 2001 2002 www eagle co za 7 PCI 730 User Manual Eagle Technology Data Acquisition e First make sure that the driver is working properly by opening the
4. BRDTYPE BRDREV BRDYEAR BRDMONTH BRDDAY BRDSERIALNO DRVMAJ OR DRVMINOR DRVBUILD ADNUMCHAN ADNUMSH ADMAXFREQ ADBUSY ADFIFOSIZE ADFIFOOVER ADBUFFSIZE ADBUFFOVER ADBUFFALLOC ADUNREAD ADEXTCLK ADEXTTRIG ADBURST ADRANGE DANUMCHAN DAMAXFREQ DABUSY DAFIFOSZ CTNUM CTBUSY DIONUMPORT DIOQRYPORT DIOPORTWIDTH INTNUMSRC INTSTATUS INTBUSCONNECT INTISAVAILABLE INTNUMTRIG Description Query EDRE AP I major version number Query EDRE API minor version number Query EDRE API build version number Query EDRE API OS type Query number of devices installed Query a board s type Query a board s revision Query a board s manufactured year Query a board s manufactured month Query a board s manufactured day Query a board s serial number Query a driver s major version number Query a driver s minor version number Query a driver s build version number Query number of ADC channel Query number of samples and hold channels Query maximum sampling frequency Check if ADC system is busy Get ADC hardware FIFO size Check for FIFO overrun condition Check software buffer size Check for circular buffer overrun Check if software buffer is allocated Get number of samples available Get status of external clock line PCI30FG Get status of external trigger line PCI30FG Check if burst mode is enabled GetADC range Query number of DAC channels Query maximum DAC output frequency Check if DAC sy
5. Codes Configuring the ADC subsystem for scanning This is the most complicated part of configuring the PCI730 for auto scanning Make sure that you use the correct format when applying the channel list configuration There are many loopholes and care should be taken when implementing code to configure the PCI730 API CALL Long EDRE_ADConfig ulng Sn pulng Freq ulng CikSrc ulng Burst ulng Range pulng ChanList pulng GainList ulng ListSize The following parameters must be specified when configuring the ADC sub system Parameter Type Description Unsigned long Board s serial number Pointer to an Sampling frequency The actual sampling frequency will be returned with this parameter unsigned long Eagle Technology Copyright 2001 2002 www eagle co za 22 PCI 730 User Manual Eagle Technology Data Acquisition ClkSre Unsigned long This parameter is used to configure the clocking system of the ADC Format Offset bits Description 0 Clock Source ALLWAYS INTERNAL 8 Trigger Source T0 T3 Value Description 0 Internal 1 External EXT TRIGGER Example Layout 11 10 9 8 7 6 5 4 3 2 1 10 T3 T2 T1 TO x X X X X X X D Burst Unsigned long Notused Range Unsigned long Notused ChanList Pointer to an This is an array of unsigned longs which contains the channels to be sampled when scanning the ADC unsigned long sub sys
6. Interrupts A single call is necessary to disable the interrupt sub system ACTIVEX CALL Long EDREIntX Disable A returned error code will contain the status of the call Eagle Technology Copyright 2001 2002 www eagle co za 19 PCI 730 User Manual Eagle Technology Data Acquisition Interrupt Event If interrupts are enabled an event will occur on each interrupt The interrupt control s interrupt event will be triggered The source of the interrupt will also be passed to the event handler ACTIVEX CALL Interrupt long Source The source is the value read from the interrupt status register of the PCI730 device The sources are binary weighted See table below Source Value Actual source 1 Counter 0 2 Counter 1 4 Counter 2 Table 4 6 Event Source Eagle Technology Copyright 2001 2002 www eagle co za 20 PCI 730 User Manual Eagle Technology Data Acquisition Analog Out The PCI730 version has got 4 DAC channels that support single write The PCI730 has an output range of 10V and 14 bit resolution Writing to a DAC channel A single call is necessary to set a voltage on a DAC channel API CALL Long EDRE_DAWrite ulng Sn ulng Channel long uVoltage The serial number DAC channel and micro voltage is needed to set a DAC channel s voltage A return code will indicate if any errors occurred ACTIVEX CALL Long EDREDAX Write uing Channel long uVoltage The DAC channel and micro voltage
7. co za PCI 730 User Manual Eagle Technology Data Acquisition Analog Input Connections WARNING All unused analog inputs must be connected to analog ground The analog input system of the PCI730 can be damaged or become unstable when scanning channels that is left floating Eagle Technology Copyright 2001 2002 www eagle co za PCI 730 User Manual Eagle Technology Data Acquisition 4 Programming Guide The PCI730 is supplied with a complete software development kit EDR Enhanced EDRE SDK comes with drivers for many operating systems and a common application program interface API The API also serves as a hardware abstraction layer HAL between the control application and the hardware The EDRE API makes it possible to write an application that can be used on all hardware with common sub systems EDR Enhanced API The EDR Enhanced SDK comes with both ActiveX controls and a Windows DLL API Examples are provided in many different languages and serve as tutorials EDRE is also supplied with a software manual and user s guide The EDRE API hides the complexity of the hardware and makes it really easy to program the PCI730 It has got functions for each basic sub system and is real easy to learn Figure 4 A EDR Enhanced Design Eagle Technology Copyright 2001 2002 www eagle co za 14 PCI 730 User Manual Eagle Technology Data Acquisition Digital Inputs Outputs The PCI730 has got 3 dig
8. is needed to set a DAC channel s voltage A return code will indicate if any errors occurred Eagle Technology Copyright 2001 2002 www eagle co za 21 PCI 730 User Manual Eagle Technology Data Acquisition Analog Input The PCI730 has got 16 single ended or 8 differential analog inputs that can be configured for a number of gain settings Using different gain setting will give you a higher degree of accuracy When in differential mode every eighth channel is configured as a pair i e CHO and CH8 Reading a single voltage from a channel To read a single ADC channel you need to know the voltage range and gain API CALL Long EDRE_ADSingle ulng Sn ulng Channel ulng Gain ulng Range plong uVoltage Parameter Description Sn Unsigned long Board s serial number Channel Unsigned long ADC Channel Gain Unsigned long ADC Gain Range Unsigned long ADC Range uVoltage Pointer to a long Voltage read from channel Return Long Error Code Table 4 7 AD Single Read parameters ACTIVEX CALL Long EDREADX SingleRead long Channel Parameter Type Description Channel Long ADC Channel Return Long Voltage returned from channel Make sure to set the Gain and Range properties of the ADC ActiveX control This will in turn set the gain and range when reading the ADC channel Value Input Mode 0 Single Ended 1 Differential Table 4 8 SingleRead Range Codes LEIG Gain Range 2 5V 5V Table 4 9 SingleRead Gain
9. the Digital Inputs riting to the Digital Outputs f ke nun Nn ounter Timer riting the initial counter value i ke AN CH Reading the counter value onfiguring a counter ontrolling the counter gate vlt Eagle Technology Copyright 2001 2002 www eagle co za iii PCI 730 User Manual Eagle Technology Data Acquisition Programming Interrupts onfiguring the Interrupt sub system nabling Interrupts Disabling Interrupts nterrupt Event ken VD Ni ojoo Analog Out 21 riting to a DAC channel 21 Analog Input Reading a single voltage from a channel onfiguring the ADC subsystem for scanning NJN NJN N N 1 1 1 1 Digital triggering 23 Starting and Stopping the ADC process 4 etting data from the driver buffer 25 Querying the ADC subsystem 25 56 CALIBRATION 27 A SPECIFICATIONS 28 E E Hi Hi ya el E E oO oO p z L lama s IS S N N Gei Ge Digital I O Characteristics 28 82C54 Counter Timer 28 B CONFIGURATION CONSTANTS 29 uery Codes rror Codes e 5 H CH vl kel 5 g E et Q HI 5 Q E EI oO Dn wo wl wl r el SS Iw LAYOUT DIAGRAM D ORDERING INFORMATION L N Eagle Technology Copyright 2001 2002 www eagle co za iv PCI 730 User Manual Eagle Technology Data Acquisition Table of Tables Eagle Technology Copyright 2001
10. 2002 www eagle co za v PCI 730 User Manual Eagle Technology Data Acquisition 1 Introduction The PCI730 data acquisition boards have 32 bit PCI bus architecture This new range of boards is available in three versions The basic one contains 3 digital UO ports and 16 single ended or 8 differential mode inputs The second contains an extra 3 user counter timers The PCI730 being the third and top of the range contains all of the above and an extra 4 analog output channels Features The PCI730 does have some very unique features and are short listed below e 32 bit PCI bus Revision 2 2 compliant at 33MHz e PCI Bus 3 3V or 5V slot compatible e The module implements a target only interface Applications The PCI730 can be used in the following applications e Automation and test equipment e Laboratory training Key Specifications e Analogue input resolution is 14 bit e Analogue input ranges of 2 5V 5V and 10V e Maximum analogue input sampling rate of 200 KS s Programmable 32 bit timer 20 MHz clock e Four analogue output channels each with a resolution of 14 bits and full scale range of 10V 5 mA e Three eight bit digital I O channels e Three user counter timers Software Support The PCI730 is supported by EDR Enhanced and comes with an extensive range of examples The software will help you to get your hardware going very quickly It also makes it easy to develop complicated control applica
11. Counter Mode 82c54 Mode See 82c54 datasheet 82c54 Mode See 82c54 datasheet 82c54 Mode See 82c54 datasheet 0 Pulse Mode Pulse on each terminal count 1 Toggle Mode Change state on each terminal count Counter Type 0 2 0 Binary Counting 16 bits 1 Binary Coded Decimal BCD 4 decades 3 Not supported Source NOT USED set by external jumper Gate NOT USED set by external jumper Table 4 3 Counter Configuration Controlling the counter gate A single call is necessary to setup control a counter s gate This function call is invalid for the frequency generator counter 3 Counter 3 does not have a gate API CALL Long EDRE_CTSoftGate ulng Sn ulng Ct ulng Gate Eagle Technology Copyright 2001 2002 www eagle co za 17 PCI 730 User Manual Eagle Technology Data Acquisition The serial number counter number and gate are needed to control a counter s gate A return code will indicate if any errors occurred ACTIVEX CALL Long EDRECTX SoftGate ulng Sn ulng Ct ulng Gate The counter number and mode is needed to control a counter s gate A return code will indicate if any errors occurred These values are acceptable as a gate source Value Description 0 Gate disabled 1 Gate enabled Table 4 4 Gate Configuration Eagle Technology Copyright 2001 2002 www eagle co za 18 PCI 730 User Manual Eagle Technology Data Acquisition Progra
12. Device Manager e Check under the Eagle Data Acquisition list if your board is listed and working properly See picture below a Droe Manager aton vow PP Ga Ml Computer GS Disk drives Display adapters Fe DAOC O ROM drives Eagle Data Acquisition Ki POD A Board T SCH Floppy disk controllers ia Floppy disk drives SCH DE ATAATAPI controllers GR Cen de ETS Hee and other pointing devices H pts 7 RE heter adapters e F Ports OOM k LPT Sound video and game controllers BR System devices Universe Serial Bus controllers Clearly you can see that the PCI device is listed and working properly Further open the control panel and then the EagleDAQ folder This dialog should list all installed hardware Verify your board s properties on this dialog See picture below Eagle Technology Copyright 2001 2002 www eagle co za 8 PCI 730 User Manual Eagle Technology Data Acquisition EDRE DAQ Board Configuration amp Information i x EDR Enhanced Software Development Kit Eagle Technology Copyright c 1994 2000 Cape Town South Africa http www eagle co za email eagle eagle co za MEDRE API Information EDRE API Version jaa A4 Opering System Windows 2000 WDM Installed Boards m Board Information PCI703 16Ch A D 2Ch D A 100000001 Board Type a1 Driver Version fi ales Manufactured On 57672001 Revision fi Now the first pa
13. EDREADX ClockSource ClockS ource This parameter is used to configure the clocking system of the ADC Format Offset bits Description 0 Clock Source ALLWAYS INTERNAL 8 Trigger Source T0 T3 0 Internal 1 External Example Layout 11 10 9 T3 T2 T1 Starting and Stopping the ADC process A single call is necessary to start or stop the ADC process API CALL Long EDRE_ADStart ulng Sn Parameter Type Description Sn Unsigned long Board s serial number Return Long Error Code ACTIVEX CALL Long EDREADX Start Eagle Technology Copyright 2001 2002 www eagle co za 24 PCI 730 User Manual Eagle Technology Data Acquisition Parameter Type Description API CALL Long EDRE_ADStop ulng Sn Parameter Type Description Sn Unsigned long Board s serial number Return Long Error Code ACTIVEX CALL Long EDREADX Siop Parameter Type Description Getting data from the driver buffer A single call is necessary copy data from the driver buffer to the user buffer This board does not support the function ADGetDataRaw API CALL Long EDRE_ADGetData ulng Sn plong Buf pulng BufSize Parameter Description Unsigned long Board s serial number Pointer to a long buffer Buffer to copy micro voltages too Pointer to an unsigned Size of buffer must be passed or number of samples long requested The returned value will i
14. I730 has an IDC40 and a DB25 male connector A conversion cable is included that changes the IDC40 to a DB37 male connection that can be mounted on your PC case like a PCI card Application modules include the PC43A3 and PC52A2 Eagle Technology Copyright 2001 2002 www eagle co za 10 PCI 730 User Manual Eagle Technology Data Acquisition Connector Pin Assignments PCI730 d EXT_TRIGGER NOT USED Table 3 1 Pinouts for PCI730 External Connector DB25 Using VDD and VDD to drive an external device or causing a short circuit will DAMAGE the board beyond repair Table 3 2 Pinouts for PCI730 Internal Connector IDC 40 Eagle Technology Copyright 2001 2002 www eagle co za 11 PCI 730 User Manual Eagle Technology Data Acquisition Table 3 3 Pinouts for PCI730 Internal Connector DB 37 Signal Definitions This sections deal with all the signals abbreviations Description Analog Inputs Analog Outputs 15V Output 15V Output Analog Ground Counter Timer External Clock Input Counter Timer Output Counter Timer External Gate Control Digital Inputs outputs P ort A Digital Inputs outputs P ort B Digital Inputs outputs P ort C Power Output Digital Ground Table 3 4 Signal definitions Using VDD and VDD to drive an external device or causing a short circuit will DAMAGE the board beyond repair Eagle Technology Copyright 2001 2002 www eagle
15. ding to the long revious list The table below shows the format for each channel Offset bits Description 0 Specifies the gain of the channel Value Gain Range 0 1 2 5V 1 05 5V 2 0 25 10V Specifies the input mode of the channel Value Input Mode 0 Single Ended 1 Differential Eagle Technology Copyright 2001 2002 www eagle co za 23 PCI 730 User Manual Eagle Technology Data Acquisition Example Layout 11 10 9 8 7 6 5 4 3 2 1 0 M M M M G IG IG G G G G JG 3 2 1 0 1 6 5 ListSize Unsigned long This parameter determines the length the two previous arrays This is also the depth of the channel list that is programmed to the board The Frequency and ClockSource If using external trigger ADC ActiveX control must be setup before calling the configure function EDREADX Frequency Frequency The ADC sampling frequency WARNING X On the PCI730 the frequency is the update rate of the A D converter This means that the board will convert the channels at a period of equal to the frequency and the channels in the sequence of the channel list The end result is that the time between samples is equal to 1 Frequency Frequency Example PCI730 Frequency 100 000 Hz Channel List Length 10 Time for channels list 100 uS Time between channels 10 uS
16. e driver is a software program that enables a hardware device to work with SY an operating system This wizard will complete the installation for this device ay PCI Device device driver is a software program that makes a hardware device work Windows needs driver files for your new device To locate driver files and complete the installation click Next What do you want the wizard to do Search for a suitable driver for my device recommended Ce Display a list of the known drivers for this device so that can choose a specific driver RSR Select Search for a suitable driver for my device and select next Found New Hardware Wizard Locate Driver Files Da s Where do you want Windows to search for driver files SY Search for driver files for the following hardware device ay PCI Device The wizard searches for suitable drivers in its driver database on your computer and in any of the following optional search locations that you specify To start the search click Next If you are searching on a floppy disk or CD ROM drive insert the floppy disk or CD before clicking Next Optional search locations T Floppy disk drives I CD ROM drives IV Specify a location T Microsoft Windows Update lt Back Cancel Make sure only Specify a location is selected and select next Eagle Technology Copyright 2001 2002 www eagle co za 5 PCI 730 User Manual Eagle Technology Data
17. er must be passed by the calling function A return code will indicate if any errors occurred Eagle Technology Copyright 2001 2002 www eagle co za 16 PCI 730 User Manual Eagle Technology Data Acquisition ACTIVEX CALL Long EDRECTX Read long Port The counter number must be passed by the calling function If the return code is negative it means an error occurred otherwise it will be the value read from the counter Counter Discription Resolution Counter 0 16 bits Counter 1 16 bits Counter 2 16 bits Frequency Scaler Not supported Table 4 2 Counter Resolution Configuring a counter A single call is necessary to configure a counter API CALL Long EDRE_CTConfig uing Sn ulng Ct ulng Mode ulng Type ulng CikSrc ulng GateSrc The serial number counter number mode type clock source and gate source is needed to specify a counter s configuration A return code will indicate if any errors occurred ACTIVEX CALL Long EDRECTX Conftigure long ct long mode long type ulng source ulng gate The counter number mode type clock source and gate source is needed to specify a counter s configuration A return code will indicate if any errors occurred Only the counter mode clock source and type parameters are used by the PCI703 The table below shows the options for each parameter Parameter Description Serial Number Counter Number 0 Counter 1 1 Counter 2 2 Counter 3 3 Frequency Scaler
18. his section will describe how to install your PCI board into your computer e Switch off the computer and disconnect from power socket Failure to disconnect all power cables can result in hazardous conditions as there may be dangerous voltage levels present in externally connected cables Remove the cover of the PC Choose any open PCI slot and insert PCI board Insert bracket screw and ensure that the board sits firmly in the PCI socket Replace the cover of the PC Reconnect all power cables and switch the power on The hardware installation is now completed Eagle Technology Copyright 2001 2002 www eagle co za 3 PCI 730 User Manual Eagle Technology Data Acquisition Software Installation Windows 98 2000 ME Installing the Windows 98 2000 device driver is a very straightforward task Because it is plug and play Windows will auto detect the PCI board as soon as it is installed No setup is necessary You simply have to supply Windows with a device driver Wait until Windows detects the new hardware Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install a device driver for a hardware device To continue click Next lt Back Cancel Select Next Eagle Technology Copyright 2001 2002 www eagle co za 4 PCI 730 User Manual Eagle Technology Data Acquisition Found New Hardware Wizard D Install Hardware Device Drivers E A devic
19. installed Both can be found on the Eagle Technology Software CD Rom lt EAGLECD gt EDRE APPS PCI700CAL PCI700CAL EXE The latest version will also be available on http www eagledaq com Eagle Technology Copyright 2001 2002 www eagle co za 27 PCI 730 User Manual A Specifications Analogue Input Input Coupling Maximum Working Voltage FIFO Buffer Size Channel List Buffer Size Maximum Sampling rate Resolution Relative Accuracy External Trigger Analogue Output Number of Channels Output Range Resolution Maximum update rate Absolute Maximum Error Digital UO Characteristics Number of Channels Compatibility UO Characteristics 82C54 Counter Timer Number of 82C54 devices Gate Control Clock Control Other Bus Interface Power Requirements Eagle Technology Data Acquisition DC 11V relative to module ground 2048 Sixteen entries 100 KHz Fourteen bits 1LSB From TTL input source 4 10V 5mA 14 Bits 840 ns per transfer to a DAC channel 2mV 24 82C55 82C55 1 Jumper selectable either External IO or Internal FPGA Jumper selectable either External IO or Internal FPGA PCI 2 2 Compatible Master amp Slave 3 3V or 5V 5V 45 1 3 A Eagle Technology Copyright 2001 2002 www eagle co za 28 PCI 730 User Manual Eagle Technology Data Acquisition B Configuration Constants Query Codes APIMAJ OR APIMINOR APIBUILD APIOS APINUMDEV
20. ital ports The EDRE API supports auto direction configuration By writing to or reading from a port it is automatically configured as an output or input A port is defined as a collection of simultaneous configurable entities Thus in the case of the PCI730 each port is only 8 bit wide Reading the Digital Inputs A single call is necessary to read a digital I O port API CALL Long EDRE_DioRead ulng Sn ulng Port ulng Value The serial number port and a pointer to variable to hold the result must be passed by the calling function A return code will indicate if any errors occurred ACTIVEX CALL Long EDREDioX Read long Port Only the port number needs to be passed and the returned value will either hold an error or the value read If the value is negative an error did occur Writing to the Digital Outputs A single call is necessary to write to a digital I O port API CALL Long EDRE_DioWrite uIng Sn ulng Port ulng Value The serial number port and a value must be passed by the calling function A return code will indicate if any errors occurred ACTIVEX CALL Long EDREDioX Write long Por ulng Value The port number and value to be written needs to be passed and the returned value holds an error or the value read If the value is negative an error did occur Eagle Technology Copyright 2001 2002 www eagle co za 15 PCI 730 User Manual Eagle Technology Data Acquisition Counter Timer The counter sub syste
21. m is supported by functions to Write Configure and controlling the gate There are 3 counters and 1 frequency generator See the table below that shows the relation of the counters and their assigned numbers Ceptes Tmmner Architetture 20 Ma Ceol Bator a Fia gumy Oe rapes l S tz Gide mal Chock Pin O Briania d E t J Soi Gute D LZ ni Mke ate 1 L J a Sete Chote 3 ne wi Air ge RR INS aS ME 8 l Cor 2 el S Agrsal Gide Piel ooo o sia Dale Aint Eija tial Cin ik Fin 3 Eriga Sie Find Writing the initial counter value A single call is necessary to write a counter s initial load value Description Resolution Counter 0 Counter 1 Counter 2 Frequency Scaler Table 4 1 Counter Resolution Calculating Frequency Scaler s output frequency Frequency 20MHz 2 Value 1 API CALL Long EDRE_CTWrite uing Sn ulng Ct ulng Value The serial number counter number and a value must be passed by the calling function A return code will indicate if any errors occurred ACTIVEX CALL Long EDRECTX Write long Port ulng Value The port number and value to be written needs to be passed and the returned value holds an error or the value read If the value is negative an error did occur Reading the counter value A single call is necessary to read a counter API CALL Long EDRE_CTRead ulng Sn ulng Ct pulng Value The serial number counter number and a reference paramet
22. mming Interrupts On the PCI726 and PCI730 the three counter timers can be used to generate an interrupt Interrupts is fully programmable and can be configured enabled and disabled via software WARNING Be careful when programming the interrupt sub system because it is easy to generate interrupts that is faster than what Windows can service Don t try and generate interrupt faster than 10KHz This will not work Remember this is 10KHz in total and not per source The PCI730 interrupt service routine will stop servicing interrupts if at any stage it is still busy with a previous interrupt and the next one is generated Configuring the Interrupt sub system A single call is necessary to configure the interrupt sub system API CALL Long EDREiIntX IntConfigure long Source long Mode long Type Parameter Type Description Source Source PCI726 PCI730 Counter 0 Counter 1 Counter 2 Mode Disable or Enable a source 0 Disable 1 Enable Type All ways trigger on rising edge of counter terminal count RETURN This parameter contains the error code return If 0 then no error occurred Table 4 5 EDREIntX Configure Parameters Enabling Interrupts A single call is necessary to enable the interrupt sub system This will also enable the global interrupt on the PCI30 and connect it to the PCI Bus ACTIVEX CALL Long EDREIntX Enable A returned error code will contain the status of the call Disabling
23. ndicate the number of actual samples copied to the buffer Long Error Code ACTIVEX CALL Long EDREADX GetData plong Buffer plong Size Parameter Description Buf Pointer to a long buffer Buffer to copy micro voltages too BufSize Pointer to a long Size of buffer must be passed or number of samples requested The returned value will indicate the number of actual samples copied to the buffer Return Long Error Code Querying the ADC subsystem The driver can be queried to check the status of the ADC subsystem The number of unread samples is one example API CALL Long EDRE_Query ulng Sn ulng QueryCode ulng Param Parameter Description Sn Unsigned long Board s serial number QueryCode Unsigned long Query code See appendix Example ADUNREAD This will tell you the number of available samples ADBUSY Is the ADC subsystem busy Param Unsigned long Extra parameter Return Returned query code Eagle Technology Copyright 2001 2002 www eagle co za 25 PCI 730 User Manual Eagle Technology Data Acquisition ACTIVEX CALL Long EDREADX GetUnread Parameter Type Description This function automatically queries the ADC driver buffer for the number of available samples Eagle Technology Copyright 2001 2002 www eagle co za 26 PCI 730 User Manual Eagle Technology Data Acquisition 5 Calibration Calibrating the PCI730 is simple task EDR Enhanced and the calibration software must be
24. nty does not apply to an ETDAQD that has been previously repaired altered extended by any other company or individual outside the premises of Eagle Technology e That a qualified person configure and install the ETDAQD and damages caused to a device during installation shall make the warranty void and null e The warranty will not apply to conditions where the ETDAQD has been operated in a manner exceeding its specifications Eagle Technology South Africa does not take responsibility or liability of consequential damages project delays damaging of equipment or capital loss as a result of its products Eagle Technology South Africa holds the option and final decision to repair or replace any ETDAQD Proof of purchase must be supplied when requesting a repair Eagle Technology Copyright 2001 2002 www eagle co za ii PCI 730 User Manual Eagle Technology Data Acquisition TABLE OF CONTENTS 1 INTRODUCTION Features Applications Key Specifications Software Support Contact Details 2 INSTALLATION Package Operating System Support Hardware Installation Software Installation Windows 98 2000 ME Post installation Windows NT Accessories B INTERCONNECTIONS 10 External Connectors 10 PCI730 10 j j onnector Pin Assignments PCI730 Koch Koch N Signal Definitions Analog Input Connections Kai ka LA A 4 PROGRAMMING GUIDE DR Enhanced API ke A Digital Inputs Outputs Reading
25. rt of your installation has been completed and ready to install the EDR Enhanced Software Development Kit e Run edreapi exe found on the Eagle CD Rom and follow the on screen instructions Windows NT Windows NT does not require any special setup procedure The Windows NT driver does not support plug and play If Windows 2000 detects a new device simply install a default driver or so called placeholder This will disable the device in the plug and play manager To install the Windows NT drivers simply run edrewinnt exe on the Eagle CD Rom This will automatically install the device drivers Restart your computer when done Open the EagleDAQ folder in the control panel to check if your installation was successful Accessories The PCI730 has got a wide variety of accessories that it can be connected too See the Eagle Technology catalog for more information Eagle Technology Copyright 2001 2002 www eagle co za 9 PCI 730 User Manual Eagle Technology Data Acquisition 3 Interconnections The PCI730 has two connectors an internal IDC40 connector for digital I O and counter timers And an external connection situated on the card s bracket for the analog in and analog out channels A wide variety of genuine accessories available from Eagle Technology also make interfacing to the PCI730 very easy Accessories are available in the form of cables screw terminals and application modules External Connectors PCI730 The PC
26. stem is busy Get DAC FIFO size Query number of counter timer channels Check if counter timer system is busy Query number of digital UO ports Query a specific port for capabilities Geta specific port s width Query number of interrupts sources Queries interrupt system s status Connect interrupt system to bus Check if an interruptis available Check number times interrupted Eagle Technology Copyright 2001 2002 www eagle co za 29 PCI 730 User Manual Eagle Technology Data Acquisition Error Codes EDRE_OK EDRE_FAIL EDRE_BAD_FN EDRE BAD SN EDRE_BAD DEVICE EDRE_BAD_OS EDRE_EVENT_FAILED EDRE_EVENT TIMEOUT EDRE_INT SET EDRE DA BAD_RANGE EDRE AD BAD CHANLIST EDRE_BAD_FREQUECY EDRE_BAD BUFFER SIZE EDRE_BAD PORT EDRE_BAD PARAMETER EDRE BUSY EDRE IO_FAIL EDRE_BAD_ADGAIN EDRE BAD QUERY EDRE BAD CHAN EDRE BAD VALUE EDRE BAD_CT EDRE BAD CHANUST EDRE BAD CONFIG EDRE_BAD MODE EDRE_HW_ERROR EDRE_HW_BUSY EDRE BAD BUFFER EDRE_REG_ERROR EDRE_OUT_RES EDRE IO PENDING Oo VO OO 4 en Un E GA F Fa Description Function successfully Function call failed Invalid function call Invalid serial number Invalid device Function not supported by operating system Wait on event failed Event timed out Interrupt in use DAC value out of range Channel list size out of range Frequency out of range Data passed by buffer incorrectly sized Port value out of range Bebe
27. tem The max size of the channel list is half the FIFO depth GainList Pointer to an The gain list contains an array of unsigned longs which specifies the setup for each channel according to unsigned long the previous list The table below shows the format for each channel Offset bits Description 0 Specifies the gain of the channel Value Gain Range 0 1 2 5V 1 05 5V 2 0 25 10V 8 Specifies the input mode of the channe Value Input Mode 0 Single Ended 1 Differentia Example Layout 11 10 9 8 7 6 5 4 3 2 1 10 M M M M G G G JG 3 2 1 0 1 6 5 4 3 2 1 0 ListSize Unsigned long This parameter determines the length the two previous arrays This is also the depth of the channel list that is programmed to the board 1 1 1 1Digital triggering If digital triggering is used pin EXT_TRIGGER is used This pin is active high and will start the ADC process when it is high The process will continue until it is stopped via software ACTIVEX CALL Long EDREADX Configure plong Channels plong Gains long ListSize Parameter Description Channels Pointer to a This is an array of longs that contains the channels to be sampled when scanning the ADC sub system long The max size of the channel list is half the FIFO depth Gains Pointer to a The gain list contains an array of longs that specifies the setup for each channel accor
28. tions quickly All operating system drivers utility and test software are supplied on the Eagle Technology CD Rom The latest drivers can also be Eagle Technology Copyright 2001 2002 www eagle co za 1 PCI 730 User Manual Eagle Technology Data Acquisition downloaded from the Eagle Technology website For further support information see the Contact Details section Contact Details Below are the contact details of Eagle Technology Eagle Technology PO Box 4376 Cape Town 8000 South Africa Telephone 27 021 423 4943 Fax 27 021 424 4637 i Website Eagle Technology Copyright 2001 2002 www eagle co za 2 PCI 730 User Manual Eagle Technology Data Acquisition 2 Installation This chapter describes how to install and configure the PCI730 for the first time Minimal configuration is necessary almost all settings are done through software The PCI BIOS or operating system will take care of all resource assignments Package PCI 725 726 730 package will contain the following e PCI725 PCI726 or PCI730 board e IDC40 DB37 extender cable e Software CD Rom Operating System Support PCI730 support the following operating systems Board Type Revision Operating Systems Driver Type PCI725 Revision 1 Windows 2000 98 ME XP WDM PnP PC1726 Revision 1 Windows 2000 98 ME XP WDM PnP PC1730 Revision 1 Windows 2000 98 ME XP WDM PnP Table 2 1 Operating System Support Hardware Installation T

Download Pdf Manuals

image

Related Search

Related Contents

M1 713 01 IBTronic XL Drillbox 17-10-08.pmd  scarica radiorama web 42 in formato pdf cliccando qui  Anglaise - Arabe - Black & Decker Service Technical Home Page  Smeg ALFA135BV Instruction Manual  Edbak SV17  Weider WEEVSY0923 User's Manual  Samsung HT-DM150 User Manual  Samsung 2043WM Керівництво користувача  GDR 10,8-LIProfessional  Michley Electronics LSS-202 sewing machine  

Copyright © All rights reserved.
Failed to retrieve file