Home
PCI-1741U User Manual
Contents
1. Figure 2 3 Device Manager PCI 1741U User Manual 12 Note If your card is properly installed you should see the device name of your card listed on the Device Manager tab If you see your device name listed but marked with an exclamation sign it means your card has not been correctly installed In this case remove the card device from the Device Manager by selecting its device name and press the Remove button Then go through the driver installation process again After your card is properly installed on your system you can now config ure your device using the Device Manager program that has itself already been installed on your system during driver setup A complete device installation procedure should include device setup configuration and test ing The following sections will guide you through the setup configura tion and testing of your device 2 4 Device Setup amp Configuration The Device Manager program is a utility that allows you to set up con figure and test your device and later stores your settings on the system registry These settings will be used when you call the APIs of Advantech Device Drivers Set Up the Device Step 1 To install the I O device for your card you must first run the Device Installation program by accessing Start Programs Advantech Automation Device Manager Advan tech Device Manager St
2. Write A D Control Register Bit 7 6 5 4 3 2 1 0 BASE CAL IRQ F F F H F E 7 BASE AD16 CN ONE IRQE GATE EXT PACE SW 6 12 TO FH N R The content of the status register of BASE 6 is the same as that of the control register except the F E F H F F and IRQ as below F E FIFO Empty flag This bit indicates whether the FIFO is empty 1 means that the FIFO is empty F H FIFO Half full flag This bit indicates whether the FIFO is half full 1 means that the FIFO is half full F F FIFO Full flag This bit indicates whether the FIFO is full 1 means that the FIFO is full IRQ Interrupt flag This bit indicates the interrupt status 1 means that an interrupt has occurred PCI 1741U User Manual 62 C 9 Clear Interrupt and FIFO BASE 8 and BASE 9 Writing data to either of these two bytes clears the interrupt or the FIFO Table C 11 Register to Clear Interrupt and FIFO Write Clear Interrupt and FIFO Bit 7 6 5 4 3 2 1 0 BASE 9 Clear FIFO BASE 8 Clear Interrupt C 10 D A Output Channel 0 BASE 10 and BASE 11 The PCI 1741U provides the innovative design as gate control for Ana log Output function It works as general Analog Output function when you disable the flag bit 3 DAO _LDEN of BASE 14 That means the data will be output immediately However when you enable the flag you need to read these
3. 14 Figure 2 5 The Device Setting Dialog Box _ 15 Device Testing u u en asked 2 5 1 Testing the Analog Input Function Figure 2 6 Analog Input tab 2 5 2 Testing the Analog Output Function Figure 2 7 Analog Output Tab eee 2 5 3 Testing Digital Input Function eeenene Figure 2 8 Digital Input Tab 2 5 4 Testing Digital Output Function Figure 2 9 Digital Output Tab 2 5 5 Testing Counter Function u Figure 2 10 Counter Tab ppp Signal Connections pp 22 VO Connectota tenna an terre mee prem nes 22 3 1 1 VO Connector Signal Description pe 22 Table 3 1 I O Connector Signal Description 22 3 1 2 Pin Assignment enenneeneneneseneenenenne Figure 3 1 1 O Connector Pin Assignments v Table of Contents 3 2 3 3 3 4 au Chapter EEE NR A Chapter Appendix A A 5 Appendix B Appendix C Cl C 2 C3 Analog Input Connections pp 25 3 2 1 Single ended Channel Connections pp 25 Figure 3 2 Single ended Channel Connections 25 3 2 2 Differential Channel Connections pp 26 Figure 3 3 Differential Connection Ground Signal 26 Figure 3 4 Differential Connection Floating Signal 27 Figure 3 5 Example 00 nrs iii Analog Output Connections Figure 3 6 Analog Output Connections 00 0 0 eee 28 Trigger Source Connections 3 4 1 Internal Pace
4. C 17 Programmable Timer Counter Registers BASE 24 BASE 26 BASE 28 and BASE 30 The four registers of BASE 24 BASE 26 BASE 28 and BASE 30 are used for the 82C54 programmable timer counter Please refer to Appendix D 82C54 Counter Chip Functions for detailed application information Note Users have to use a 16 bit word command to read write each register PCI 1741U User Manual 68 D APPENDIX 82C54 Counter Chip Function Appendix D 82C54 Counter Chip Func tion D 1 The Intel 82C54 The PCI 1741U uses one Intel 82C54 compatible programmable interval timer counter chip The popular 82C54 chip offers three independent 16 bit counters counter 0 counter 1 and counter 2 You can program each counter for maximum count values from 2 to 65535 The 82C54 has a maximum input clock frequency of 10 MHz The PCI 1741U provides 10 MHz input frequencies to the counter chip from an on board crystal oscillator Counter 0 On the PCI 1741U counter 0 can be a 16 bit timer or an event counter as chosen by the user When the clock source is set as an internal source counter 0 is a 16 bit timer Counter 1 amp 2 Counter 1 and counter 2 of the counter chip are cascaded to create a 32 bit timer for the pacer trigger A low to high edge of counter 2 output will trigger an A D conversion PCI 1741U User Manual 70 D 2 Counter Read Write and Control Registers The 82C54 programmable interval timer uses four registers at a
5. PCI 1741U 16 bit 200 kS s High Resolution Multifunction card User Manual Copyright The documentation and the software included with this product are copy righted 2004 by Advantech Co Ltd All rights are reserved Advantech Co Ltd reserves the right to make improvements in the products described in this manual at any time without notice No part of this man ual may be reproduced copied translated or transmitted in any form or by any means without the prior written permission of Advantech Co Ltd Information provided in this manual is intended to be accurate and reli able However Advantech Co Ltd assumes no responsibility for its use nor for any infringements of the rights of third parties which may result from its use Acknowledgements Microsoft Windows and MS DOS are registered trademarks of Microsoft Corp All other product names or trademarks are properties of their respective owners Part No 2003174100 Ist Edition Printed in Taiwan December 2004 PCI 1741U User Manual Product Warranty 2 years Advantech warrants to you the original purchaser that each of its prod ucts will be free from defects in materials and workmanship for two years from the date of purchase This warranty does not apply to any products which have been repaired or altered by persons other than repair personnel authorized by Advantech or which have been subject to misuse abuse accident or improper instal lation
6. 0 Disable 1 Enable C 13 Digital I O Registers BASE 16 and BASE 17 The PCI 1741U offers 16 digital input channels and 16 digital output channels These I O channels use the input and output ports at addresses BASE 16 and BASE 17 Table C 15 Register for Digital Input Read Digital Input Bit 7 6 5 4 3 2 1 0 BASE 17 DI15 DI14 DI13 DI12 DI11 DI10 DI9 DIS BASE 16 DI7 DI6 DI5 DI4 DIB DI2 DIM DIO Table C 16 Register for Digital Output Write Digital Output Bit 7 6 5 4 3 2 1 0 BASE 17 DO15 DO14 DO13 DO12 DO11 DO10 DOY DO8 BASE 16 DO DO6 DO5 DO4 DO3 DO2 DO1 DOO 65 Chapter C Note The default configuration of the digital output channels is logic 0 This avoids damaging external devices during system start up or reset since the power on status is set to the default value C 14 Calibration Busy flag BASE 18 Table C 17 Calibration Busy Check Flag Read Calibration Command and Data Bit 7 6 5 4 3 2 1 0 BASE 18 BUSY BUSY Calibration busy check flag 1 means busy 0 means not busy When busy is 1 program should wait until busy is 0 to write next com mand C 15 Calibration Register BASE 18 and BASE 19 The PCI 1741U offers Calibration registers BASE 18 and BASE 19 for user to calibrate the A D and D A Table C
7. 0 ID3 the most significant bit MSB of BoardID 31 Chapter 3 PCI 1741U User Manual 32 CHAPTER Software Overview This chapter gives you an overview of the software programming choices available and a quick reference to source codes examples that can help you be better informed when program ming After following the instructions given in Chapter 2 it is hoped that you feel comfortable enough to proceed fur ther Sections include Software Overview e Programming Choices e DLL Driver Programming Chapter 4 Software Overview 4 1 Software Overview Programming choices for DAS cards You may use Advantech applica tion software such as Advantech DLL driver On the other hand advanced users are allowed another option for register level program ming although not recommended due to its laborious and time consum ing nature 4 2 Programming Choices 4 2 1 DLL Driver The Advantech DLL Drivers software is included on the companion CD ROM at no extra charge It also comes with all the Advantech DAS cards Advantech s DLL driver features a complete I O function library to help boost your application performance The Advantech DLL driver for Win dows 98 2000 XP works seamlessly with development tools such as Visual C Visual Basic Borland C Builder and Borland Delphi 4 2 2 Register Level Programming Register level programming is reserved for experienced programmers who find it necessary to write co
8. 24 D7 D6 D5 D4 D3 D2 D1 DO Counter 1 27 26 D7 D6 D5 D4 D3 D2 D1 DO Counter 2 29 28 D7 D6 D5 D4 D3 D2 D1 DO Counter Control 31 30 D7 D6 D5 D4 D3 D2 D1 DO PCI 1741U User Manual 56 C 3 Ch Number and A D Data BASE 0 and BASE 1 C 3 1 BASE 0 and BASE 1 hold the result of A D con version data The 16 bits of data from the A D conversion are stored in BASE 1 bit 7 to bit 0 and BASE 0 bit 7 to bit 0 Table C 5 PCI 1741U Register for A D Data Read AID Data Bit 7 6 5 4 3 2 1 0 BASE 1 AD15 AD14 AD13 AD12 AD11 AD10 AD9 AD8 BASE 0 AD7 AD6 ADS AD4 AD3 AD2 AD1 ADO AD15 ADOResult of A D Conversion ADO The least significant bit LSB of A D data ADI5 The most significant bit MSB of A D data C 4 Software A D Trigger BASE 0 You can trigger an A D conversion by software the card s on board pacer or an external pulse BASE 6 Bit 2 to bit 0 select the trigger source see Section C 7 Control Register BASE 6 If you select software triggering a write to the register BASE 0 with any value will trigger an A D conversion C 5 A D Channel Range Setting BASE 2 All A D channels have the same input range controlled by the gain code G2 to GO and B U The B U control the input range is bipolar or unipolar Please refer to the input range Table C x The PCI 1741U could configure as 16 channels for single ended analog input or 8 channels for d
9. C9 C 10 C 11 C 12 C 13 C 14 C 15 C 16 C 17 data 57 Table C 5 PCI 1741U Register for A D Data 57 Software A D Trigger BASE 0 nennen 57 A D Channel Range Setting BASE 2 oe 57 Table C 6 Register for A D Channel Range Setting 57 Table C 7 Gain Codes for PCI 1741U oo 58 MUX Control BASE 4 and BASES5 eee 59 Table C 8 Register for Multiplexer Control 59 Control Register BASET6 Ne 60 Table C 9 Control Register RN 60 Status Register BASE 6 and BASE 7 eseese 62 Table C 10 Status Register RN 62 Clear Interrupt and FIFO BASE 8 and BASE 9 63 Table C 11 Register to Clear Interrupt and FIFO 63 D A Output Channel 0 BASE 10 and BASE 11 63 Table C 12 Register for Load D A Channel 0 Data 63 D A Output Channel 0 BASE 10 and BASE 11 64 Table C 13 Register for D A channel 0 data 64 D A Reference Control BASEF 14 pe 64 Table C 14 PCI 1741U Register for D A Ref Control 64 Digital I O Registers BASE 16 and BASE 17 65 Table C 15 Register for Digital Input 65 Table C 16 Register for Digital Output 65 Calibration Busy flag BASE 18 neeesser 66 Table C 17 Calibration Busy Check Flag 66 Calibration Register BASE 18 and BASE 19 66 Table C 18 Calibration Command and Data Register 66 Table C 19 Calibration Comm
10. Pacer Clock Output This pin pulses once for each pacer clock when turned on If A D conversion is in the pacer trig ger mode users can use this signal as a synchronous signal for other applica tions A low to high edge triggers A D conversion to start TRG_GATE DGND Input A D External Trigger Gate When TRG _GATE is connected to 5 V it will enable the external trigger signal to input When TRG _GATE is connected to DGND it will disable the external trigger signal to input EXT_TRG DGND Input A D External Trigger This pin is external trigger signal input for the A D conver sion A low to high edge triggers A D conversion to start 12V DGND Output 12 VDC Source 5V DGND Output 5 VDC Source 23 Chapter 3 3 1 2 Pin Assignment AI0 Al2 Al4 Al6 AIS AI10 All2 All4 AIGND AOO0 REF A00 OUT AOGND DID DI2 DI4 DI6 DIE DI10 DI12 DIl4 DGND DOO DO2 D04 DO6 DOs DO10 D012 D014 DGND 9 8 7 6 5 4 3 2 1 12V Figure 3 1 I O Connector Pin Assignments PCI 1741U User Manual 24 3 2 Analog Input Connections 3 2 1 Single ended Channel Connections The single ended input configuration has only one signal wire for each channel and the measured voltage Vm is the voltage of the wire as ref erenced against the common ground A signal source without a local ground is also called a floating source It is fairly simpl
11. 6 9 x 3 9 Power Consump Typical 5 V 850 mA tion 12 V 600 mA Max 5V I1A 12 V 700 mA Temperature Operation 0 60 C 32 158 F refer to IEC 68 2 1 2 Storage 20 85 C 4 185 F Relative Humidity 5 95 RH non condensing refer to IEC 68 2 3 Certification CE certified 47 Appendix A PCI 1741U User Manual 48 Appendix B Block Diagram aS Address Decoder PCI Controller 16 bit Digital Output t INT E 1 Digital Input AD amp D A Status mt 16 bit D A Output 0 N sunaomao l COUNTER CNTO_OUT gt 10MH2100 ee ENTO GATE IRQ Control AKH Logic COUNTER 1 10 MHz osc CHTOLCLK i ee COUNTER 16 bit A D 2 PACER_OUT Convertor AD Trigger Logic EG i STR t o 4 ee van m Multiplexer Channel Scan Logic 16 S E e or bd 8 DIFF e 4 iu PCI 1741U User Manual 50 Appendix C Register Structure amp Format C 1 Overview PCI 1741U is delivered with an easy to use 32 bit DLL driver for user programming under the Windows 98 2000 or XP operating systems We advise users to program the PCI 1741U using the 32 bit DLL driver pro vided by Advantech to avoid the complexity of low level programming by register The most important consideration in programming the PCI 1741U at the register level is to understand the function of the card s registers The information in the following sections is provided only for users
12. A 1 Analog Input Channels 16 single ended or 8 differential Resolution 16 bit FIFO Size 1K samples Max Sampling 200 kS s Rate Input range and Gain 0 5 1 2 4 8 Gain List Unipolar N A 0 10 0 5 0 2 5 0 1 25 Bipolar 10 5 2 5 1 25 0 625 Bandwidth for Gain 0 5 1 2 4 8 PGA MHz i Bandwidth 4 0 4 0 2 0 15 0 65 Common mode 11 V max operational voltage Max Input voltage 20 V protection Input Impedance 100 MQ 10pF Off 100 MQ 100pF On Accuracy DC DNLE 1LSB INLE 1LSB Zero Offset error Adjustable to 1 LSB Gain 0 5 1 2 4 8 Gain 0 03 0 02 0 02 0 03 0 04 error FSR AC THD 90 dB ENOB 13 5 bits Clocking and Trigger Software on board programmable pacer or Trigger Inputs Mode external A D 200 kHz max 2 328mHz min pacer clock PCI 1741U User Manual 44 Note The sampling rate depends on the computer hard ware architecture and software environment The rates may vary due to programming language code efficiency CPU utilization and so on A 2 Analog Output Channels 1 Resolution 16 bit Operation mode Single output Throughput 200 kS s max per channel FSR Output Range Using 0 5V 0 10 V 5 5V 10 10V Internal amp Exter Internal nal Reference Reference Using 0 x V x V 10 lt x lt 10 External Reference x x
13. Advantech assumes no liability under the terms of this warranty as a consequence of such events Because of Advantech s high quality control standards and rigorous test ing most of our customers never need to use our repair service If an Advantech product is defective it will be repaired or replaced at no charge during the warranty period For out of warranty repairs you will be billed according to the cost of replacement materials service time and freight Please consult your dealer for more details If you think you have a defective product follow these steps 1 Collect all the information about the problem encountered For example CPU speed Advantech products used other hardware and software used etc Note anything abnormal and list any onscreen messages you get when the problem occurs 2 Call your dealer and describe the problem Please have your man ual product and any helpful information readily available 3 Ifyour product is diagnosed as defective obtain an RMA return merchandize authorization number from your dealer This allows us to process your return more quickly 4 Carefully pack the defective product a fully completed Repair and Replacement Order Card and a photocopy proof of purchase date such as your sales receipt in a shippable container A product returned without proof of the purchase date is not eligible for war ranty service 5 Write the RMA number visibly on the outside of the package a
14. Al 1 25V input range 8 Use AO CHO to calibrate Al 0 625V input range 9 Use AO CHO to calibrate Al 0 to 10V input range 10 Use AO CHO to calibrate Al 0 to 2 5V input range 7 11 Use AO CHO to calibrate Al 0 to 1 25 input range 5 Select Calibration type AI or AO AI calibration this card calibra tion needs 11 procedures 1 11 AO calibration this card calibra tion needs 4 procedures 1 4 6 Click Start to start calibration The first calibration procedure is enabled 7 Auto calibration is finished IMC x r Calibration instructions Calbration type Before you start the calibration procedure please adjust the reference voltage on board first Press Start button to start the calibration process cameo a0 r Calibration procedure NV 1 PGA offset calibration NV 2 Use on board reterence to calibrate Al 5V input range KV 3 Use On board referenceto calibrate Al 0 to 5V input range N 4 Use Al 5V input range to calibrate AO CHO 5 Use AO CHO to calibrate Al 10V input range N 6 Use AO CHO to calibrate Al 2 5V input range N 7 Use AO CHO to calibrate Al 1 25V input range NV 8 Use AD CHO to calibrate Al 0 625V input range NV 3 Use AD CHO to calibrate Al 0 to 10V input range NV 10 Use AD CHO to calibrate Al 0 to 2 5V input range NV 11 Use AD CHD to calibrate Al 0 to 1 28V input range PCI 1741U User Manual 42 Appendix A Specifications
15. Description of your peripheral attachments Description of your software OS version software etc A complete description of the problem The exact wording of any error messages Packing List Before setting up the system check that the items listed below are included and in good condition If any item does not accord with the table please contact your dealer immediately e 1x PCI 1741U card e 1x Companion CD ROM DLL driver included e 1x User Manual This manual PCI 1741U User Manual iv Chapter Chapter Chapter Do m ns my iD N 2 4 2 5 3 3 1 Contents Introduction pe 2 Introduction pe Features nee 1 2 1 Auto Calibration Function 1 22 BoardID seire Eor EEEa EAS 1 2 3 Plug and Play Function pp 3 1 2 4 On board FIFO Memoty pp 3 1 2 5 On Board Programmable Timer Counter 3 Installation Guide se Figure 1 1 Installation Flow Chart eeee 5 Software ee neun an ee rennen AcceSsSoOTlieS pe 1 1 PCL 10168 Wiring Cable nne 1 5 2 ADAM 3968 Wiring Boards 15 3 PEEB 8710 2 2 2 222 2 Rasen Installation ee S Unpacking u Rense 8 Driver Installation 4 9 Figure 2 1 Setup Screen eensnsnssensensenenennennsensennn 9 Figure 2 2 Driver Setup ee tc 10 Hardware Installation pe 11 Figure 2 3 Device Manager RN 12 Device Setup amp Configuration Figure 2 4 Device Manager Dialog Box
16. Step 7 Connect appropriate accessories 68 pin cable wiring terminals etc if necessary to the PCI card Step 8 Replace the cover of your computer chassis Re connect the cables you removed in step 2 Step 9 Plug in the power cord and turn on the computer 11 Chapter2 Note If you installed the card without installing the DLL driver first Windows 98 will recognize your card as an unknown device after rebooting and will prompt you to provide the necessary driver You should ignore the prompting mes sages just click the Cancel button and set up the driver according to the steps described in 2 2 Driver Installation After the PCI 1741U card is installed you can verify whether it is prop erly installed on your system in the Device Manager 1 Access the Device Manager through Start Control Panel System Device Manager 2 The device name of PCI 1741U should be listed on the Device Manager f evice Manager D Action View lem a HM Advantech DA amp C I O cards HB Advantech PCI1741 Device Computer amp Disk drives Display adapters JS DYDICD ROM drives Floppy disk controllers IDE ATA ATAPI controllers ER Keyboards TA Mice and other pointing devices 3 Monitors EF Network adapters oy Ports COM amp LPT g Sound video and game controllers m System devices Universal Serial Bus controllers
17. TOUCH the exposed metal pins of the connector or the electronic com ponents Note Keep the antistatic bag for future use You might need the original bag to store the card if you have to remove the card from the PC or transport it else where 2 2 Driver Installation We recommend installing the driver before you plug the PCI 1741U Card into your system since this will guarantee a smooth installation process The 32 bit DLL driver Setup program for the PCI 1741U card is included on the companion CD ROM that is shipped with your DAS card package Please follow the steps below to install the driver software Step 1 Insert the companion CD ROM into your CD ROM drive Step 2 The Setup program will be launched automatically if you have the Autorun function enabled on your system When the Setup program is launched you ll see the following setup screen z Your Platform Parmer AD ANTECH k WASG Device Driver o DAVEA Figure 2 1 Setup Screen 9 Chapter 2 Note Ifthe autoplay function is not enabled on your computer use Windows Explorer or Windows Run command to execute SETUP EXE on the companion CD ROM Step 3 Select the Installation option then the Individual Drivers option Step 4 Select the specific device then just follow the installation instruc tions step by step to complete your device driver setup AD ANTECH DA amp C Device Driver CD i x ea A Fullinstallation A Back _Ex
18. e000H Digital input Digital output Analog input Analog output Counter Channel 0 Sampling rate 500ms Counting value 0 Event counting Pulse out Pulse frequency 1 KHz 4 gt Figure 2 10 Counter Tab Only after your card device is properly set up configured and tested can the device installation procedure be counted as complete After the device installation procedure is completed you can safely proceed to the next chapter Signal Connections PCI 1741U User Manual 20 CHAPTER Signal Connections Maintaining signal connections is one of the most important factors in ensur ing that your application system is sending and receiving data correctly A good signal connection can avoid unnecessary and costly damage to your PC and other hardware devices This chapter provides useful information about how to connect input and output signals to PCI 1741U via the I O con nector Sections include e I O Connector e Analog Input Connections e Analog Output Connections Trigger Source Connections e Field Wiring Considerations Chapter 3 Signal Connections 3 1 I O Connector The I O connector on the PCI 1741U is a 68 pin connector that enables you to connect to accessories with the PCL 10168 shielded cable Fig 3 1 shows the pin assignments for the 68 pin I O connector on the PCI 1741U and table 3 1 shows the I O connector signal description 3 1 1 VO Connector S
19. two registers BASE 10 and BASE 11 to output the data to the Analog Output channel Table C 12 Register for Load D A Channel 0 Data Read Load D A Channel 0 data Bit 7 6 5 4 3 2 1 0 BASE 11 BASE 10 63 Chapter C C 11 D A Output Channel 0 BASE 10 and BASE 11 The write only registers of BASE 10 and BASE 11 accept data for D A Channel 0 output Table C 13 Register for D A channel 0 data Write D A Output Channel 0 Bit 7 6 5 4 3 2 1 0 BASE 11 DA15 DA14 DA13 DA12 DA11 DA10 DA9 DA8 BASE 10 DA7 DA6 DAS DA4 DA3 DA2 DA1 DAO DA15 DAO Digital to analog data DAO LSB of the D A data DA15 MSB of the D A data C 12 D A Reference Control BASE 14 The write only register of BASE 14 allows users to set the D A reference source Table C 14 PCI 1741U Register for D A Reference Control Write D A Output Channel 1 Bit 7 6 5 413 2 1 0 BASE 15 BASE 14 DAO_LDEN DAO I E DAO_B U DAO_5 10 DA0_5 10 The internal reference voltage for the D A output channel 0 0 5V 1 10V DAO_B U for D A output channel 0 0 Bipolar 1 Unipolar PCI 1741U User Manual 64 DAO_I E Internal or external reference voltage for D A output channel 0 0 Internal source 1 External source DA0_LDEN for Gate Control of D A output channel 0 Please refer to C 10 and C 11
20. 1736UP lt Advantech PCI 1741 Import 3 Advantech PCI 1747 3 Advantech PCI 1750 Export 3 Advantech PCI 1751 Me Adnan DCL 1767 gt 2 Click the Setup button open PCI 1741U device setting dialog PCI 1741U User Manual 40 PCI 1741U Device Setting Base Address E000 Hex Interrupt Channel B Single Differential Single Ended x D A Voltage Ref Channel 0 configuration External Internal Calibration Cancel About Click the Calibration button start calibration procedure Step 0 you should first adjust wR1 until the reference voltage on TP4 has reached 5 0000 Cancel After VR1 is adjusted and the reference voltage on TP4 has reached 5 0000V click Next gt to view the calibration dialog box 41 Chapter 5 Calibration j xj r Calibration instructions Calibration type Before you start the calibration procedure please adjust the reference voltage on board first 5 Press Start button to start the calibration process Al Al amp A0 a0 Calibration procedure 1 PGA offset calibration 2 Use on board reference to calibrate Al 5V input range 3 Use On board reference to calibrate Al 0 to 5V input range 4 Use Al 5V input range to calibrate AD CHO 5 Use AO CHO to calibrate Al 10V input range 6 Use AO CHO to calibrate Al 2 5V input range 7 7 Use AD CHO to calibrate
21. 18 Calibration Command and Data Register Write Calibration Command and Data Bit 7 6 5 4 3 2 1 0 BASE 19 CM3 CM2 CM1 CMO BASE 18 D7 D6 D5 D4 D3 D2 D1 DO D7 to DOCalibration data register DO LSB of the calibration data D7 MSB of the calibration data PCI 1741U User Manual 66 The calibration data register set the value from 0 to 255 providing 256 steps variation for calibration command CM3 to CM0Calibration command register CMO LSB of the calibration command CM3 MSB ofthe calibration command Table C 19 lists the command codes for PCI 1741U Table C 19 Calibration Command Codes Meaning Command Code CM3 CM2 CM1 CMO A D bipolar offset adjust 0 0 0 0 A D unipolar offset adjust 0 0 0 1 PGA offset adjust 0 0 1 0 A D gain adjust 0 0 1 1 D A 0 gain 1 adjust 10 V 0 1 0 0 D A 0 gain 2 adjust 5 V 0 1 0 1 D A 0 bipolar offset adjust 0 1 1 0 D A 0 unipolar offset adjust 0 1 1 1 Note Users have to follow the calibration procedure to calibrate the PCI 1741U 67 Chapter C C 16 BoardID Registers BASE 20 PCI 1741U offers a BoardID register at BASE 20 With correct Board ID settings user can easily identify and access each card during hardware configuration and software programming Table C 20 Register for BoardID Read Board ID Bit 7 6 5 4 3 2 1 0 BASE BD3 BD2 BD1 BDO 20
22. 2 Features The Advantech PCI 1741U provides users with the most requested mea surement and control functions as below 16 bit AI AO high resolution 200 kS s sampling rate Auto calibration function 16 S E or 8 Diff Al Unipolar Bipolar input range 1K samples FIFO for AI Universal PCI bus support 3 3V or 5V PCI bus signal Board ID switch 1 2 1 Auto Calibration Function The PCI 1741U provides an auto calibration function with an calibration utility The built in calibration circuitry of the PCI 1741U corrects gain and offset errors in analog input channels thereby eliminating the need for external equipment and user adjustments PCI 1741U User Manual 2 1 2 2 BoardID The PCI 1741U has a built in DIP switch that helps define each card s unique ID when multiple PCI 1741U cards have been installed on the same PC chassis The BoardID setting function is very useful when build ing a system with multiple PCI 1741U cards With the correct BoardID settings you can easily identify and access each card during hardware configuration and software programming 1 2 3 Plug and Play Function The PCI 1741U is a Plug and Play device which fully complies with PCI Specification Rev 2 2 During card installation there is no need to set jumpers or DIP switches Instead all bus related configurations such as base I O address and interrupt are automatically done by the Plug amp Play function 1 2 4 On board FIFO Memory PCI 1741U provi
23. 9 18 BUS Y Board ID 21 20 BD3 BD2 BD1 BDO N A 23 22 Counter 0 25 24 D7 D6 D5 D4 D3 D2 D1 DO Counter 1 27 26 D7 D6 D5 D4 D3 D2 D1 DO Counter 2 29 28 D7 D6 D5 D4 D3 D2 D1 DO N A 31 30 PCI 1741U User Manual 54 Table C 3 PCI 1741U Register Format Part 1 Base Write ee ee ee Software A D Trigger 0 A D Channel Range Setting S D B U G2 G1 GO Multiplexer Control 5 Stop channel Start channel A D Control Register CAL AD16 CNTO ONE IRQE GATE EXTO PACE SW 112 FH N R Clear Interrupt and FIFO Clear FIFO Clear interrupt D A Output Channel 0 11 DA15 DA14 DA13 DA12 DA11 DA10 DA9 DA8 10 DA DA6 DA5 DA4 DA3 DA2_ DA1 DAO 13 12 D A Control Register 15 14 DAO_ DAO_ DAO_ DAO LDEN VE B U 5 10 J3 Chapter C Table C 4 PCI 1741U Register Format Part 4 Base Write an 7 6 5 4 3 2 1 0 Digital Output 17 DO15 DO14 DO13 DO12 DO11 DO10 DOI9 DO8 16 DO DO6 DO5 DO4 DO3 DO2 DO1 DOO Calibration Register 19 CM3 CM2 CM1 CMO 18 D7 D6 D5 D4 D3 D2 D1 DO N A 21 20 N A 23 22 Counter 0 25
24. Control Register Write AID Status Register Bit 7 6 5 4 3 2 1 0 BASE 7 CAL BASE 6 AD16 12 CNTO ONE FH IRQEN GATE EXT PACER SW Software trigger enable bit PACER Pacer trigger enable bit External trigger enable bit SW 1 enable 0 disable 1 enable 0 disable EXT 1 enable 0 disable PCI 1741U User Manual 60 Note Users should not enable SW PACER and EXT con currently GATE External trigger gate function enable bit 0 Disable 1 Enable IRQEN Interrupt enable bit 0 Disable 1 Enable ONE FH Interrupt source bit 0 Interrupt when an A D conversion occurs 1 Interrupt when the FIFO is half full CNTO Counter 0 clock source select bit 0 The clock source of Counter 0 comes from the internal clock 1 MHz 1 The clock source of Counter 0 comes from the external clock maxi mum up to 10 MHz AD16 12Analog Input resolution selection bit 0 16 bit 1 12 bit CAL Analog I O calibration bit 0 Normal mode All analog input and outputs channels are connected to 68 pin SCSI U connector respectively 1 A D and D A calibration mode The wiring becomes that AIO is connected to 0 V AGND AR is con nected to 5 V reference AlI4 is connected to AOO automatically 61 Chapter C C 8 Status Register BASE 6 and BASE 7 The registers of BASE 6 and BASE 7 provide information for A D con figuration and operation Table C 10 Status Register
25. V x V 10 lt x lt 10 Accuracy DC DNLE 1LSB monotonic INLE 1LSB Zero Offset error Adjustable to 1 LSB Gain Full scale error Adjustable to 1 LSB Dynamic Perfor Settling 5us to 4 LSB of FSR mance Time Slew Rate 20 V us Drift 10 ppm C Driving Capability 20mA Output Impedance 0 1 Q max 45 Appendix A A 3 Digital Input Output Input channels 16 Output channels 16 Number of ports 2 Input voltage Low 0 8 V max High 2 0 V min Output voltage Low 0 5 V max 24 mA sink High 2 4 V min 15 mA source A 4 Counter Timer Counter chip 82C54 or equivalent Channels 3 channels 2 channels are permanently config ured as programmable pacers 1 channel is free for user application Counter 0 16 bit counter Counter 1 2 Cascade as a 32 bit clock divider for pacer clock for A D conversion Resolution 16 bit Base Clock Channel 1 10MHz Channel 2 Takes input from output of channel 1 Channel 0 Internal 100 kHz or external Max 10 MHz Compatibility TTL level Clock Input Low0 8 V max High2 0 V min Gate Input Low0 8 V max High2 0 V min Counter Output Low0 5 V max 24 mA sink High2 4 V min 15 mA source PCI 1741U User Manual 46 A 5 General I O Connector 68 pin SCSI II female Type Dimensions 175 x 100 mm
26. age or high current running through it try to keep a safe dis tance between them Or you should place the signal cable at a right angle to the power line to minimize the undesirable effect The signals transmitted on the cable will be directly affected by the qual ity of the cable In order to ensure better signal quality we recommend that you use the PCL 10168 shielded cable 29 Chapter 3 3 6 BoardiD Switch Settings The PCI 1741U card has one Board ID switch setting The following image shows the layout of PCI 1741U PCI 1741U series BOARD ID sw Figure 3 7 Jumpers and Switch Locations The PCI 1741U has a built in DIP switch SW1 which is used to define each the BoardID You can determine the BoardID switch on the register When there are multiple cards on the same chassis this BoardID switch setting function is useful for identifying each card device number through BoardID switch The factory setting for the PCI 1741U BoardID switch is 0 If you need to adjust it to other BoardID switchs set SW1 while referring to Table 3 2 Table 3 2 BoardID Setting ID3 ID2 ID1 ID0 Board ID 1 1 1 1 0 1 1 1 0 1 1 1 0 1 2 1 1 0 0 3 1 0 1 1 4 1 0 1 0 5 PCI 1741U User Manual 30 Table 3 2 BoardID Setting 1 0 0 1 6 1 0 0 0 7 0 1 1 1 8 0 1 1 0 9 0 1 0 1 10 0 1 0 0 11 0 0 1 1 12 0 0 1 0 13 0 0 0 1 14 0 0 0 0 15 Note On 1 Off
27. and Codes 67 BoardID Registers BASE 20 nennen 68 Table C 20 Register for BoardID pp 68 Programmable Timer Counter Registers BASE 24 BASE 26 BASE 28 and BASE 30 68 Appendix D D 1 D 2 D 3 82C54 Counter Chip Function 70 The Intel 82C54 2 28 et feast cp ace ee 70 Counter Read Write and Control Registers 71 Table D 1 Counter registers pe 71 Counter Operating Modes 74 vii Table of Contents MIC 3780 User Manual viii CHAPTER Introduction This chapter introduces PCI 1741U and shows how to install the software It also has information on useful accesso ries Sections include Introduction e Features Installation Guide e Software Accessories Chapter 1 Introduction 1 1 Introduction Thank you for buying the Advantech PCI 1741U PCI card PCI 1741U is a powerful high resolution multifunction DAS card for the PCI bus Its sampling rate of up to 200 kS s and 16 bit resolution fulfill the needs of most data acquisition applications PCI 1741U provides 16 single ended or 8 differential analog input channels two 16 bit D A output channels 16 digital input output channels and one 10 MHz 16 bit counter channel The following sections will provide further information about features of the multifunction cards a quick installation guide and some brief infor mation on software and accessories for the PCI 1741U card 1
28. c BASE 26 Dec BASE 28 Dec and BASE 30 Dec for read write and control of counter functions Register func tions appear below MODE 0 Stop on Terminal Count The output will initially below after you set operation to this mode After you load the count into the selected count register the output will remain low and the counter will count When the counter reaches the terminal count its output will go high and remain high until you reload it with the mode or anew count value The counter continues to decrement after it reaches the terminal count Rewriting a counter register during counting has the following results 1 Writing to the first byte stops the current counting 2 Writing to the second byte starts the new count MODE 1 Programmable One shot Pulse The output is initially high The output will go low on the count following the rising edge of the gate input It will then go high on the terminal count If you load a new count value while the output is low the new value will not affect the duration of the one shot pulse until the succeed ing trigger You can read the current count at any time without affecting the one shot pulse The one shot is re triggerable thus the output will remain low for the full count after any rising edge at the gate input MODE 2 Rate Generator The output will be low for one period of the input clock The period from one output pulse to the next equals the number of input counts in th
29. ddresses BASE 24 Dec BASE 26 Dec BASE 28 Dec and BASE 30 Dec for read write and control of counter functions Register func tions appear below Table D 1 Counter registers Register Function BASE 24 Dec Counter 0 read write BASE 26 Dec Counter 1 read write BASE 28 Dec Counter 2 read write BASE 30 Dec Counter control word Since the 82C54 counter uses a 16 bit structure each section of read write data is split into a least significant byte LSB and most significant byte MSB To avoid errors it is important that you make read write operations in pairs and keep track of the byte order The data format for the control register is as below BASE 30 Dec 82C54 control Bit D7 D6 D5 D4 D3 D2 D1 DO Value SC1 SCO RW1 RWO M2 Mi MO BCD Description SC1 amp SCO Select counter Counter SC1 SC0 0 0 0 1 0 1 2 1 0 Read back command 1 1 71 Chapter D RW1 amp RWO Select read write operation Operation RW1 RWO counter Latch 0 0 Read write LSB 0 1 Read write MSB 1 0 Read write LSB first then MSB 1 1 M2 M1 amp MO Select operating mode M2 M1 MO Mode Description Stop on terminal count Programmable one shot Rate generator Square wave rate generator Software triggered strobe 0 0 x x 1 1 oO O 0 0 0 0 1 0 1 0 1 Hardware
30. de directly at the level of device regis ters Since register level programming requires much effort and time we recommend that you use the Advantech DLL drivers instead However if register level programming is indispensable you should refer to the rele vant information in Appendix C Register Structure and Format or to the example codes included on the companion CD ROM 4 3 DLL Driver Programming Roadmap This section will provide you a roadmap to demonstrate how to build an application from scratch using Advantech DLL driver with your favorite development tools such as Visual C Visual Basic Delphi and C Builder The step by step instructions on how to build your own applica tions using each development tool will be given in the DLL Drivers Man ual Moreover a rich set of example source codes are also given for your reference PCI 1741U User Manual 34 4 3 1 Programming Tools Programmers can develop application programs with their favorite devel opment tools Visual C e Visual Basic e Delphi C Builder For instructions on how to begin programming in each development tool Advantech offers a Tutorial Chapter in the DLL Drivers Manual for your reference Please refer to the corresponding sections in this chapter on the DLL Drivers Manual to begin your programming efforts You can also take a look at the example source codes provided for each programming tool since they can be very helpful The DLL Drivers Ma
31. des 1K samples on board FIFO First In First Out memory buffer for AD This is an important feature for faster data trans fer and more predictable performance under the Windows system 1 2 5 On Board Programmable Timer Counter PCI 1741U provides a programmable timer counter for generating a pacer trigger for the A D conversion The timer counter chip is 82C54 which includes three 16 bit counter 10 MHz clocks One counter is used as an event counter for counting events coming from the input channel The other two are cascaded together to make a 32 bit timer for pacer trig ger time base 3 Chapter 1 1 3 Installation Guide Before you install your PCI 1741U card please make sure you have the following necessary components PCI 1741U analog input card PCI 1741U User Manual Driver software Advantech DLL drivers included in the companion CD ROM Wiring cable PCL 10168 Wiring board ADAM 3968 PCLD 8710 Industrial Wiring Terminal Board with CJC circuit for DIN rail Mounting cable not included Computer Personal computer or workstation with a PCI bus slot running Windows 98 2000 XP Some other optional components are also available for enhanced opera tion e Application software ActiveDAQ GeniDAQ or other third party soft ware packages After you get the necessary components and maybe some of the accesso ries for enhanced operation of your Multifunction card you can then begin the Installation procedures Fig 1 1 on th
32. differential input channel the signal source might exceed the common mode signal range of the PGIA and the PGIA will be saturated with erroneous voltage readings You must therefore reference the signal source against the AIGND PCI 1741U User Manual 26 Figure 3 4 shows a differential channel connection between a floating signal source and an input channel on PCI 1741U In this figure each side of the floating signal source is connected through a resistor to the AIGND This connection can reject the common mode voltage between the signal source and the PCI 1741U ground Internal Figure 3 4 Differential Connection Floating Signal However this connection has the disadvantage of loading the source down with the series combination sum of the two resistors For ra and rb for example if the input impedance rsis 1 kW and each of the two resistors are 100 kW then the resistors load down the signal source with 200 kW 100 kW 100 kW resulting in a 0 5 gain error The follow ing gives a simplified representation of the circuit and calculating pro cess r 1 KQ Vs ideal signal source 7 Vi measured signal source j rs output impedance of signal source a Fb series wound resistors ra ra 200 200 eo Vs ren Y 44200 V 201 __VrVs et Gain error m gt 0 5 Figure 3 5 Example 27 Chapter 3 3 3 Analog Output Connections The PCI 1741U provides one D A outpu
33. e counter register If you reload the counter register between output pulses the present period will not be affected but the subsequent period will reflect the value The gate input when low will force the output high When the gate input goes high the counter will start from the initial count You can thus use the gate input to synchronize the counter PCI 1741U User Manual 74 With this mode the output will remain high until you load the count regis ter You can also synchronize the output by software MODE 3 Square Wave Generator This mode is similar to Mode 2 except that the output will remain high until one half ofthe count has been completed for even numbers and will go low for the other half ofthe count This is accomplished by decreasing the counter by two on the falling edge of each clock pulse When the counter reaches the terminal count the state of the output is changed the counter is reloaded with the full count and the whole process is repeated If the count is odd and the output is high the first clock pulse after the count is loaded decrements the count by 1 Subsequent clock pulses dec rement the count by 2 After time out the output goes low and the full count is reloaded The first clock pulse following the reload decrements the counter by 3 Subsequent clock pulses decrement the count by two until time out then the whole process is repeated In this way ifthe count is odd the output will be high f
34. e next page provides a concise flow chart to give users a broad picture of the software and hard ware installation procedures PCI 1741U User Manual 4 Install Driver from CD ROM then turn off power Install hardware and turn on the PC Use test utility to test hardware Read examples and driver manual Start to write your own application Figure 1 1 Installation Flow Chart 1 4 Software Advantech offers a rich set of DLL drivers third party driver support and application software to help fully exploit the functions of your PCI 1741U card DLL driver on the companion CD ROM e LabVIEW driver e Advantech ActiveDAQ e Advantech GeniDAQ 5 Chapter 1 For more information on software please refer to Chapter 4 Software Overview Users who intend to program directly at the registers of the Multifunction card have register level programming as an option Since register level programming is often difficult and labor intensive it is usually recom mended only for experienced programmers For more information please refer to Appendix C Register Structure and Format 1 5 Accessories Advantech offers a complete set of accessory products to support the PCI 1741U cards These accessories include 1 5 1 PCL 10168 Wiring Cable The PCL 10168 shielded cable is specially designed for PCI 1741U cards to provide high resistance to noise To achieve a better signal quality the signal wires are twisted in such a way as to fo
35. e to connect a single ended channel to a floating signal source In this mode the PCI 1741U provides a reference ground for external floating signal sources Fig 3 2 shows a single ended channel connection between a floating signal source and an input channel on PCI 1741U Internal i External Figure 3 2 Single ended Channel Connections 25 Chapter 3 3 2 2 Differential Channel Connections The differential input channels operate with two signal wires for each channel and the voltage difference between both signal wires is mea sured On PCI 1741U when all channels are configured to differential input up to 8 analog channels are available If one side of the signal source is connected to a local ground the signal source is ground referenced Therefore the ground of the signal source and the ground of the card will not be exactly of the same voltage The difference between the ground voltages forms a common mode voltage V cm To avoid the ground loop noise effect caused by common mode voltages you can connect the signal ground to the Low input Figure 3 3 shows a differential channel connection between a ground reference signal source and an input channel on the PCI 1741U With this connection the PGIA rejects a common mode voltage Vem between the signal source and the PCI 1741U ground shown as Vem in Figure 3 3 Figure 3 3 Differential Connection Ground Signal If a floating signal source is connected to the
36. ep 2 The Advantech Device Manager will search for the device s already installed on your system if any automatically 13 Chapter 2 Step 3 The Installed Devices box will list the device s found on our sys tem such as the one in Figure 2 4 Advantech Device Manager Your ePlatform Partner IND bize me Device Manager r Installed Devices BB My Computer 000 lt PCI 1741U BoardID 14 1 0 e000H gt Setup Test Remove m Supported Devices 3 Advantech PCI 1724 38 Advantech PCI 1730 3 Advantech PCI 1733 a 38 Advantech PCI 1734 38 Advantech PCI 1736UP Pa a e WEEE ld About lt Advantech PCI 1741 Import 3 Advantech PCI 1747 3 Advantech PCI 1750 Export 3 Advantech PCI 1751 a Aduanan DPI 1767 xl Figure 2 4 Device Manager Dialog Box Note As we have noted the device name 000 lt PCI 1741U BoardID 14 I O e000H begins with device number 000 which is specifically assigned to each card The device number is passed to the driver to specify which device you wish to control PCI 1741U User Manual 14 Step 4 In the Device Setting dialog box Figure2 5 you can configure the A D channel as Single ended or Differential and choose the D A channel reference voltage source type PCI 1741U Device Setting Base Address E000 Hex Interrupt Channel B AD configuration Single Differential Single Ended D amp Voltage Ref Chan
37. hese calibration programs make calibration an easy job With a variety of prompts and graphic displays these programs will lead you through the calibration and setup procedures showing you all the correct settings and adjustments To perform a satisfactory calibration you will need a 7 digit digital multi meter and a voltage calibrator or a stable noise free D C voltage source Note Before you calibrate the PCI 1741U you must turn on the power at least 15 minutes to make sure the DAS card is stable The calibration demo programs are included on the companion CD ROM 1741 UCAL Calibration program source file 1741 UCAL EXE Calibration program execution file The calibration program is designed only for the DOS environment Access the program from the default location C Program Files Advantech ADSAPI Utility PCI1741U PCI 1741U User Manual 38 5 1 VR Assignment There is one variable resistor VR1 on the PCI 1741U to adjust the accu rate reference voltage on the PCI 1741U We provide a test point See TP4 in Figure 5 1 for you to check the reference voltage on board Before you start to calibrate A D and D A channels please adjust VR1 until the reference voltage on TP4 has reached 5 0000 V Figure 5 1 shows the locations of VR1 and TP4 PCI 1741U series BOARD ID Ss N L Figure 5 1 Locations of VRI and TP4 5 1 1 PCI 1741U Calibration procedure Users can calibrate the PCI 1741U manually 1741UCAL C il
38. ifferential by write the S D bit Table C 6 Register for A D Channel Range Setting Write A D Channel Range Setting Bit 7 6 5 4 3 2 1 0 BASE 2 S D B U G2 G1 GO 57 Chapter C S D 0 1 B U 0 1 Single ended or Differential control bit single ended differential Bipolar or Unipolar control bit bipolar unipolar G2 to GO Gain Code Table C 7 Gain Codes for PCI 1741U Gain Input Range V B U Gain Code G2 G1 GO 1 5 to 5 0 0 0 0 2 2 5 to 2 5 0 0 0 1 4 1 25 to 1 25 0 0 1 0 8 0 625 to 0 625 0 0 1 1 0 5 10 to 10 0 1 0 0 N A 0 1 0 1 N A 0 1 1 0 N A 0 1 1 1 1 0 to 10 1 0 0 0 2 0t05 1 0 0 1 4 0to 2 5 1 0 1 0 8 0 to 1 25 1 0 1 1 N A 1 1 0 0 N A 1 1 0 1 N A 1 1 1 0 N A 1 1 1 1 PCI 1741U User Manual 58 C 6 MUX Control BASE 4 and BASE 5 Table C 8 Register for Multiplexer Control Write Multiplexer Control Bit 7 6 5 4 3 2 1 0 BASE 5 STO3 STO2 STO1 STOO BASE 4 STA3 STA2 STA1 STAO STA3 STAO Start Scan Channel Number STO3 STOO Stop Scan Channel Number The write only registers of BASE 4 and BASE 5 control how the multi plexers Multiplexer scan e BASE 4 bit 3 to bit 0 STA3 STAO hold the start scan channel num ber e BASE 5 bit 3 to bit 0 STO3 STOO hold the stop scan channel num ber Wr
39. ignal Description Table 3 1 I O Connector Signal Description Al lt 0 15 gt AIGND Input Analog Input Channels 0 through 15 Each channel pair Al lt i i 1 gt i 0 2 4 14 can be configured as either two single ended inputs or one differential input AIGND Analog Input Ground The three ground references AIGND AOGND and DGND are connected together AOO_REF AOGND Input Analog Output Channel 0 External Refer ence AOO_OUT AOGND Output Analog Output Channels 0 AOGND Analog Output Ground The analog out put voltages are referenced to these nodes The three ground references AIGND AOGND and DGND are con nected together DI lt 0 15 gt DGND Input Digital Input channels DO lt 0 15 gt DGND Output Digital Output channels DGND Digital Ground This pin supplies the ref erence for the digital channels at the I O connector as well as the 5VDC supply The three ground references AIGND AOGND and DGND are connected together PCI 1741U User Manual 22 Table 3 1 I O Connector Signal Description CNTO_CLK DGND Input Counter 0 Clock Input The clock input of counter 0 can be either external up to 10 MHz or internal 1 MHz as set by soft ware CNTO_OUT DGND Output Counter 0 Output CNTO_GATE DGND Input Counter 0 Gate Control PACER_OUT DGND Output
40. it_ Your ePiaj Figure 2 2 Driver Setup For further information on driver related issues an online version of the DLL Drivers Manual is available by accessing the following path Start Programs Advantech Automation Device Manager Device Driver s Manual PCI 1741U User Manual 10 2 3 Hardware Installation Note Make sure you have installed the driver before you install the card please refer to 2 2 Driver Installation After the DLL driver installation is completed you can go on to install the PCI 1741U card in any PCI slot on your computer But it is suggested that you refer to the computer user manual or related documentations if you have any doubts Please follow the steps below to install the card on your system Step 1 Turn off your computer and unplug the power cord and cables TURN OFF your computer before installing or removing any compo nents on the computer Step 2 Remove the cover of your computer Step 3 Remove the slot cover on the back panel of your computer Step 4 Touch the metal part on the surface of your computer to neutralize any static electricity that might be in your body Step 5 Insert the PCI 1741U card into a PCI slot Hold the card only by its edges and carefully align it with the slot Insert the card firmly into place Use of excessive force must be avoided or the card might be dam aged Step 6 Fasten the bracket of the PCI card on the back panel rail of the computer with screws
41. ital Input test panel as seen below Through the color of the lamps you can easily discern whether the status of each digital input channel is high or low PCI 1741U User Manual 18 AAdvantech Device Test PCI 1741U BoardID 14 1 O e000H lex Analog input Analog output Port No Bit 7 4 fo 80099 80990 Figure 2 8 Digital Input Tab 2 5 4 Testing Digital Output Function Click the Digital Output tab to bring up the Digital Output test panel such as the one seen on the next page By pressing the buttons on each tab you can easily set each digital output channel as high or low for the corre sponding port AAAdvantech Device Test PCI 1741U BoardID 14 l xi Analog input Analog output Digital input Digital output Port No Bit 7 4 Hex o EE E ea E E a ERBE e ew A DA Change device Exit Figure 2 9 Digital Output Tab 19 Chapter2 2 5 5 Testing Counter Function Click the Counter Tab to bring its test panel forth The counter channel Channel 0 offers two options Event counting and Pulse out If you select Event counting you need first to connect your clock source to pin CNTO_CLK and the counter will start counting after the pin CNTO_GATE is triggered If you select Pulse Out the clock source will be output to pin CNTO_OUT You can configure the Pulse Frequency with the scroll bar right below it 4 Advantech Device Test PCI 1741U BoardID 14 1 0
42. iting to these two registers automatically initializes the scan range of the Multiplexer Each A D conversion trigger also sets the Multiplexer to the next channel With continuous triggering the Multiplexer will scan from the start channel to the stop channel and then repeat For differential mode STOO and STAO are not available i e only even channels are con sidered The following examples show the scan sequences of the Multi plexer Example 1 If the PCI 1741U is configured as single ended and the start scan input channel is AI3 and the stop scan input channel is AI7 then the scan sequence is AI3 AI4 AI5 AI6 AI7 AI3 AI4 AIS AI6 AI7 AI3 AM 59 Chapter C Example 2 If PCI 1741U is configured as single ended and the start scan channel is AI13 and the stop scan channel is AI2 then the scan sequence is AI13 AI14 AI15 AIO AIl AD AI13 AI14 AI13 AIO AIl AI2 AI13 All4 Example 3 If PCI 1741U is configured as differential and the start scan channel is AI2 and the stop scan channel is AI6 then the scan sequence is AI2 AI4 AI6 AI2 AI4 Ale Example 4 If the PCI 1741U is configured as differential and the start scan channel is AI4 and the stop scan channel is AI2 then the scan sequence is AI4 AI6 AI8 AI10 AI12 AI14 AIO AD AI4 AI6 C 7 Control Register BASE 6 The write only register BASE 6 and BASE 7 allows users to set an A D trigger source and an interrupt source Table C 9
43. its contents first The package should contain the following items e PCI 1741U card Companion CD ROM DLL driver included User Manual The PCI 1741U card harbors certain electronic components vulnerable to electrostatic discharge ESD ESD could easily damage the integrated circuits and certain components if preventive measures are not carefully paid attention to Before removing the card from the antistatic plastic bag you should take following precautions to ward off possible ESD damage Touch the metal part of your computer chassis with your hand to dis charge static electricity accumulated on your body Or one can also use a grounding strap e Touch the antistatic bag to a metal part of your computer chassis before opening the bag Take hold of the card only by the metal bracket when removing it out of the bag After taking out the card you should first Inspect the card for any possible signs of external damage loose or damaged components etc If the card is visibly damaged please notify our service department or the local sales representative immedi ately Avoid installing a damaged card into your system Also pay extra caution to the following aspects to ensure proper installation e Avoid physical contact with materials that could hold static electricity such as plastic vinyl and Styrofoam PCI 1741U User Manual 8 Whenever you handle the card grasp it only by its edges DO NOT
44. lustrates the standard calibration procedures for your reference If you want to cal ibrate the hardware in your own way the following steps will guide you On board reference 5V calibration adjust VR1 until TP4 5 0V AI PGA offset calibration Use On board reference to calibrate AI 5V input range Use On board reference to calibrate AI 0 to 5V input range Use AI 5V input range to calibrate AO CHO Use AO CHO to calibrate AI 10V input range Use AO CHO to calibrate AI 2 5V input range Use AO CHO to calibrate AI 1 25V input range a a Ge Re Oe Dim 39 Chapter 5 9 Use AO CHO to calibrate AI 0 625V input range 10 Use AO CHO to calibrate AI 0 to 10V input range 11 Use AO CHO to calibrate AI 0 to 2 5V input range 12 Use AO CHO to calibrate AI 0 to 1 25V input range 5 1 2 Calibration Utility Using Advantech Device Manager PCI 1741U Device Setting Dialog the user can easily finish the calibration procedures automatically The calibration steps are as follows 1 Step 0 Open Advantech Device Manager select PCI 1741U card Advantech Device Manager Your ePlatform Partner N INN lem Device Manz r Installed Devices 8 S By My Computer Set 000 lt PCI 1741U BoardiD 14 1 0 e000H gt Se Test Remove r Supported Devices 38 Advantech PCI 1724 Add 3 Advantech PCI 1730 3 Advantech PCI 1733 3 Advantech PCI 1734 About 3 Advantech PCI
45. nd ship it prepaid to your dealer iii CE This product has passed the CE test for environmental specifications Test condi tions for passing included the equipment being operated within an industrial enclosure In order to protect the product from being damaged by ESD Electro static Discharge and EMI leakage we strongly recommend the use of CE com pliant industrial enclosure products FCC Class A This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to Part 15 ofthe FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in acommercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful inter ference in which case the user will be required to correct the interference at own expense Technical Support and Assistance Step 1 Visit the Advantech web site at www advantech com support where you can find the latest information about the product Step 2 Contact your distributor sales representative or Advantech s cus tomer service center for technical support if you need additional assistance Please have the following information ready Product name and serial number
46. nel 0 External Internal Calibration Cancel About Figure 2 5 The Device Setting Dialog Box Note You can configure the source of D A reference volt age either as Internal or External and select the output voltage range When selecting voltage source as Internal you have two options for the output voltage range 0 5 V and 0 10 V When selected as External the output voltage range is determined by the external reference volt age in the following way By inputting an external reference voltage xV where x lt 10 you will get a output voltage range 0 to xV 15 Chapter 2 2 5 Device Testing After following the Setup and Configuration procedure to the last step described in the previous section you can now proceed to test the device by clicking the Test Button on the Device Manager dialog box Fig 2 9 A Device Test dialog box will appear accordingly On the Device Test dialog box you are free to test various functions of PCI 1741U on the Analog input Digital input Digital output or Counter tabs The Analog output function is only available for PCI 1741U Note You can access the Device Test dialog box either by the previous procedure for the Device Installation Program or simply by accessing Start Programs Advantech Automation Device Manager Advantech Device Manager All functions are performed by the software polling method For high speed data acquirements or output functions have to use a co
47. nual can be found on the companion CD ROM Or if you have already installed the DLL Drivers on your system The DLL Drivers Manual can be readily accessed through the Start button Start Programs Advantech Automation Device Manager Device Driver s Manual The example source codes can be found under the corresponding installa tion folder such as the default installation path Program Files ADVANTECH ADSAPI Examples For information about using other function groups or other development tools please refer to the Creating Windows 98 2000 XP Application with DLL Driver chapter and the Function Overview chapter on the DLL Driv ers Manual 4 3 2 Programming with DLL Driver Function Library Advantech DLL driver offers a rich function library to be utilized in vari ous application programs This function library consists of numerous APIs that support many development tools such as Visual C Visual Basic Delphi and C Builder 35 Chapter 4 According to their specific functions or services these APIs can be cate gorized into several function groups e Analog Input Function Group e Analog Output Function Group Digital Input Output Function Group e Counter Function Group Temperature Measurement Function Group e Alarm Function Group e Port Function Group Communication Function Group Event Function Group For the usage and parameters of each function please refer to the Func tion Overview chapter in the DLL Dri
48. nversions When a 5 V source is connected to TRG_GATE the external trigger function is enabled A low to high edge coming from EXT_TRG will trigger an A D conversion on the PCI 1741U When DGND is connected to TRG_GATE the external trigger function is thereby disabled 3 5 Field Wiring Considerations When you use the PCI 1741U to acquire data from outside noises in the environment might significantly affect the accuracy of your measure ments if due cautions are not taken The following measures will be help ful to reduce possible interference running signal wires between signal sources and the PCI 1741U The signal cables must be kept away from strong electromagnetic sources such as power lines large electric motors circuit breakers or welding machines since they may cause strong electromagnetic inter ference Keep the analog signal cables away from any video monitor since it can significantly affect a data acquisition system If the cable travels through an area with significant electromagnetic interference you should adopt individually shielded twisted pair wires as the analog input cable This type of cable has its signal wires twisted together and shielded with a metal mesh The metal mesh should only be connected to one point at the signal source ground Avoid running the signal cables through any conduit that might have power lines in it If you have to place your signal cable parallel to a power line that has a high volt
49. or N 1 2 counts and low for N 1 2 counts MODE 4 Software Triggered Strobe After the mode is set the output will be high When the count is loaded the counter will begin counting On terminal count the output will go low for one input clock period then go high again If you reload the count reg ister during counting the new count will be loaded on the next CLK pulse The count will be inhibited while the GATE input is low MODE 5 Hardware Triggered Strobe The counter will start counting after the rising edge of the trigger input and will go low for one clock period when the terminal count is reached The counter is re triggerable 75 Chapter D PCI 1741U User Manual 76
50. r Trigger Connection 3 4 2 External Trigger Source Connection Field Wiring Considerations BoardID Switch Settings Figure 3 7 Jumpers and Switch Locations Table 3 2 BoardID Setting nnenen Software Overview cccsccscsssccsssesscsssessees OF Software OVerVieW Programming Choices 42 1 DEL Diver anne ae 4 2 2 Register Level Programming pp DLL Driver Programming Roadmap 4 3 1 Programming Tools 4 3 2 Programming with DLL Driver Function Library 35 4 3 3 Troubleshooting DLL Driver Error 36 Calibration ep JS VR Assignment a 39 Figure 5 1 Locations of VR1 and TPA 39 5 1 1 PCI 1741U Calibration procedure oe 5 1 2 Calibration Utility 2 eecceeeeeeeeeeeeeeeceeceeeeeaeenee 40 Specifications RN 44 Analog Mputa 20sec sata ces thee ange splrfene Analog Output Digital Input Output CounterTimeT cece eee GenerTal 6a Block Diagram pp OO Register Structure amp Format 52 OVEN IE Wa stehen T O Port Address Map Table C 1 PCI 1741U Register Format Part 1 Table C 2 PCI 1741U Register Format Part 2 Table C 3 PCI 1741U Register Format Part 1 Table C 4 PCI 1741U Register Format Part 4 Ch Number and A D Data BASE 0 and BASE 1 57 C 3 1 BASE 0 and BASE 1 hold the result of A D conversion MIC 3780 User Manual vi C4 C 5 C 6 C 7 C8
51. rm a twisted pair cable reducing cross talk and noise from other signal sources Furthermore its analog and digital lines are separately sheathed and shielded to neutralize EMI EMC problems 1 5 2 ADAM 3968 Wiring Boards The ADAM 3968 is a 68 pin SCSI wiring terminal module for DIN rail mounting This terminal module can be readily connected to the Advan tech PC Lab cards and allow easy yet reliable access to individual pin connections for the PCI 1741U card 1 5 3 PCLD 8710 PCLD 8710 is a DIN rail mounted screw terminal board to be used with any PC LabCard products with a 68 pin SCSI connector PCLD 8710 features the following functions e Two additional 20 pin flat cable connectors for digital input and output Reserved space on board to meet future needs for signal conditioning circuits e g low pass filter voltage attenuator and current shunt e Industrial grade screw clamp terminal blocks for heavy duty and reli able connections PCI 1741U User Manual 6 CHAPTER Installation This chapter provides a packaged item checklist proper instructions about unpacking and step by step procedures for both driver and card installation Note that PCI 1741U is used as an example Sections include Unpacking e Driver Installation Hardware Installation e Device Setup amp Configuration e Device Testing Chapter 2 Installation 2 1 Unpacking After receiving your PCI 1741U package please inspect
52. rresponding VC example like ADINT or ADDMA or ADBMDMA PCI 1741U User Manual 16 2 5 1 Testing the Analog Input Function Click the Analog Input tab to bring it up to the front ofthe screen Select the input range for each channel in the Input range drop down boxes Configure the sampling rate on the scroll bar Switch the channels by using the up down arrow AAdvantech Device Test PCI 1741U BoardID 14 1 0 e000H t Analoginput Analog output Digital input Digital output Channel No Input range Analog input reading Channel mode 16 single ended channels oo Sampling period 1000 ms i gt A v Change device Exit Figure 2 6 Analog Input tab m m Fa a EE E e F 17 Chapter 2 2 5 2 Testing the Analog Output Function Click the Analog Output tab to bring it up to the foreground The Analog Output tab allows you to output quasi sine triangle or square waveforms automatically generated by the software or output single values manu ally You can also configure the waveform frequency and output voltage range A Advantech Device Test PCI 1741U BoardID 14 MO e000H w x Analog input Analog output Digital input Digital output Channel 0 Waveform output gt _ r Manual Output INN _alm e Overall waveform period 79 sec 4 Change device Exit Figure 2 7 Analog Output Tab 2 5 3 Testing Digital Input Function Click the Digital Input tab to show forth the Dig
53. t channel AO0 You may use the PCI 1741U internally provided precision 5V 10V reference to gener ate 0 to 5 V 10 V D A output range You may also create a D A out put range through the external reference AOO_REF The external reference input range is 10 V For example connecting with an exter nal reference of 7 V will generate 0 7 V D A output Fig 3 5 shows how to make analog output and external reference input connections on the PCI 1741U Internal External 5 INT_REF AQO_REF 10 DATA BUS External Reference For DA Signal 0 AOGND Figure 3 6 Analog Output Connections 3 4 Trigger Source Connections 3 4 1 Internal Pacer Trigger Connection PCI 1741U includes one 82C54 compatible programmable Timer Counter chip which provides three 16 bit counters connected to a 10 MHz clock each designated specifically as Counter 0 Counter and Counter 2 Counter 0 is a counter which counts events from an input channel or outputting pulse Counter 1 and Counter 2 are cascaded to cre ate a 32 bit timer for pacer triggering A low to high edge from the Counter 2 output PACER_OUT will trigger an A D conversion on the PCI 1741U At the same time you can also use this signal as a synchro nous signal for other applications PCI 1741U User Manual 28 3 4 2 External Trigger Source Connection In addition to pacer triggering the PCI 1741U also allows external trig gering for A D co
54. triggered strobe BCD Select binary or BCD counting BCD Type 0 Binary counting 16 bits 1 Binary coded decimal BCD counting If you set the module for binary counting the count can be any number from 0 up to 65535 If you set it for BCD Binary Coded Decimal count ing the count can be any number from 0 to 9999 PCI 1741U User Manual 72 If you set both SC1 and SCO bits to 1 the counter control register is in read back command mode The control register data format then becomes BASE 30 Dec 82C54 control read back mode Bit D7 D6 D5 D4 D3 D2 D1 DO Value 1 1 CNT STA C2 C1 co X CNT 0 Latch count of selected counter s STA 0 Latch status of selected counter s C2 C1 amp C0 Select counter for a read back operation C2 1 select Counter 2 C1 1 select Counter 1 CO 1 select Counter 0 If you set both SC1 and SCO to 1 and STA to 0 the register selected by C2 to CO contains a byte which shows the status of the counter The data format of the counter read write register then becomes BASE 24 26 28 Dec Status read back mode Bit D7 D6 D5 D4 D3 D2 D1 DO Value OUT NC RW1 RW2 M2 M1 MO BCD OUT Current state of counter output NC Null count is 1 when the last count written to the counter register has been loaded into the counting element 73 Chapter D D 3 Counter Operating Modes The 82C54 programmable interval timer uses four registers at addresses BASE 24 De
55. vers Manual 4 3 3 Troubleshooting DLL Driver Error Driver functions will return a status code when they are called to perform a certain task for the application When a function returns a code that is not zero it means the function has failed to perform its designated func tion To troubleshoot the DLL driver error you can pass the error code to DRV_GetErrorMessage function to return the error message Or you can refer to the DLL Driver Error Codes Appendix in the DLL Drivers Manual for a detailed listing of the Error Code Error ID and the Error Message PCI 1741U User Manual 36 CHAPTER Calibration This chapter provides brief information on PCI 1741U calibration Regular cal ibration checks are important to main tain accuracy in data acquisition and control applications Sections include e VR Assignment Chapter 5 Calibration This chapter provides brief information on PCI 1741U calibration Regu lar calibration checks are important to maintain accuracy in data acquisi tion and control applications We provide the calibration programs or utility on the companion CD ROM to assist you in calibration Note If you installed the program to another directory you can find these programs in the correspond ing subfolders in your destination directory PCI 1741U has been calibrated at the factory for initial use However a calibration of the analog input and the analog output function every six months is recommended T
56. who would like to do their own low level programming C 2 I O Port Address Map PCI 1741U requires 32 consecutive addresses in the PC s I O space The address of each register is specified as an offset from the card s base address For example BASE 0 is the card s base address and BASE 7 is the base address plus seven bytes Table C 1 shows the function of each register of PCI 1741U or driver and its address relative to the card s base address PCI 1741U User Manual 52 Table C 1 PCI 1741U Register Format Part 1 Base Read on 7 6 5 a i 2 1 0 A D Data 1 AD15 AD14 AD13 AD12 AD11 AD10 AD9 AD8 0 AD AD6 AD5 AD4 AD3 AD2 AD1 ADO N A N A 5 A D Status Register CAL IRQ F F F H F E AD16 CNTO ONE IRQE GATE EXT PACE SW 12 FH N R N A D A channel 0 data 11 DA15 DA14 DA13 DA12 DA11 DA10 DA9 DA8 10 DA7 DA6 DA5 DA4 DA3 DA2 DA1 DAO 13 12 N A 15 14 53 Chapter C Table C 2 PCI 1741U Register Format Part 2 Base Read fet ae 7 6 5 4 3 2 1 0 Digital Input 17 DI15 DI14 DI13 DM2 DM1 DMO DIV DI8 16 DI7 DI6 DI5 DI4 DI3 DI2 DIN DIO Calibration Command busy flag 1
Download Pdf Manuals
Related Search
Related Contents
Hitachi CP-X5021N Auxiliary Incident Management System Nokia 6133 Cell Phone User Manual ICY BOX IB-288StU-Wh USB powered Powerware PowerRite XT User Manual Passeport du Jeune Archer Francilien Accustrip URS Reader Manual - JANT Pharmacal Corporation Manuale GEOtank 取扱説明書 - TOEX DuraVisionバッテリーキット 取扱説明書 Copyright © All rights reserved.
Failed to retrieve file