Home
PC104-30FG Series PCI PnP Analog Input Board User`s Manual
Contents
1. 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 CHANLIST EDRE BAD CONFIG EDRE BAD MODE EDRE HW ERROR EDRE HW BUSY EDRE BAD BUFFER EDRE REG ERROR EDRE OUT RES EDRE IO PENDING Digital UO Codes DIOOUT DIOIN DIOINOROUT DIOINANDOUT Queries interrupt system s status Connect interrupt system to bus Check if an interrupt is available Check number times interrupted Description Function successfully Function call failed Invalid function call Invalid serial number Invalid device Wait on event failed Event timed out Interruptin 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 Invalid parameter value specified System busy IO 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
2. ANALOG GROUND VOLTAGE CALIBRATOR Figure 5 1 A D Calibration Connections Equipment Required e Precision voltage source Range 10V to 10V with an absolute accuracy better than 0 005 resolution 100 nV or better e Precision digital multimeter with 10V range absolute accuracy better than 0 0005 resolution 100 nV or better Setting the Reference Voltage Before calibrating the A D the reference voltages must be set properly This is normally done during manufacturing but if the voltage does not match re calibrate as follows 10V Connect the multimeter to analogue ground and 016 Pin 1 or C24 ve Side Indicated on the component by a line The voltage reading should be 10 0000V If the voltage is out of specification adjust VR4 Another method is to set DACs to 10V output Set DAC output to 10V using Waveview Connect SENSEO Pin 19 of AD CON Connector to DACO Pin 20 of AD CON Connector Measure the output voltage on the output of DACO ie Pin 19 of IDC26 Male Header AD CON Adjust until a voltage of 9 995V is reached Eagle Technology Copyright 2003 32 PC104 30FG User Manual Calibration Procedure Run the CAL30FG exe program installed in the PC104 30 directory A D Calibration for the PC104 30G PC104 30GA Boards Bipolar Mode a b d Adjust A D for maximum gain ie 1000 and apply 0 00mV to Channel 1 all other channels must be grounded to AGND Adjust VR1 PC1
3. Channel Unsigned long ADC Channel Gain Unsigned long 0 Gain x1 1 Gain x 10 2 Gain x 100 3 Gain x 1000 Unsigned long 0 5V to 45V Single Ended 1 0 to 10V Single Ended 2 10V to 10V Single Ended 3 5V to 5V Differential 4 0 to 10V Differential 5 10V to 10V Differential uVoltage Pointer to long Voltage read from channel Return Long Error Code 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 range and gain when reading the ADC channel Eagle Technology Copyright 2003 24 PC104 30FG User Manual Streaming Data You must first setup the A D sub system A D channels can be scanned The most important part is the channel and gain list This tells the hardware in which order to scan the channels and what gain to use Other settings include scanning frequency voltage range trigger source and mode Dual channel DMA is used when streaming data Please note that each DMA channel is 32K bytes thus data will be updated in blocks of 16384 samples If you are scanning at a very slow speed it might take a while before any data get be read from the driver buffer It is also important to understand the scanning mode Normal mode means the channels will be scanned one by one according to the channel list at t
4. Long EDRECTX SoftGate 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 3 Gate Configuration Eagle Technology Copyright 2003 22 PC104 30FG User Manual Analog Output The PC104 30FG A version has 4 x 12 bit DAC channels that support single write Writing to a DAC channel A single call is necessary to set a voltage on a DAC channel API CALL Long EDRE DAWrrite 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 long Channel long uVoltage The DAC channel and micro voltage is needed to set a DAC channel s voltage A return code will indicate if any errors occurred Eagle Technology Copyright 2003 23 PC104 30FG User Manual Analog Input Analog input is when a voltage is read from a specific A D channel or when A D channels are scanned in a specific sequence at a fixed rate 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
5. be repaired Counter Timer There are three counter timers on the PC104 30FG of which one are available for the user Two are used for A D timing The timers are compatible with the Intel 8254 counter timer device The 8254 counter timer datasheets can be used as reference for configuring the counter timer sub system Eagle Technology Copyright 2003 18 PC104 30FG User Manual 4 Programming Guide The PC104 30FG is supplied with a complete software development kit EDR Enhanced EDRE SDk comes with 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 make it possible to write one 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 PC104 30FG It has got functions for each basic sub system and is really easy to learn Figure 4 A EDR Enhanced Design Eagle Technology Copyright 2003 19 PC104 30FG User Manual Digital Inputs Outputs The PC104 30FG has 24 digital I O lines configured as x 8 bit ports The EDRE API supports auto direction configuration By writi
6. the PCI device is listed and working properly Now the first part 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 e 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 2003 11 PC104 30FG User Manual Figure 2 13 EAGLE DAQ Dialog EDR Enhanced Data Acquisition Properties Serial Number Device Index Name Board Type Driver Version Firmware Version Manufactured On Revision Base Address Interrupt Level ADC Channels DAC Channels DIO Ports 100000601 1 PC104 30F4 16 Ch A D 4 Ch D A B 93 1 1 2002 0 00 Not Available 6 1 4 3 La Eagle Technology Copyright 2003 12 PC104 30FG User Manual 3 Interconnections The PC104 30FG is designed so that there is a connector for analog signals and digital signals Pin Assignments The table below shows the pin assignments for the PCISOFG Pin Name Pin Name 1 CH1 2 CHO 3 CH3 4 CH2 5 CH5 6 CH4 7 CH7 8 CH6 9 CH9 10 CH8 11 11 12 CH10 13 CH13 14 CH12 15 CH15 16 CH14 17 AGND 18 AGND 19 SENSO 20 DACO 21 SENS1 22 DACI 23 SENS2 24 DAC2 25 SENS3 26 DAC3 Table 3 1 External Analog Connector IDC 26M Ea
7. 03 3 PC104 30FG User Manual Select Add a device Wizard Choose Tak Which harder lack da vou want parlam Figure 2 2 Step 2 Select Add a new device Add hemove Hardware Wizard Choose Denon Which deica dio you want to boubleshoot Figure 2 3 Step 3 Select No want to select the hardware from a list Eagle Technology Copyright 2003 PC104 30FG User Manual Add Remove Hardware Wirard Fmd Hee Hardware A nadcenm can gen deiecit bharkage Pai is mot Pag and Play Figure 2 4 Step 4 Select Other Device or Eagle Data Acquisition if it exists Add Rennie H er Wiz ond Hardware Type WPa type of hadse do pou vant In rebi Figure 2 5 Step 5 Eagle Technology Copyright 2003 PC104 30FG User Manual Select Have Disk Hardware Wirich dres do you want to ratai for this devins Figure 2 6 Step 6 Use the browse dialog to search for the file pc10430h inf Install From Disk Figure 2 7 Step 7 Eagle Technology Copyright 2003 PC104 30FG User Manual amp File reme z Mr Hawak medy Eernsma Figure 2 8 Step 8 The next dialog will display the model name of the board you are trying to install Add Bemaove Hardware Wizard Select a Device Driver wich diner do you erant bo naal for thee dece Select the manulecture and model of your d
8. 04 30FG Rev1B the instrumentation amplifier offset pot for output 800H Set A D for a gain of 1 and apply FS 2LSB to channel 1 ie 4 9988V for 5V or 9 9976V for 10V Adjust VR2 PC104 30FG Rev1c bipolar A D offset for an output code which flickers between 000H and 001H Set A D for a gain of 1 and apply FS 3 2LSB to channel 1 ie 4 9963 for 5V range or 9 9927V for 10V Adjust VR5 PC104 30FG Revlc gain pot for an output code which flickers between FFEH and FFFH Repeat the above steps until no further adjustment is required Monopolar Mode a b d Adjust A D for maximum gain ie 1000 and apply 0 00mV to Channel 1 all other channels must be grounded to AGND Adjust VR1 PC104 30FG Rev1B the instrumentation amplifier offset pot for output code OOOH Set A D for a gain of 1 and apply 5 2158 to channel 1 ie for 0 to 10V range it should be 1 22mV Adjust VR3 PC104 30FG Rev1B A D offset for an output code which flickers between 000H and 001H Set A D for a gain of 1 and apply FS 3 2LSB to channel 1 ie 9 9963V Adjust VR6 PC104 30FG Rev1B gain pot for an output code which flickers between FFEH and FFFH Repeat the above steps until no further adjustment is required A D Calibration for the PC104 30F PC104 30FA Boards Bipolar Mode 5V a b d Adjust A D for maximum gain ie 1000 and apply 0 00mV to Channel 1 all other channels must be groun
9. 2003 iii PC104 30FG User Manual Reading a counter onfiguring a counter ontrolling the counter gate Analog Output 23 N riting to DAC channel Analog Input 24 Reading a single voltage from a channel 24 tarting and Stopping the ADC process 28 5 CALIBRATION 31 A D Calibration 3 Requirements quipment Required etting the Reference Voltage alibration Procedure o N A D Calibration Software DACO to DAC3 Calibration Ge A CONFIGURATION CONSTANTS Lu Un Query Codes Error Codes 36 Digital I O Codes 36 ORDERING INFORMATION 37 Eagle Technology Copyright 2003 iv PC104 30FG User Manual Table of Figures Figure 2 1 Step Figure 2 2 Step Figure 2 5 Step Figure 2 6 Step Eagle Technology Copyright 2003 V PC104 30FG User Manual Table of Tables able 2 1 Operating System Support able 3 1 External Analog Connector IDC 26M able 3 2 Internal DIO CT Connector IDC 40M able 3 3 Signal definitions able 4 1 Counter Assignment able 4 2 Counter Configuration able 4 3 Gate Configuration able D D 1 Ordering Information Eagle Technology Copyright 2003 vi PC104 30FG User Manual 1 Introduction The PC104 30FG series PC104 bus architecture data acquisition boards They are available in two basic models the G and F series They can samples at 100kHz or 330kHz respectiv
10. 5V Differential 4 0 to 10V Differential 5 10V to 10V Differential ChanList Pointer to This is an array of unsigned longs that contains the channels to be sampled when an unsigned scanning the ADC sub system The max size of the channel list is 16 long GainList Pointer to This is an array of unsigned longs that contains the gains of channels to be an unsigned sampled when scanning the ADC sub system long ListSize Unsigned This parameter determines the length the two previous arrays This is also the long depth of the channel list that is programmed to the board Eagle Technology Copyright 2003 26 PC104 30FG User Manual ACTIVEX CALL Long EDREADX Configure plong Channels plong Gains long ListSize Parameter Type Description Channels Pointer to This is an array of unsigned longs that contains the channels to be sampled when an unsigned scanning the ADC sub system The max size of the channel list is 16 long Gains Pointer to This is an array of unsigned longs that contains the gains of channels to be an unsigned sampled when scanning the ADC sub system long ListSize Unsigned This parameter determines the length the two previous arrays This is also the long depth of the channel list that is programmed to the board The Frequency and ClockSource ADC ActiveX control must be setup before calling the configure function EDREADX Frequency The ADC sampling frequency WARNING In normal sampl
11. Board s serial number Long Error Code ACTIVEX CALL Long EDREADX Start Parameter Type Description API CALL Long EDRE_ADSiop ulng Sn Parameter Type Description ACTIVEX CALL Long EDREADX Stop Parameter Type Description Eagle Technology Copyright 2003 28 PC104 30FG User Manual Getting data from the driver buffer A single call is necessary copy data from the driver buffer to the user buffer API CALL Long EDRE_ADGetData ulng Sn plong Buf pulng BufSize Parameter Description Sn Unsigned long Board s serial number Buf Pointer to a long Buffer to copy micro voltages too buffer BufSize Pointer to an Size of buffer must be passed or number of unsigned long Samples requested The returned value will indicate 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 to copy micro voltages too buffer 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 Long Error Code Eagle Technology Copyright 2003 29 PC104 30FG User Manual 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 Sn ulng QueryCo
12. Models WDM driver types The operating systems are listed in the table below Board Revision Operating Systems Driver Type PC104 30FG Windows 2000 XP Table 2 1 Operating System Support Eagle Technology Copyright 2003 2 PC104 30FG User Manual Hardware Installation This section will describe how to install your PC104 30FG 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 e Remove the cover of the PC e Insert bracket screw and ensure that the board sits firmly in the PC 104 socket e Replace the cover of the PC e Reconnect all power cables and switch the power on e The hardware installation is now completed Software Installation Windows 2000 XP Installing the Windows 2000 XP device driver is a very straightforward task The board does support plug and play so Windows needs to be told that a new device was installed The Add New Hardware Wizard will be used for this task Click Start gt Settings gt Control Panel gt Add New Remove Hardware Adi Hardware Wirard Wolcome to the Add Remove Hardware Wizard Thi pou afd arrarew unplug and pour hardware dick Mets Cancel Figure 2 1 Step 1 Eagle Technology Copyright 20
13. Out of resources Waiting on 1 0 completion 1 1 1 1 1 1 1 f Vo F5 Description Portis an output Portis an input Port can be configured as in or out Portis an input and an output Function not supported by operating system Eagle Technology Copyright 2003 36 PC104 30FG User Manual n B Ordering Information For ordering information please contact Eagle Technology directly or visit our website www eagledag co za They can also be emailed at eagle eagle co za Description PC104 30FA 330kHz 16 Channel A D and 4x 12bit DACs PC104 30F 330kHz 16 Channel A D PC104 30GA 100kHz 16 Channel A D and 4x 12bit DACs PC104 30G 100kHz 16 Channel A D Table D B 1 Ordering Information Please visit our website to have a look at our wide variety of data acquisition products and accessories Eagle Technology Copyright 2003 37
14. PC104 30FG Series PCI PnP Analog Input Board User s Manual Eagle Town South Africa Copyrig PC104 30FG User Manual Analog Input Boards Data Acquisition and Process Control Eagle Technology 31 35 Hout Street Cape Town South Africa Phone 27 21 423 4943 Fax 27 21 424 4637 Email eagle eagle co za Eagle Technology Copyright 2003 i PC104 30FG User Manual 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 March 2003 Revision 1 0 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 warranty does not apply to an ETDAQD that has been previously repaired altered extended by a
15. Technology Copyright 2003 9 PC104 30FG User Manual DIP Switch Settings Base Address SW1 SW2 SW3 SW4 SW5 SW6 SW7 SW8 20H On On On On On On On Off 40H On On On On On On Off On 60H On On On On On On Off Off 80H On On On On On Off On On 300H On On On Of Off On On On 320H On On On Off Off On On Off 700H On On Off Off Off On On On 720H On On Off Off Off On On Off 1FAOH Off Off Off Off Off Off On Off 1FCOH Off Off Off Off Off Off Off On 1FEOH Off Off Off Off Off Off Off Off Post installation When done with the driver installation the device manager can be open to make sure the installation was a success e First make sure that the driver is working properly by opening the Device Manager e Check under the Eagle Data Acquisition list if your board is listed and working properly The picture below shows a typical board that is installed Eagle Technology Copyright 2003 10 PC104 30FG User Manual ww P aj BI Computer Sc Desk crees Raeren adapters a d DDHCD ROH kret SR Eigen m AT Board 81 E Floppe desk controller 9 Floppy de drives 1 contenders a d Kargboar da 4 P Mice andlother pointing devices i 9 Ng EY Forts LPT 4 Bard vhi ad Saree corre E Esser 9 Serisi Bue comin Figure 2 12 Device Manager e Clearly you can see that
16. YPORT DIOPORTWIDTH INTNUMSRC Description Query EDRE API major version number Query EDRE 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 Get ADC range Query number of DAC channels Query maximum DAC output frequency Check if DAC system is busy Get DAC FIFO size Query number of counter timer channels Check if counter timer system is busy Query number of digital I O ports Query a specific port for capabilities Get a specific port s width Query number of interrupts sources Eagle Technology Copyright 2003 35 PC104 30FG User Manual INTSTATUS INTBUSCONNECT INTISAVAILABLE INTNUMTRIG
17. compatible with the industry standard 8254 counter timer The table below shows all counters and their assigned function on the board Please note that only some are available for the user The 8254 datasheet has more information on the counter timer modes Counter Software Assigned Number Description User Counter 0 Table 4 1 Counter Assignment Writing the initial counter value A single call is necessary to write a counter s initial load value API CALL Long EDRE CTWrite ulng 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 Reading counter A single call is necessary to read a counter s current value API CALL Long EDRE_CTRead ulng Sn Ct pulng Value The serial number counter number and a pointer must be passed by the calling function A return code will indicate if any errors occurred The value buffer will hold the value read from the counter ACTIVEX CALL Long EDRECTX Read long Port The port number needs to be passed The returned value will either hold the error code or the value read from the counter If negative it means an error occurred otherwise it is the value rea
18. d from the counter Eagle Technology Copyright 2003 21 PC104 30FG User Manual Configuring a counter A single call is necessary to configure a counter API CALL Long EDRE CTConfig ulng Sn ulng Ct ulng Mode 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 Configure 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 parameter is used by the PC104 30FG The table below shows the options for each parameter Parameter Description Sn Serial Number Ct Counter Number 0 User Counter 0 Mode 8254 Counter Mode See 8254 datasheet for details Type 0 Binary Counting 16 bits 1 Binary Coded Decimal BCD Source 0 Internal 8MHz 1 External External connector Gate 0 Internal Softgate 1 External Table 4 2 Counter Configuration Controlling the counter gate A single call is necessary to control a counter s gate API CALL Long EDRE CTSoftGate ulng Sn ulng Ct Gate 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
19. de 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 Unsigned long Extra parameter Long Returned query code ACTIVEX CALL Long EDREADX GetUnread Parameter Type Description Number of samples available in the driver This function automatically queries the ADC driver buffer for the number of available samples Eagle Technology Copyright 2003 30 PC104 30FG User Manual 5 Calibration This chapter contains information to calibrate the A D and D A sub systems of the PC104 30FG The PC104 30FG is calibrated during the manufacturing test and therefore does not require recalibration under normal conditions However under extreme conditions or to optimize accuracy the board needs to be recalibrated Allow the host PC and the board to warm up for at least one hour before calibration A D Calibration Requirements e Calibration is done on channel 1 The recommended connector wiring is shown in Figure 5 1 e Calibration is performed with the board configured into its intended operating mode e All cables should be as short as possible Note that screened cable is preferable in order to minimize noise interference Eagle Technology Copyright 2003 31 PC104 30FG User Manual PCI30FG CHO CH2 CH15
20. ded to AGND Adjust VR1 PC104 30FG Rev1B the instrumentation amplifier offset pot for output code 800H Set A D for a gain of 1 and apply FS 3 2LSB to channel 1 ie 4 9963V Adjust VR7 PC104 30FG Rev1B gain pot for an output code which flickers between FFEH and FFFH Set A D for a gain of 1 and apply FS 2LSB to channel 1 ie 4 9988V Adjust VR3 PC104 30FG Rev1B bipolar A D offset for an output code which flickers between 000H and 001H Repeat the above steps until no further adjustment is required Note that steps 2 and 3 above are inter related and it therefore requires some expertise to enable Full Scale Convergence Eagle Technology Copyright 2003 33 PC104 30FG User Manual Bipolar Mode 10V a Adjust A D for maximum gain ie 1000 and apply 0 00mV to Channel 1 all other channels must be grounded to AGND Adjust VR1 PC104 30FG Rev 1B the instrumentation amplifier offset pot for output code 800H b Set A D for a gain of 1 and apply FS 3 2 LSB to channel 1 ie 9 9927V Adjust VR8 PC104 30FG Rev1B gain pot for an output code which flickers between FFEH and FFFH Set A D for a gain of 1 and apply 5 15 to channel 1 ie 9 9976V Adjust VR9 PC104 30FG Rev1B bipolar A D offset for an output code which flickers between 000H and 001H d Repeat the above steps until no further adjustment is required Note that steps 2 and 3 above are inter related and it therefore req
21. ely Addition to analog input they also have analog output digital input output and counter timer capabilities For this reason the PC104 30FG is an excellent all purpose data acquisition device with extensive analog input capabilities Features The PC104 30FG does have some very unique features and are short listed below 8 16 differential or 16 32 single ended A D inputs 330kHz or 100kHz sampling rate Software controlled input ranges and gains 12bit Resolution 3 x 8 bit I O ports 1 user counter timers Key Specifications A D resolution 12 bits D A resolution 12 bits DIO width 8 bits CT width 16 bits A D scan rate 100kHz or 330kHz Software Support The PC104 30FG 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 applications quickly All operating system drivers and utility are supplied on a CD Rom Eagle Technology Copyright 2003 1 PC104 30FG User Manual 2 Installation This chapter describes how to install and configure the PC104 30FG for the first time Minimal configuration is necessary almost all settings are done through software Package PC104 30FG package will contain the following e PC104 30FG board e EDR Enhanced Software Development Kit CD Rom Operating System Support The PCI104 30FG series support the Windows NT and Windows Driver
22. evice and then click Ned Il pou have a disk that contains Gre diver you wand bo ratai click Have Dick Figure 2 9 Step 9 Select the Next button Eagle Technology Copyright 2003 7 PC104 30FG User Manual Add Remove Hardware Wizard E Tat Hardware Instalstion indi P each natal Lo poa rev harama V Eagle Board Windows val une default gating bo ebal the for this hades device Feis dhe lon raren harjas click Med Bock Cancel Figure 2 10 Step 10 Select the Finish button to complete the installation fudd Remove Hardmare Wizard Completing the Add Remove Hardware Wizard The loliceang erases war installed Esje Goad Lreck your hadaa documentation ho see whaha vou herve D manal cordgun pour nieve harder For the bo work fou wall av bo abt the canut To wen onchange ths resources hu device click Fenomeen clare the sezacd click Figure 2 11 Step 11 Eagle Technology Copyright 2003 PC104 30FG User Manual Resource Setup After hardware installation you will have to setup the necessary resources for the PC104 30FG PC104 30FG Analog Board Properties Interrupt Request 07 Input Output Range 0700 07 on Current configuration v Use automatic settings Setup the interrupt and DMA channels Base address setup as 700 HEX as default Eagle
23. gle Technology Copyright 2003 13 PC104 30FG User Manual DGND GATE2 0072 OUTI CLK2 EXT_TRIG EXT_CLK 45V Table 3 2 Internal DIO CT Connector IDC 40M Signal Definitions This sections deal with all the signals abbreviations Description CH0 15 Analog input channel DAC0 3 Analog output channel SENSE0 3 Sensing line for analog output channel PA0 7 Port A on PPI PB0 7 PortB on PPI 0 7 Port C on PPI GATE1 Internal counter gate CLKO Internal counter clock input OUT Internal clock output GATE2 User counter 0 gate CLK2 User counter 0 input OUT2 User counter 0 output EXT_TRIG A D external trigger EXT CLK A D external clock Table 3 3 Signal definitions Eagle Technology Copyright 2003 14 PC104 30FG User Manual Analog Input The following three aspects of A D operation can be configured e A D input mode single ended or differential e A D voltage range e A D clock trigger A D Input Mode The PC104 30F FA G and GA models can provide either 16 single ended or eight differential inputs The use of differential inputs is recommended in environments with high levels of electrical noise when using long lines to connect the analogue inputs or for any input operating at a gain of greater than 10 Default power up configuration is for single ended inputs A D Voltage Range Setting On the G and GA models you can switch between 5V and OV to 10V must be used to achieve t
24. he 10V range see board silk screen for jumper settings for the G and GA models only On the F and FA models the range can be switched between 5 and 10V from software On the PC104 30 F G board you can refer to the text written on the silk screen layer with regard to jumper settings CHANGING JUMPER LK1 TO THE 20 V POSITION DOES NOT ENABLE YOU TO SELECT UNIPOLAR RANGE 0 TO 10 V Note that the default range setting is 5 to 5V Eagle Technology Copyright 2003 15 PC104 30FG User Manual Single Ended Inputs With single ended inputs connections share a common low reference that is connected to analog ground See figure below The advantage of such a connection is that you have a maximum number of inputs Its major disadvantage is the loss of common mode rejection obtainable from differential mode Single ended inputs are very sensitive to noise lead lengths should be kept as short as possible v e JE 788 i vol E AGND Figure 3 1 Single ended analog input Eagle Technology Copyright 2003 16 PC104 30FG User Manual Differential Inputs In differential input mode two multiplexer switches per channel are used The A D converter measures the difference in potential between the two channels Channels are paired to form a single differential input Channel 0 and channel 8 is used as channel 0 channels 1 and 9 etc To connect see diagram below It is a
25. he specified frequency Eagle Technology Copyright 2003 25 PC104 30FG User Manual Configuring the ADC subsystem for scanning This is the most complicated part of configuring the PC104 30FG 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 PC104 30FG The channels list size should always consist of 2 or more channel but not more then 16 If you only want to read one channel the same channel should be placed in the channels list twice API CALL Long EDRE_ADConfig ulng Sn pulng Freq ulng ClkSrc 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 Sn Unsigned Board s serial number long Freq Pointer to Sampling frequency The actual sampling frequency will be returned with this an unsigned parameter long CIKS rc Unsigned 0 Internal clock to A D clock trigger and to external trigger long 1 External trigger disconnected internal clock to A D clock trigger 2 External trigger to A D clock trigger internal clock disconnected 3 External trigger to gate 1 internal clock to A D clock trigger Unsigned 0 Normal Mode long 1 Burst Mode Unsigned 0 5V to 45V Single Ended long 1 0 to 10V Single Ended 2 10V to 10V Single Ended 3 5V to
26. ing mode channels are sampled sequentially according to the given channels list The time spacing between each channel is the same as the frequency in normal mode The maximum frequency is the same as the maximum speed of the board In burst mode the all channels in the channel list is converted as fast as possible depends on the A D converter speed every period The period is the same as the sampling frequency The maximum sampling frequency is the maximum frequency of the board divided by the number of channels in the channel list Frequency Example Normal Mode Burst Mode Frequency 100 000 Hz Max of Board 100 000 Hz Channel List Length 10 Frequency 20 000 Hz Time 10 uS Channel List Length 10 Time between channels 10 uS Max Frequency 2 000 Hz Time 500 uS Time between channels 10 uS ADC Rating Time between sets 50 uS Eagle Technology Copyright 2003 27 PC104 30FG User Manual EDREADX ClockSource ClockS ource 0 Internal clock to A D clock trigger and to external trigger 1 External trigger disconnected internal clock to A D clock trigger 2 External trigger to A D clock trigger internal clock disconnected 3 External trigger to gate 1 internal clock to A D clock trigger Starting and Stopping the ADC process A single call is necessary to start or stop the ADC process API CALL Long EDRE_ADSiart Sn Parameter _ Description Unsigned long
27. lso very important to know that each return connection must be referenced to analog ground CHO X RETS X 69 x 2 CH7 RET Ls e AGND R3 Figure 3 2 Differential Analog Inputs In differential mode all signal inputs to the PCI30FG must be referred to ground This can be done by connecting a 1 to 10 resistor from the low end of each input to ground Eagle Technology Copyright 2003 17 PC104 30FG User Manual Analog Output The analog outputs come with sense lines and it is important to make sure that they are connected to the correct channel If left unconnected the output will simple float at 10V or 10V The analog output range is 10V and is fully software configurable The EDR Enhanced driver support auto ranging and will always select the range with the best possible resolution For normal operation simply connect SENSEO to DACO OVERLOADING ANY DIGITAL I O LINE WILL CAUSE SERIOUS DAMAGE TO THE DIGITAL I O CHIP OPERATING OUTSIDE THE TTL VOLTAGE RANGE WILL CAUSE PERMANENT DAMAGE TO THE DIGITAL CONTROL CIRCUIT Digital Input Output The PCI30FG has got 3x8 bit digital I O ports that are fully configurable as inputs or outputs The digital I O uses a chip that is fully compatible with the Intel 8255 programmable peripheral interface Make sure not to overload the PPI because it will cause serious damage and will need to
28. ng 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 PC104 30FG each port is only 8 bits 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 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 ulng Sn ulng 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 2003 20 PC104 30FG User Manual Counters The counter sub system is supported by functions to Write Read and Configure There are 1 counters that are available to the user and are
29. ny 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 2003 ii PC104 30FG User Manual TABLE OF CONTENTS 1 INTRODUCTION Features Key Specifications Software Support 2 INSTALLATION Package Operating System Support Hardware Installation Software Installation Windows 2000 XP Resource Setup Post installation INTERCONNECTIONS wj Pin Assignments Signal Definitions Analog Input ingle Ended Inputs Differential Inputs Analog Output Digital Input Output ounter Timer E E eo E d PROGRAMMING GUIDE 19 EDR Enhanced API 19 Digital Inputs Outputs Reading the Digital Inputs riting to the Digital Outputs N riting the initial counter value 21 Eagle Technology Copyright
30. uires some expertise to enable Full Scale Convergence A D Calibration Software The program CAL30FG EXE supplied on the distribution disk automates the above procedure Note that for correct operation the set up information supplied in the first menu must be correct DACO to DAC3 Calibration In general you do not need to calibrate the DACs at all because it has already been done when adjusting the reference voltages ie usually during manufacturing However if you require a different full scale 10 down to 8V output on these DACS proceed as follows e Runthe CAL30FG exe program from the EDR sub directory e Select DAC calibration Alternatively you can run Waveview and set DACO with SENSEO shorted to DACO to maximum full scale ie in WaveView e Connect the multimeter to the output of DACO with SENSEO shorted to DACO and analogue ground e Adjust the reference pot PC104 30FG Rev 1B until you obtain the required voltage output Eagle Technology Copyright 2003 34 PC104 30FG User Manual A Configuration Constants Query Codes APIMAJ OR APIMINOR APIBUILD APIOS APINUMDEV 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 D3AMAXFREQ DABUSY DAFIFOSZ CTNUM CTBUSY DIONUMPORT DIOQR
Download Pdf Manuals
Related Search
Related Contents
RedMax SGC2300DL User's Manual Règlement PLU Marcilly/Tille DSH 700 / DSH 900 288291 288291 Samsung 720N Korisničko uputstvo H-DRILL - Reinhard Kaufmann Kenwood KTC-V800P User's Manual Manual cem1000 TOUT-EN-UN Resumen de Tesis Segovia y Aguirre y Pino, director de tesisM.Sc Sennheiser ME 64 Copyright © All rights reserved.
Failed to retrieve file