background image

PCI 703 User Manual 

Eagle Technology - Data Acquisition 

 

Eagle Technology © Copyright 2001-2004 –  www.eagledaq.com

 

28 

Query Codes 

This chapter explains query codes and their functions relating to the PCI703 series. It will 
show examples of typical query codes that can make custom application allot easier to 
develop and tailor made for the PCI703 boards. Please note that all examples or pseudo code 
will show the API call and not the ActiveX call. Use the section below to translate between the 
two different implementations. 
 

How to use query codes 

The appendix shows a list of query code that can be used. The function prototypes below 
show how to implement a query code for both the EDR Enhanced API and Utility ActiveX 
control. 
 

API Call   

Long EDRE_Query (ulng Sn, ulng QueryCode, ulng Param) 
 

Parameter 

Type 

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  

Long 

Returned query code 

 

ActiveX Call 

Long EDREUTLX.Query (long Code, long Param) 
 

Parameter 

Type 

Description 

Code 

Unsigned long 

Query code. See appendix 

Param 

Unsigned long 

Extra parameter. 

Return  

Long 

Returned query code 

 
 
The above functions are used to execute query codes that can do a variety of functions. The 
returned value will have the result of the query code. The query function can also execute 
functions or changes settings of the driver system. 
 

How to change the hardware FIFO depth  

The hardware FIFO depth can be set with a single query call. This also relates to the interrupt 
depth and data update rate. If sampling at maximum speed set this depth to max and for 
slower speeds, under a 1000 Hz to a lower level. 
 

PSEUDO BEGIN  
 
UI32 Sn=1000000001 /*32-bit unsigned integer - Serial Number*/ 
UI32 Depth=1000 /*32-bit unsigned integer - FIFO Depth, Max is 4095*/ 
I32 Status /*32-bit integer*/ 
 
Status=EDRE_Query(Sn, ADIRQLEVEL /*Code 142*/,Depth) 
If Status < 0 Then Error 
 
PSEUDO END 
 

Summary of Contents for PCI 703 Series

Page 1: ...PCI 703 Series PCI PnP Analog Board User s Manual PCI703 16 A PCI703 32 A PCI703 64 A PCI703S 8 A PCI703S 16 A Eagle Technology Cape Town South Africa Copyright 2001 2004 www eagledaq com...

Page 2: ...Acquisition Eagle Technology Copyright 2001 2004 www eagledaq com i Analog Boards Data Acquisition and Process Control Eagle Technology 31 35 Hout Street Cape Town South Africa Phone 27 21 423 4943 F...

Page 3: ...efect 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 D...

Page 4: ...ccessories 9 3 INTERCONNECTIONS 10 External Connectors 10 PCI703 16 A 10 Connector Pin Assignments 11 PCI703 16 A 11 PCI703 32 64 A 11 PCI703S 8 16 A 11 Cable Pin Assignments 12 Y Cable 1 PCI 703 16 A...

Page 5: ...ate 20 Analog Output 21 Writing to a DAC channel 21 Generating a Waveform 21 Analog Input 23 Reading a single voltage from a channel 23 Configuring the ADC subsystem for scanning 23 Digital triggering...

Page 6: ...32 Input Characteristics 32 Conversion Characteristics 32 Analog Output Characteristics 33 Output Characteristics 33 Conversion Characteristics Calibrated 33 Voltage Output Characteristics 33 Digital...

Page 7: ...PCI 703 User Manual Eagle Technology Data Acquisition Eagle Technology Copyright 2001 2004 www eagledaq com vi Table of Figures Figure 3 A PCI 703 Interconnections 10 Figure 4 A EDR Enhanced Design 17...

Page 8: ...ternal Connector SCSI 68 11 Table 3 2 Pinouts for PCI703 32 64 A External Connector SCSI 100 11 Table 3 3 Pinouts for PCI703S 8 16 A External Connector SCSI 68 12 Table 3 4 Y Cable 1 Analog Connector...

Page 9: ...Revision 2 2 compliant at 33MHz PCI Bus 3 3V compatible PCI Bus Master DMA Fully individually programmable analog in channels Analog out waveform generation support Sample and hold option Feature PCI...

Page 10: ...can be used in the following applications Vibration monitoring Transducer monitoring Automation and test equipment Signal generation Laboratory training Medical applications Key Specifications 14 bit...

Page 11: ...NT 2000 NTSys PCI703 16 A Revision2 WindowsNT 2000 98 ME NTSys WDMPnP PCI703 64 A Revision2 WindowsNT 2000 98 ME NTSys WDMPnP PCI703S 8 16 A Revision1 WindowsNT 2000 98 ME NTSys WDMPnP Table 2 1 Opera...

Page 12: ...tion 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 set...

Page 13: ...Eagle Technology Data Acquisition Eagle Technology Copyright 2001 2004 www eagledaq com 5 Select Search for a suitable driver for my device and select next Make sure only Specify a location is select...

Page 14: ...om 6 Select the browse button and search for the PCI703 inf file on the Eagle CD Rom The driver is normally located in the CDROM EDRE DRIVERS WDM PCI703 directory The PCI703 16 64 use the same driver...

Page 15: ...logy Copyright 2001 2004 www eagledaq com 7 Select next when found Select next again When done you might have to restart yourcomputer Post installation When done with the driver installation the devic...

Page 16: ...ng theDevice Manager Check under the Eagle Data Acquisition list if your board is listed and working properly See picture below Clearly you can see that the PCI device is listed and working properly F...

Page 17: ...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 ins...

Page 18: ...m Eagle Technology also make interfacing to the PCI703 very easy Accessories are available in the form of cables screw terminals and application modules External Connectors PCI703 16 A The PCI703 16 A...

Page 19: ...27 DIO1 52 ACH24 77 ACH36 3 ACH0 28 DIO5 53 ACH17 78 ACH44 4 ACH8 29 DIO2 54 ACH25 79 ACH37 5 ACH1 30 DIO6 55 ACH18 80 ACH45 6 ACH9 31 DIO3 56 ACH26 81 ACH38 7 ACH2 32 DIO7 57 ACH19 82 ACH46 8 ACH10 3...

Page 20: ...65 DIO7 15 ACH2 32 DIO4 49 ACH3 66 DIO5 16 ACH2 33 DIO2 50 ACH3 67 DIO3 17 ACH0 34 DIO0 51 ACH1 68 DIO1 Table 3 3 Pinouts for PCI703S 8 16 A External Connector SCSI 68 The following cable can be used...

Page 21: ...ACH50 52 ACH24 72 ACH58 13 ACH17 33 ACH51 53 ACH25 73 ACH59 14 ACH18 34 ACH52 54 ACH26 74 ACH60 15 ACH19 35 ACH53 55 ACH27 75 ACH61 16 ACH20 36 ACH54 56 ACH28 76 ACH62 17 ACH21 37 ACH55 57 ACH29 77 A...

Page 22: ...input channels or 8 32 differential input channels Analog Input Sensing AISENSE This input is used as a reference analog input ground This is normally used where the measurement point is very far fro...

Page 23: ...put Connections SAMPLE AND HOLD WARNING Don t feed any voltage into the PCI703S while the computer is switched off This will damage the analog input cicuitry The sample and hold devices will be damage...

Page 24: ...nology Data Acquisition Eagle Technology Copyright 2001 2004 www eagledaq com 16 10 18 26 26 50 58 11 19 27 27 51 59 12 20 28 28 52 60 13 21 29 29 53 61 14 22 30 30 54 62 15 23 31 31 55 63 Table 3 7 D...

Page 25: ...mmon sub systems The PCI703 can also be programmed at register level but it is not recommended A detailed knowledge of the PCI703 is needed and some knowledge about programming Plug and Play PCI devic...

Page 26: ...cessary 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...

Page 27: ...r or the value read If the value is negative an error did occur Configuring a counter A single call is necessary to configure a counter API CALL Long EDRE_CTConfig ulng Sn ulng Ct ulng Mode ulng Type...

Page 28: ...unter 2does not have a gate API CALL Long EDRE_CTSoftGate ulng Sn ulng Ct ulng Gate The serial number counter number and gate are needed to control a counter s gate A return code will indicate if any...

Page 29: ...op it Two modes are available FIFO non loop mode and pattern mode FIFO non loop the FIFO data only gets outputted once The DAC output voltage will be the same as the last value in the FIFO In pattern...

Page 30: ...d with micro voltages Return Long Error Code API CALL Long EDRE_DAControl ulng Sn ulng Channel ulng Command Parameter Type Description Sn Unsigned long Board sserialnumber Channel Unsigned long Channe...

Page 31: ...Pointertoalong 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...

Page 32: ...revious arrays This is also the depth of the channel list that is programmed to the board Digital triggering If digital triggering is used pin TRIG1 is used This pin is active high and will start the...

Page 33: ...and the channels in the sequence of the channel list The end result is that the time between samples is equal to 1 Frequency The PCI703S frequency relates to the total sampling frequency The effective...

Page 34: ...3 M 2 M 1 M 0 T3 T2 T1 T0 C 7 C 6 C 5 C 4 C 3 C 2 C 1 C 0 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...

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

Page 36: ...Example ADUNREAD This will tell you the number of available samples ADBUSY IstheADCsubsystembusy Param Unsigned long Extraparameter Return Long Returnedquerycode ActiveX Call Long EDREUTLX Query long...

Page 37: ...igned integer Serial Number I32 Status 32 bit integer Status EDRE_Query Sn ADBUFFSIZE Code 106 0 If Status 0 Then Error Print Driver buffer size Status PSEUDO END How to get the number of ADC channels...

Page 38: ...anced must be installed and the calibration software Both can be found on the Eagle Technology Software CD Rom EAGLECD EDRE APPS PCI700CAL PCI700CALIBRATIONSOFTWARE EXE The latest version will also be...

Page 39: ...0 200mV 100mV 50 00 0 100mV 50mV 100 00 0 50mV 25mV Input Coupling DC Maximum Working Voltage 11V relative to analog ground Over Voltage Protection 25V when power is on relative to analog ground 35V w...

Page 40: ...05 Programmable Gain Amplifier Characteristics Bandwidth 600 KHz at 5V input voltage swing Offset Voltage 200 uV Gain Error 0 008 Input Characteristics Input Signal Ranges Channel Gain Bipolar Range...

Page 41: ...Drive 5 mA Power on State 0V Digital Input Output Characteristics Number of Channels 8 independent programmable Compatibility TTL I O Characteristics Level Min Max Input Low Voltage 0V 0 8V Input Hig...

Page 42: ...Clock Source 20 MHz 100 KHz External I O Characteristics Level Min Max Input Low Voltage 0V 0 8V Input High Voltage 2 0V 5 25V Low Level Input Current 100 uA High Level Input Current 100 uA Output Hig...

Page 43: ...ain Codes PCI703 16 32 64 A Name Value Description GAIN 0 25 0 Gainof 10V NU GAIN 0 50 1 Gainof 5V 0 10V GAIN1 00 2 Gain of 1 2 5V 0 5V GAIN 2 50 3 Gain of 2 5 1V 0 2V GAIN 5 00 4 Gain 0f 5 500mV 0 1V...

Page 44: ...4 www eagledaq com 36 Name Value Description UNIPOLAR SINGLEENDED 0 Channel is single endedunipolarinput BIPOLAR SINGLEENDED 1 Channel is single ended bipolar input UNIPOLAR DIFFERENTIAL 2 Channel is...

Page 45: ...PCI 703 User Manual Eagle Technology Data Acquisition Eagle Technology Copyright 2001 2004 www eagledaq com 37 C C Layout Diagram...

Page 46: ...nalog input board PCI 703 32A 32 Channel analog input and 2 channel analog output board PCI 703 64 64 Channel analog input board PCI 703 64A 64 Channel analog input and 2 channel analog output board P...

Reviews: