NuDAQ 6208/6216 Series Multi-channel Analog Output Cards User’s Guide Recycle Paper
©Copyright 2002 ADLINK Technology Inc. All Rights Reserved. Manual Rev. 3.22: September 13, 2002 Part No.: 50-12201-005 The information in this document is subject to change without prior notice in order to improve reliability, design and function and does not represent a commitment on the part of the manufacturer.
Getting service from ADLINK • Customer Satisfaction is the most important priority for ADLINK Tech Inc. If you need any help or service, please contact us. ADLINK Technology Inc. Web Site http://www.adlinktech.com Sales & Service Service@adlinktech.com NuDAQ + USBDAQ nudaq@adlinktech.com Technical Automation automation@adlinktech.com Support NuIPC nuipc@adlinktech.com NuPRO / EBC nupro@adlinktech.com TEL +886-2-82265877 FAX Address 9F, No. 166, Jian Yi Road, Chungho City, Taipei, 235 Taiwan.
Table of Contents Tables and Figures ...................................................... iii How to Use This Guide ................................................ iv Introduction ................................................................... 1 1.1 Features ............................................................................. 2 1.2 Applications........................................................................ 2 1.3 Specifications ...................................................
Operation Theory ........................................................ 21 4.1 Voltage Output ................................................................. 21 4.2 Current Output ................................................................. 22 C\C++ Library............................................................... 23 5.1 Libraries Installation ......................................................... 23 5.2 Programming Guide......................................................... 24 5.
Tables and Figures Tables Table 1. I/O Address Map ....................................................... 19 Table 2. Digital Value Vs Analog output voltage ..................... 21 Table 3. Current Output and Range Control ........................... 22 Table 4. Data types and it range ............................................. 24 Table 5. VR Assignment.......................................................... 36 Figures Figure 1: PCI-6208 REV: A3 Layout......................................
How to Use This Guide This manual is designed to help you use the 6208 series products. It describes how to modify and control various functions of the products to achieve your requirements. It is divided into six chapters: Chapter 1, “Introduction”, gives an overview of the product features, applications, and specifications. Chapter 2, “Getting Started”, describes how to install the 6208 series products. The layout of 6208 series products is shown, as well as the connectors’ specifications.
1 Introduction The 6208 series products are multi-channel analog output cards. They include the following three products: • cPCI/PCI-6208V: 8-CH voltage output card for cPCI/PCI interface • cPCI/PCI-6208A: 8-CH voltage and current output card for cPCI/PCI interface • PCI-6216V: 16-CH voltage output card for PCI interface cPCI-6208V, PCI-6208V: cPCI/PCI-6208V is a high-density analog output card with 8 identical voltage output channels. Each channel is equipped with B.
1.1 1.2 1.3 ♦ Features • 32-bit cPCI/PCI-Bus, Plug and Play • 16-bit high resolution voltage outputs • Output Range: ±10V (14-bit resolution guarantee) for cPCI/PCI6208V and PCI-6216V only • Output Range: 0-20mA, 4-20mA, 5-25mA (14-bit resolution guaranteed) for cPCI/PCI-6208A only • Differential Linearity Error: 0.
♦ ♦ • Differential Linearity Error: ± 0.001 % Full Scale Range • Output initial status: 0V (after RESET or POWER-ON) • Data Transfer: Programmed I/O Current Output • Numbers of channel: 8 channel for cPCI/PCI-6208A • Current output range: (programmable) 0~20mA, 4~20mA, 5~25mA. • Voltage to current converter: B.B XTR110 or equivalent • Settling time: 17 µ second (from 0 to 20mA) • Slew rate: 1.3 mA / µs • Non-linearity: ± 0.01 % of Span • Span error: 0.
♦ ♦ General Specifications • Operating temperature: 0° ~ 50°C • Storage temperature: -20° ~ 80°C • Humidity: 5~95% non-condensing • Connector: 37-pin D-sub connector (female) • Bus interface: 32-bit slave PCI bus Power consumption: • • • • • ♦ PCI-6208V: P +5VDC @ 580mA typical P +12VDC @ 70mA typical PCI-6208A: P +5VDC @ 670mA typical P +12VDC @ 90mA typical or +12VDC @ 380mA (when all current output channel is 20mA) PCI-6216V: P +5VDC @ 1.
1.4 Supporting Software ADLINK provides versatile software drivers and packages for users’ different approach to building a system. ADLINK not only provides programming libraries such as DLL for most Windows based systems, but also provide drivers for many software package such as LabVIEW®, HP VEETM, DASYLabTM, InTouchTM, InControlTM, ISaGRAFTM, and so on. All software options are included in the ADLINK CD. Non-free software drivers are protected with licensing codes.
1.4.2 ® PCIS-LVIEW: LabVIEW Driver PCIS-LVIEW contains the VIs, which are used to interface with NI’s PCIS® LVIEW contains the VIs, which is used to interface with NI’s LabVIEW software package. The PCIS-LVIEW supports Windows 95/98/NT/2000. ® The LabVIEW drivers is shipped free with the board. You can install and use them without a license. For more information about PCIS-LVIEW, please refer to the user’s guide in the CD. (\\Manual_PDF\Software\PCISLVIEW). 1.4.
1.4.7 PCIS-ISG: ISaGRAF TM driver The ISaGRAF Workbench is an IEC1131-3 SoftPLC control development environment. The PCIS-ISG includes ADLINK product drivers for ISaGRAF under Windows NT environment. The PCIS-ISG is included in the ADLINK CD. It is not free. Please contact ADLINK dealers or ADLINK to purchase the license. 1.4.8 PCIS-ICL: InControl TM Driver PCIS-ICL is the InControl drivers that support Windows NT. The PCISICL is included in the ADLINK CD. It needs license. 1.4.
2 Getting Started This chapter describes how to install and setup the cPCI/PCI-6208. The contents in the package and unpacking information that you should be aware of are outlined first. 2.1 What You Have In addition to the User’s Manual, the package should include the following items: • 6208 Series Card • ADLINK CD • Software Installation Guide If any of these items are missing or damaged, contact ADLINK or the dealer from whom you purchased the product.
2.2 Unpacking The 6208 card contains electro-static sensitive components that can be easily be damaged by static electricity. Therefore, the card should be handled on a grounded anti-static mat. The operator should be wearing an anti-static wristband, grounded at the same point as the anti-static mat. Inspect the card module carton for obvious damages. Shipping and handling may cause damage to your module. Be sure there are no shipping and handling damages on the modules carton before continuing.
2.
Optional DC-DC Converter Figure 2: PCI-6208 REV: B1 Layout Getting Started • 11
Figure 3: 12 • Getting Started cPCI-6208 Layout
Figure 4: cPCI-6208V/R Layout Getting Started • 13
Figure 5: Figure 6: cPCI-R6216DB Rear I/O Adapter for cPCI-6208V/R, cPCI6208A/R and cPCI-6216V/R cPCI-6208V(A)/R and cPCI-6216V/R Front Panel (Left to Right) 14 • Getting Started
2.4 Connector Pin Assignment The pin assignment of the 6208 series card is shown in Figure 2.2 D I3 (1) D I2 (2) D I1 (3) D I0 (4) GND (5) +5V (6) +15V (7) A.GND (8) V14(A6) (9) V6 (10) A . G N D (11) V12(A4) (12) V4 (13) A . G N D (14) V10(A2) (15) V2 (16) A . G N D (17) V8(A0) (18) V0 (19) Figure 7: (20) D O 3 (21) D O 2 (22) D O 1 (23) D O 0 (24) G N D (25) -15V (26) A .GND (27) V15(A7) (28) V7 (29) A .GND (30) V13(A5) (31) V5 (32) A .GND (33) V11(A3) (34) V3 (35) A .
2.5 Hardware Installation Outline Hardware configuration The PCI cards (or CompactPCI cards) are equipped with plug and play PCI controllers, it can request base addresses and interrupts according to the PCI standard. The system BIOS will assign the system resources based on the PCI cards’ configuration registers and system parameters (which are set by the system BIOS). Interrupt assignment and memory usage (I/O port locations) can only be assigned by the system BIOS.
2.6 Device Installation for Windows Systems Once Windows 95/98/2000 has started, the Plug and Play functions of the Windows system will find and locate the new NuDAQ/NuIPC card. If this is the first time a NuDAQ/NuIPC card is installed in your Windows system, you will be prompted to input the device information source. Please refer to the “Software Installation Guide” for installation procedures of the device drivers. 2.
3 Registers The detailed descriptions of the registers format are specified in this chapter. This information is quite useful for the programmers who wish to handle the card by low-level programming. However, we suggest user have to understand more about the PCI interface then start any low-level programming. In addition, the contents of this chapter can help users understand how to use software driver to manipulate this card. 3.
3.2 I/O Address Map Depending on which card is used, either the cPCI/PCI-6208V or PCI6216V, there are 8 or 16 voltage output channels respectively. For the cPCI/PCI-6208A, there are 8 voltage and current output channels; the voltage output controls the current source. The programming methods of all analog output channels are identical. For the three different models of the analog output cPCI/PCI cards, the programming methods are compatible. The 6208 registers are all 16 bits.
3.3 Analog Output Status Register The DAC uses a series bus architecture hence it will take time for digital value to be sent out. The data transfer rate for every DA data write takes 2.2µs, therefore the software driver must wait 2.2µs before sending any other data to any analog output port. While the DA value is sending, the Data_Send bit is ‘H’. The software driver should check this bit before writing any data to the output port. This register is read only. 3.
4 Operation Theory In this chapter, the operation theory of the 6208 series cards is described. Before programming or applying the 6208 series cards to your applications, please go through this chapter to understand the features of the functions. 4.1 Voltage Output The DA converter used in the cPCI/PCI-6208 is a Burr-Brown PCM-56U. The DAC has a 16-bit resolution with bi-polar output. The voltage output range is +/-10V. Therefore, the data registers are all 16-bits sign values.
4.2 Current Output The precision voltage-to-current converter XTR110 implements the current output. The current output channel n (An) is control by the voltage of channel n (Vn). The block diagram of the current output channels is shown in Fig 5. Figure 8: Current Output Circuits The cPCI/PCI-6208A provides an on board +15V power supply. Each current output channel is a current source, which is controlled by the voltage of the corresponding channel.
5 C\C++ Library This chapter describes the software libraries for operating this card. Only the functions in the DOS library and Windows 95 DLL are described. Please refer to the PCIS-DASK function reference manual, which is included in the ADLINK CD, for descriptions of Windows 98/NT/2000 DLL functions. The function prototypes and useful constants are defined in the header files located in LIB (DOS) and INCLUDE (Windows 95) directories. For Windows 95 DLL, the developing environment can be Visual Basic 4.
5.2 Programming Guide 5.2.1 Naming Convention The functions of the NuDAQ PCI or NuIPC CompactPCI card software drivers uses full-names to represent the functions' real meaning. The naming convention rules are: In DOS Environment: _{hardware_model}_{action_name}. e.g. _6208_Initial().
5.3 _6208_Initial @ Description This function is used to initialize the 6208 series cards. You must call this function to initialize all 6208 series cards plugged into your system first, before calls to other function to perform operations on the cards can proceed.
5.4 _6208_Software_Reset @ Description This function is used to reset the I/O ports configuration. Note that this function will not re-start the PCI bus and all the hardware settings won’t be changed either. @ Syntax C/C++ (DOS) void _6208_Software_Reset (U16 cardNo) C/C++ (Windows 95) void W_6208_Software_Reset (U16 cardNo) Visual Basic (Windows 95) W_6208_Software_Reset (ByVal cardNo As Integer) @ Argument cardNo: The card number of the 6208 card initialized.
5.5 _6208_DA @ Description This function is used to write data to the D/A converters. There are 8 or 16 Digital-to-Analog conversion channels depending on which card is used. The resolution of each channel is 16 bits with sign; i.e. the digital value range from -32768 (0x8000) to +32767 (0x7FFF).
5.6 _6208_Get_DA_Status @ Description This function is used to check the DA data sending status. Because the data transfer time for every DA data takes 2.2 µs, the software driver must hold for 2.2µs before sending more data to any of the analog output ports. This function should be called before writing any data to the output port. While the DA value is sending, the returned value is “1”, otherwise the returned value is “0”.
5.7 _6208_DI @ Description This function is used to read data from the digital input ports. There are 4 digital input channels on the 6208 series cards. The retrieved value is stored in DIData.
5.8 _6208_DO @ Description This function is used to write data to digital output ports. There are 4 digital output channels on 6208 series card, i.e. the output value ranges from 0 to 15. @ Syntax C/C++ (DOS) U16 _6208_DO (U16 cardNo, U16 DOData) C/C++ (Windows 95) U16 W_6208_DO (U16 cardNo, U16 DOData) Visual Basic (Windows 95) W_6208_DO (ByVal cardNo As DOData As Integer) As Integer Integer, ByVal @ Argument cardNo: The card number of the 6208 card initialized.
5.9 _6208_I2V_Control @ Description This function is used to set the cPCI/PCI-6208A voltage-to-current mode control. There are three range modes for the cPCI/PCI-6208A. Please refer to section 4.2 for description of voltage to current conversion.
6 Utility / Calibration The software CD provides a utility program, 6208util.exe, and is intended for calibration and functional testing. The utility is a menu-driven design and operates under the DOS environment. The text messages gives operating guidance, with graphics to indicate correct hardware configuration and location. The utility is described in the following sections. 6.1 Running the 6208util.exe After finishing the DOS installation, you can execute the utility by typing the following command.
6.1.1 Functional Testing This function is used to test the D/A functions of the cPCI/PCI-6208V /6208A /6216V. When you choose one of the testing functions from the functions menu, a channel selection menu is displayed on the screen. Move the cursor and press to select the channel you want to test. After you have selected a channel from the channel selection menu, a testing window appears. Figures below are the function testing menu window.
6.1.2 Calibration This function guides you through on how to calibrate the 6208 series card. The calibration program can serve as a useful test for the 6208 series D/A functions and can aid in troubleshooting if problems arise. Note: For an environment with frequent fluctuation in temperature and vibration, a 3 months re-calibration interval is recommended.
Figure 13: Channel Selection Menu After you have selected a channel from the channel selection menu, a calibration procedures window appears. The figure below outlines the calibration procedure for the 6208V. Figure 14: 6.2 6.2.1 Calibration Procedures Window Calibration of Analog Output Channel What You Need Before calibrating your 6208 series card, you should prepare a 6 1/2 digital multi-meter for measuring voltage signals.
6.2.2 VR Assignment of cPCI/PCI-6208 and PCI-6216 There are either 8 or 16 voltage output channels depending on which model of the card is used. For each channel, two VRs are used to adjust for the range and offset of the output voltage. The following table shows the assignment and function of each VR. You can find these designators on the PCB.
6.2.3 Voltage Output Calibration Because there is an internal reference voltage for each DA channel, the calibration process for each channel is independent. The following procedure, VRn-1 and VRn-2 are used to represent the full range and offset of the nth channels. The following is the calibration procedure for the DA output. Step 1. Connect the n-th DA output (Vn) to DVM (+) of the digital multimeter. Connect the AGND signal to DVM (-). Step 2. Send the digital value ‘0’ to the DA.
Warranty Policy Thank you for choosing ADLINK. To understand your rights and enjoy all the after-sales services we offer, please read the following carefully. 1. Before using ADLINK’s products, please read the user manual and follow the instructions exactly. When sending in damaged products for repair, please attach an RMA application form. 2. All ADLINK products come with a two-year guarantee, free of repair charge. 3. 4.
5. To ensure the speed and quality of product repair, please download an RMA application form from our company website www.adlinktech.com. Damaged products with RMA forms attached receive priority. For further questions, please contact our FAE staff. ADLINK: service@adlinktech.com Test & Measurement Product Segment: NuDAQ@adlinktech.com Automation Product Segment: Automation@adlinktech.com Computer & Communication Product Segment: NuPRO@adlinktech.com; NuIPC@adlinktech.