United Electronic Industries DNR-AI-207 User manual

DNx-AI-207
—
User Manual
16-Channel, 18-bit, Sequential Sampling, Differential
Analog Input Board with Cold-Junction Compensation
for the PowerDNA Cube and RACK Series Chassis
December 2017
PN Man-DNx-AI-207
© Copyright 1998-2017 United Electronic Industries, Inc. All rights reserved.

No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form
by any means, electronic, mechanical, by photocopying, recording, or otherwise without prior written
permission.
Information furnished in this manual is believed to be accurate and reliable. However, no responsibility
is assumed for its use, or for any infringement of patents or other rights of third parties that may result
from its use.
All product names listed are trademarks or trade names of their respective companies.
See the UEI website for complete terms and conditions of sale:
http://www.ueidaq.com/cms/terms-and-conditions/
Contacting United Electronic Industries
Mailing Address:
27 Renmar Avenue
Walpole, MA 02081
U.S.A.
For a list of our distributors and partners in the US and around the world, please contact a member of our
support team:
Support:
Telephone: (508) 921-4600
Fax: (508) 668-2350
Also see the FAQs and online “Live Help” feature on our web site.
Internet Support:
Support:[email protected]
Website: www.ueidaq.com
FTP Site: ftp://ftp.ueidaq.com
Product Disclaimer:
WARNING!
DO NOT USE PRODUCTS SOLD BY UNITED ELECTRONIC INDUSTRIES, INC. AS CRITICAL
COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS.
Products sold by United Electronic Industries, Inc. are not authorized for use as critical components in
life support devices or systems.A critical component is any component of a life support device or
system whose failure to perform can be reasonably expected to cause the failure of the life support
device or system, or to affect its safety or effectiveness.Any attempt to purchase any United Electronic
Industries, Inc. product for that purpose is null and void and United Electronic Industries Inc. accepts
no liability whatsoever in contract, tort, or otherwise whether or not resulting from our or our
employees' negligence or failure to detect an improper purchase.
Specifications in this document are subject to change without notice. Check with UEI for
current status.

DNx-AI-207 Analog Input Board i
Table of Contents
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
Table of Contents
Chapter 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Organization of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 The AI-207 Board Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.1 ADC Input Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.2 Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.3 Environmental Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.4 Software Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.5 Device Architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.5.1 Multiplexer & Programmable Gain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.5.2 Maximum Sample Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.5.3 Autozero. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.5.4 Oversampling Engine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.5.5 Data Storage and Timestamping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.6 Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.7 Connectors and Wiring (pinout) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.7.1 Analog Input Ground Connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.8 Data Representation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.8.1 CJC Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Chapter 2 Programming with the High-Level API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.1 About the High-level Framework. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2 Creating a Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.3 Configuring Channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.3.1 Voltage Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.3.2 Thermocouple Measurement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.4 Configuring Autozero . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.5 Configuring the Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.6 Reading Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.7 Cleaning-up the Session. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Chapter 3 Programming with the Low-Level API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.1 About the Low-level API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.2 Low-level Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.3 Low-level Programming Techniques. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.3.1 Data Collection Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.4 Programming the AI-207 (Immediate Mode). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.4.1 Setting up Channel Configuration & Timestamps . . . . . . . . . . . . . . . . . . . . . 17
3.4.2 Configuring the Channel List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.4.3 Adding CJC Channel to the Channel Configuration. . . . . . . . . . . . . . . . . . . . 18
3.4.4 Setting up the AutoZero Feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

DNx-AI-207 Analog Input Board ii
Table of Contents
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
3.4.5 Setting the Scan Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.4.6 Reading Data & Timestamps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.5 Programming Scan Rate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.6 Configuring Channels & Scan Rate in ACB Mode . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Appendix A. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

DNx-AI-207 Analog Input Board iii
List of Figures
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
Table of Figures
Chapter 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1-1 Block Diagram of DNx-AI-207 I/O Board.......................................................................5
1-2 Photo of DNA-AI-207 Analog Input Board.....................................................................8
1-3 Pinout of the DNx-AI-207 Analog Input Board...............................................................9
1-4 Recommended Ground Connections for Analog Inputs..............................................10

DNx-AI-207 Analog Input Board
Chapter 1 1
Introduction
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
Chapter 1 Introduction
This document outlines the feature set and use of the DNx-AI-207, 16-channel
analog input boards.
The following sections are provided in this chapter:
•Organization of this Manual (Section 1.1)
•The AI-207 Board Overview (Section 1.2)
•Features (Section 1.3)
•Specification (Section 1.4)
•Device Architecture (Section 1.5)
•Indicators (Section 1.6)
•Connectors and Wiring (pinout) (Section 1.7)
•Data Representation (Section 1.8)
1.1 Organization
of this Manual This AI-207 User Manual is organized as follows:
• Introduction
Chapter 1 provides an overview of DNx-AI-207 features, device
architecture, connectivity, and logic.
• Programming with the High-Level API
Chapter 2 provides an overview of the how to create a session,
configure the session, and interpret results with the Framework API.
• Programming with the Low-Level API
Chapter 3 is an overview of low-levelAPI commands for configuring and
using the AI-207 series board.
• Appendix A - Accessories
This appendix provides a list of accessories available for use with the
DNx-AI-207 board.
• Index
This is an alphabetical listing of the topics covered in this manual.
NOTE: A glossary of terms used with the PowerDNA Cube/RACK and I/O
boards can be viewed or downloaded from www.ueidaq.com.

DNx-AI-207 Analog Input Board
Chapter 1 2
Introduction
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
Manual Conventions
To help you get the most out of this manual and our products, please note that
we use the following conventions:
Tips are designed to highlight quick ways to get the job done, or reveal
good ideas you might not discover on your own.
NOTE: Notes alert you to important information.
CAUTION! Caution advises you of precautions to take to avoid injury, data loss,
and damage to your boards or a system crash.
Text formatted in bold typeface generally represents text that should be entered
verbatim. For instance, it can represent a command, as in the following
example: “You can instruct users how to run setup using a command such as
setup.exe.”
Bold typeface will also represent field or button names, as in “Click Scan
Network.”
Text formatted in fixed typeface generally represents source code or other text
that should be entered verbatim into the source code, initialization, or other file.
Examples of Manual Conventions
Before plugging any I/O connector into the Cube or RACKtangle, be
sure to remove power from all field wiring. Failure to do so may
cause severe damage to the equipment.
Usage of Terms
Throughout this manual, the term “Cube” refers to either a PowerDNA Cube
product or to a PowerDNR RACKtanglerack mounted system, whichever is
applicable. The term DNR is a specific reference to the RACKtangle, DNAto the
PowerDNA I/O Cube, and DNx to refer to both.

DNx-AI-207 Analog Input Board
Chapter 1 3
Introduction
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
1.2 The AI-207
Board
Overview
The DNx-AI-207 is a 16-channel sequential sampling A/D board that features
18-bit resolution and 12 software-selectable input gain ranges.
DNA-AI-207, DNR-AI-207, and DNF-AI-207 boards are compatible with the UEI
Cube, RACKtangle, and FLATRACK chassis respectively. These board versions
are electronically identical and differ only in mounting hardware. The DNA
version is designed to stack in a Cube chassis. The DNR/F versions are
designed to plug into the backplane of a RACK chassis.
The DNx-AI-207 is pin compatible with UEI’s DNx-AI-217 board, which offers
more resolution, higher sample rates and simultaneously sampling inputs.
1.2.1 ADC Input
Configuration Each AI-207 channel is sequentially sampled with a maximum board throughput
of 16 kS/s (16 kHz). This configuration allows an application with a single
channel enabled to sample that channel at up to 16 kS/s. For applications
monitoring multiple channels, each additional channel must share the 16 kHz
maximum bandwidth (e.g. maximum of 1 kS/s for 16 channels enabled, 2 kS/s
for 8 channels enabled, etc.).
Additionally, the DNx-AI-207 provides a dedicated CJC channel that can be
used for reading from the built-in CJC sensor on UEI’s DNA-STP-AI-U or
AI-207TC terminal panels. When used with DNA-STP-AI-U or 207TC panel, the
DNx-AI-207 also features a direct connection to thermocouples (with open TC
detection). The software included will perform all required TC linearization and
CJC compensation and return data in °C or °F if desired.
Another key feature of the DNx-AI-207 is the oversampling engine, allowing the
board to automatically acquire as many samples as possible for the given gain/
speed and average them, which dramatically improves the noise floor.
1.2.2 Compatibility If input cross talk and channel settling time issues are a problem, even when
connected to high impedance signal sources, consider a pin-compatible
simultaneously sampling analog input board, such as the AI-217.
1.2.3 Environmental
Conditions As with all UEI PowerDNA boards, the DNx-AI-207 can be operated in harsh
environments and has been tested at 5gvibration, 50gshock, -40 to +85°C
temperature. Each board provides 350 Vrms isolation between the board and its
enclosure, or any other installed boards.
1.2.4 Software
Support Software included with the DNx-AI-207 provides a comprehensive yet easy to
use API that supports all popular operating systems including Windows, Linux,
real-time operating systems such as QNX, RTX, VxWorks and more. The
UEIDAQ framework comes with bindings for various programming languages
such as C, C++, C#, VB.NET and scientific software packages such as
LabVIEW and Matlab, as well as supporting OPC servers.

DNx-AI-207 Analog Input Board
Chapter 1 4
Introduction
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
1.3 Features The AI-207 analog input board offers the following features:
•16 fully differential channels; additional dedicated CJC channel
•Maximum sampling rate of 1 kHz per channel when all channels are
enabled
•18-bit resolution
•±10 V input range
•Programmable gains: 1, 2, 4, 8, 10, 20, 40, 80, 100, 200, 400, 800
•Overvoltage protection (-40V to +55V)
•Dynamic autozero support
•Embedded averaging engine
1.4 Specification The technical specifications for the DNx-AI-207 are listed in Table 1-1 below.
Table 1-1 DNx-AI-207 Technical Specifications
Number of channels: 16 fully dierential plus
1 single-ended dedicated CJC channel
Programmable DIO line 1 (external trigger)
ADC resolution 18 bits
Sampling rate 1 S/s - 16 kS/s per channel;
16 kS/s max aggregate for entire board
FIFO size 512 samples
Input bias current ±5nA max, ±0.5nA typical
Input impedance 10MΩ
Gains 1,2,4,8,10,20,40,80,100,200,400,800
Frontend bandwidth 48kHz @ -3dB
Common mode rejection 100dB typical
Oversampling ratio 2 to 8192, selected automatically
Accuracy ±287.59 μV at ±10 V input range.
1MFBTFTFFUIF%/Y"*%BUBTIFFUGPSEFUBJMFE
UBCMFTBOEHSBQIT
Isolation 350 Vrms
Overvoltage protection -40V to +55V
Power consumption 1.4W (stand-by); 2.2W max
Operating temp. (tested) -40°C to +85°C
Operating humidity 95%, non-condencing
Vibration IEC 60068-2-6
IEC 60068-2-64
5 g, 10-500 Hz, sinusoidal
5 g (rms), 10-500Hz, broadband random
Shock IEC 60068-2-27 50 g, 3 ms half sine, 18 shocks @ 6 orientations
30 g, 11 ms half sine, 18 shocks @ 6 orientations
MTBF 637,000 hours

DNx-AI-207 Analog Input Board
Chapter 1 5
Introduction
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
1.5 Device
Architecture As shown in Figure 1-1, the DNX-AI-207 board has multiplexed inputs with a
single 18-bit converter.
Figure 1-1 Block Diagram of DNx-AI-207 I/O Board
The DNx-AI-207 analog input board features 16 differential input channels
designed for mid- to low-speed high-resolution signal measurement.
The DNx-AI-207 provides a dedicated CJC channel that can be used for reading
from a built-in CJC sensor on the DNA-STP-AI-U accessory terminal panel.
Static CJC compensation may be used when no CJC sensor is available (such
as when the I/O board is connected to a DNA-STP-37 accessory panel).
The DNx-AI-207 has an input multiplexer that sequentially selects each of the
available input signals for input to a cascaded fully differential programmable
gain amplifier (PGA) and then to an 18-bit successive approximation (SAR)
A/D converter. Logic on the isolated side controls channel switching, settling
time delays, and the conversion process. Also, it reads data from the converter
at the maximum possible rate and sends it over the isolation barrier to the non-
isolated logic for the further processing. The following additional channels,
which are used to improve quality of the acquired signal, are internally
connected to the multiplexers: internal ground, internal 2.5000V reference, and
CJC channel.
Users configure channels (e.g., enable/disable, gains, etc.) via a channel list,
which gets processed by the PowerDNAfirmware. Every channel is allocated a
required delay for best possible settling of the analog signal. Longer settling
times are required for greater gains. The rest of the time between channel
sampling is used for oversampling a single channel. The number of averages
used in this computation varies from 2 to 8096, depending on the selected
acquisition rate and, because of the complexity of channel list processing, is set
automatically by the firmware.
Analog Input Connector
32-bit 66-MHz bus
Optical Isolation
External Trigger
+13V 50mA max
AIn0+
CJC+
AIn0-
AIn15+
...
AIn15-
MULTIPLEXER
Buffers
PGA
Calibration
Reference
Internal Ground
Internal Reference
+
-
Control
Logic
Control
Logic
Sync. Lines
18-bit
A/D
DC/DC

DNx-AI-207 Analog Input Board
Chapter 1 6
Introduction
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
1.5.1 Multiplexer &
Program-
mable Gain
The analog input lines (Ain+ andAin- in Figure 1-1) enter through the DB-37
connector pins into high performance, fault-protected multiplexers, which
sequentially mux in eachchannel that is user-enabled. Channels are sampled at
the user-programmed sample rate. When the CJC is enabled, the multiplexer
also switches in the CJC channel, and when the autozero feature is enabled, the
multiplexer additionally switches in internal ground to provide an autozero
reference for each gain setting selected.
TheAI-207supports12user-programmablegains: 1, 2, 4,8, 10,20, 40, 80, 100,
200, 400, and 800x gains.
1.5.2 Maximum
Sample Rate When acquiring thermocouple data, UEI recommends a maximum sample
rate of 10 Hz.
For non-thermocouple applications, several configuration options affect the
maximum allowable sample rate for a channel: the number of analog input
channels enabled, the gain selected, and whether or not autozero is enabled.
(See Section 1.5.3 for more information about autozero functionality).
The number of input channels passing through the input multiplexer will affect
the maximum allowable sample rate per channel:
•For example, if all 16 channels are enabled, with no CJC and no autozero,
the result is 16 inputs to the multiplexer. With a maximum aggregate
sampling rate of 16 kS/s (16 kHz) for the board, the maximum per channel
will be 1 kS/s (1 kHz).
•If only 8 channels are enabled, with no CJC and no autozero, that results in
8 inputs to the multiplexer. With a maximum sampling rate of 16 kS/s for the
board, the maximum per channel will be 2 kS/s.
Note that each gain uses a gain-specific initial settling time to ensure
measurement accuracy, which can limit the sampling rate of the channel. The
Minimum Settling Time (see Table 1-2) is the shortest time that the firmware
allows a channel to settle. When the sample rate and channel configuration are
programmed, the firmware allocates the minimum time for each channel
depending on the gain selected.
Table 1-2 Gains vs Settling Times and Maximum Sampling Rates
Input Range Gain Min Settling Time (us) Maximum Sampling Freq (Hz)
±10V 1 60 Max sampling rate (16 kHz)
±5V 2 70 14,285
±2.5V 4 80 12,500
±1.25V 8 90 11,111
±1V 10 100 10,000
±500mV 20 120 8,333
±250mV 40 150 6,666
±125mV 80 160 6,250

DNx-AI-207 Analog Input Board
Chapter 1 7
Introduction
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
Enabling autozero also affects the maximum sample rate of the channels. The
following section (Section 1.5.3) describes this.
1.5.3 Autozero The DNx-AI-207 provides an automated offset autozero feature, which removes
any offset fluctuations for every signal reading when running the device over
temperature and over time. This reduces temperature drift to a few microvolts
over the full specified range.
When autozero is enabled, internal references are sampled and measurements
are stored for the autozeroing calculation.The firmware schedules the sampling
of the internal reference for the different gains programmed through the channel
multiplexer. This scheduling will lower the maximum sample rate of channels.
1.5.4 Oversampling
Engine Another feature, the oversampling engine, permits the DNx-AI-207 to acquire as
many samples as possible for the given gain/speed and automatically average
them, dramatically improving noise rejection. This happens under firmware
control and is not programmable by the user.
1.5.5 Data Storage
and
Timestamping
Acquired samples are stored in a 512 word FIFO, in the order that channels are
enabled in the channel list.
Users can optionally timestamp the acquired samples. The timestamp will be
stored as the first or last entry in the user-defined list of channels to acquire.
Whether to store the timestamp in the first position or in the last position is user-
programmable.
±100mV 100 180 5,555
±50mV 200 200 5,000
±25mV 400 240 4,166
±12.5mV 800 280 3,571
Table 1-2 Gains vs Settling Times and Maximum Sampling Rates
Input Range Gain Min Settling Time (us) Maximum Sampling Freq (Hz)

DNx-AI-207 Analog Input Board
Chapter 1 8
Introduction
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
1.6 Indicators The DNx-AI-207 indicators are described in Table 1-3 and illustrated in
Figure 1-2.
Figure 1-2 Photo of DNA-AI-207 Analog Input Board
Table 1-3 AI-207 Indicators
LED Name Description
RDY Indicates board is powered up and operational
STS Indicates which mode the board is running in:
•OFF: Configuration mode, (e.g., configuring channels,
running in point-by-point mode)
•ON: Operation mode, (e.g., running in VMap or ACB
mode)
DB-37 (female)
37-pin I/O connector
RDY LED
STS LED
DNA bus
connector

DNx-AI-207 Analog Input Board
Chapter 1 9
Introduction
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
1.7 Connectors
and Wiring
(pinout)
The AI-207 analog input board uses a 37-pin female D-Sub connector with the
following pinout:
Figure 1-3 Pinout of the DNx-AI-207 Analog Input Board
The AI-207 uses a 37-pin D-sub connector. The following signals are located at
the connector:
AIN0- 37 19 AIN0+
AIN1- 36 18 AIN1+
AIN2+ 35 17 AGND
AIN3+ 34 16 AIN2-
AIN4+ 33 15 AIN3-
AIN5+ 32 14 AIN4-
CJC+ 31 13 AIN5-
AIN6- 30 12 AIN6+
AIN7- 29 11 AIN7+
AIN8- 28 10 AIN8+
AIN9- 27 9 AIN9+
AIN10+ 26 8 AGND
AIN11+ 25 7 AIN10-
AIN12+ 24 6 AIN11-
AIN13+ 23 5 AIN12-
+13V 50mA 22 4 AIN13-
AIN14- 21 3 AIN14+
AIN15- 20 2 AIN15+
1EXT_TRIG
DB-37 (female)
37-pin connector:
•AIN0± – AIN15± input channels, differential mode
The AI-207 measures inputs between AIn+ and AIn-
as long as common mode voltage is within limits. For
single ended connections,AIn- should be connected
to AGND
•+13V 50mA provides current
•CJC+ cold junction compensation return line from
DNA-STP-AI-U
•AGND board analog ground, isolated from system ground
•EXT_TRIG accepts an external trigger signal to the board

DNx-AI-207 Analog Input Board
Chapter 1 10
Introduction
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
1.7.1 Analog Input
Ground
Connections
To avoid errors caused by common mode voltages on analog inputs, follow the
recommended grounding guidelines in Figure 1-4 below.
Figure 1-4 Recommended Ground Connections for Analog Inputs
Because all analog input channels inAI-201/202/207/208/225 boards are
isolated as a group, you can connect board AGND to the ground of the signal
source and eliminate the resistors shown in Figure 1-4 for floating differential
input signals.
Input
Configuration
Type of Input
dednuorGgnitaolF
Typical Signal Sources:
Thermocouples
DC Voltage Sources
Instruments or sensors
with isolated outputs
Typical Signal Sources:
Instruments or sensors
with non-isolated outputs
Differential
The resistor (10k < R < 100k) provides
a return path to ground for bias current.
Single-Ended,
Ground
Referenced
+
_Ret AGnd
DNA
-
STP
-
37
,
AInX
V
in
Sig
DNA-STP-AI-U
+
_Ret AGnd
DNA-STP-AI-U
AInX
V
in
Sig
+
_Ret AGnd
DNA-STP-AI-U
AInX
V
in
Sig
+
_Ret AGnd
DNA-STP-AI-U
AInX
V
in
Sig
grounds are at the same potential.
Add this connection to ensure that both
NOT RECOMMENDED

DNx-AI-207 Analog Input Board
Chapter 1 11
Introduction
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
1.8 Data
Represen-
tation
The AI-207 board is designed with 18-bitA/D converters. The AI-207 board can
return 18-bit straight binary data in 32-bit words.
The 18-bit data is represented as follows:
<pos> represents a position in the output buffer. Upon reset, every entry in the
outputbufferis filled with its relative position number.Ifyoureadsequentialdata,
it could mean the ADC failed to start.
To convert data into floating point, use the following formula:
1.8.1 CJC Data Raw CJC Voltage from the AI-207 may be represented as:
For example, if the voltage read from Channel 33 (the CJC channel) is 0.87, the
CJC Temperature is:
Bit Name Description Reset State
17-0 ADCDATA Upper 18 bits of data, straight
binary <pos>
Volts
Raw&3FFFF
20V
218 1–
----------------
10V–
gain factor
-----------------------------------------------------------------------------------=
Temp. Scale Calculation CJC Temperature
Kelvin 0.87/0.00295 294.9 °K
Celsius 294.9 – 273.15 21.75 °C
Fahrenheit 1.8 x 21.75 + 32 71.75 °F
TKelvin CJCVoltage
0.00295
--------------------------------=

DNx-AI-207 Analog Input Board
Chapter 2 12
Programming with the High-Level API
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
Chapter 2 Programming with the High-Level API
This chapter provides the following information about using the UeiDaq
high-level FrameworkAPI to program the DNx-AI-207:
•About the High-level Framework (Section 2.1)
•Creating a Session (Section 2.2)
•Configuring Channels (Section 2.3)
•Configuring Autozero (Section 2.4)
•Configuring the Timing (Section 2.5)
•Reading Data (Section 2.6)
•Cleaning-up the Session (Section 2.7)
2.1 About the
High-level
Framework
UeiDaq Framework is object oriented and its objects can be manipulated in the
same manner from different development environments, such as Visual C++,
Visual Basic, or LabVIEW.
UeiDaq Framework is bundled with examples for supported programming
languages. Examples are located under the UEI programs group in:
•Start » Programs » UEI » Framework » Examples
The following sections focus on the C++ API, but the concept is the same no
matter which programming language you use.
Please refer to the “UeiDaq Framework User Manual” for more information on
use of other programming languages.
2.2 Creating a
Session The Session object controls all operations on your PowerDNA device.
Therefore, the first task is to create a session object:
CUeiSession session;
2.3 Configuring
Channels UeiDaq Framework uses resource strings to select which device, subsystem
and channels to use within a session. The resource string syntax is similar to a
web URL such as:
<device class>://<IP address>/<Device Id>/<Subsystem><Channel list>
For PowerDNA the device class is pdna.
2.3.1 Voltage
Measurement To program the analog input circuitry, configure the channel list using the
session’s object method “CreateAIChannel”.
For example, the following resource string selects analog input channels 0,2,3,4
on device 1 at IP address 192.168.100.2: “pdna://192.168.100.2/Dev1/
Ai0,2,3,4”
The gain applied on each channel is specified by using low and high input limits.
For example, the AI-207 available gains are 1, 2, 4, 8, 10, 20, 40, 80,100, 200,
400, 800 and the maximum input range is [-10V, 10V].
To select the gain of 100, you need to specify input limits of [-0.1V, 0.1V].

DNx-AI-207 Analog Input Board
Chapter 2 13
Programming with the High-Level API
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
// Configure channels 0,1 to use a gain of 100 in differential mode
session.CreateAIChannel(“pdna://192.168.100.2/Dev0/Ai0,1”,
-0.1, 0.1,
UeiAIChannelInputModeDifferential);
2.3.2 Thermocouple
Measurement Thermocouplemeasurementsareconfiguredusing the Sessionobject’smethod
“CreateTCChannel”.
Themeasurements will be scaled in the unitspecified bythe “temperature scale”
parameter.
Depending on your hardware, you can specify whether the scaling calculation
will use a constant cold-junction temperature or whether you will measure it from
a sensor built in the DNx-STP-AIU connector block
// Add 4 channels (0 to 3) to the channel list and configure
// them to measure a temperature between 0.0 and 1000.0 degrees C
// from type J thermocouples, scale temperatures in Celsius
// degrees and using CJC built-in compensation from the STP-AI-U,
// in differential mode.
session.CreateTCChannel(“pdna://192.168.100.2/dev0/Ai0:3”,
0, 1000.0,
UeiThermocoupleTypeJ,
UeiTemperatureScaleCelsius,
UeiColdJunctionCompensationBuiltIn,
25.0,
“”,
UeiAIChannelInputModeDifferential);
2.4 Configuring
Autozero The AI-207 offers an offset autozero, which removes any offset fluctuations over
the temperature range and/or run time for every acquired signal reading. This
reduces temperature drift to a few microvolts over the full specified range.
The autozero feature is enabled on a per board basis. By enabling a single
channel, all channels will use this feature.
Autozero must be configured before the session start. Use the following code to
enable autozero:
CUeiAIChannel* aiChan =
dynamic_cast<CUeiAIChannel*>(session.GetChannel(0));
aiChan->EnableAutoZero(true);
Alternatively, pass a false condition to EnableAutoZero() to disable the
feature.

DNx-AI-207 Analog Input Board
Chapter 2 14
Programming with the High-Level API
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
2.5 Configuring
the Timing You can configure the AI-207 to run in simple mode (point by point) or buffered
mode (ACB mode).
In simple mode, the delay between samples is determined by software on the
host computer.
In buffered mode, the delay between samples is determined by the AI-207 on-
board clock.
The following sample shows how to configure the simple mode. Please refer to
the “UeiDaq Framework User Manual” to learn how to use the other timing
modes.
session.ConfigureTimingForSimpleIO();
2.6 Reading Data Reading data from the AI-207 is done using a reader object. There is a reader
object to read raw data coming straight from theA/D converter. There is also a
reader object to read data already scaled to volts or mV/V.
The following sample code shows how to create a scaled reader object and read
samples.
// Create a reader and link it to the session’s stream
CueiAnalogScaledReader reader(session.GetDataStream());
// read one scan, the buffer must be big enough to contain
// one value per channel
double data[2];
reader.ReadSingleScan(data);
2.7 Cleaning-up
the Session The session object cleans itself up when it goes out of scope or when it is
destroyed. However, you can also clean up the session manually (to reuse the
object with a different set of channels or parameters), as follows.
session.CleanUp();

DNx-AI-207 Analog Input Board
Chapter 3 15
Programming with the Low-Level API
December 2017 www.ueidaq.com
508.921.4600
© Copyright 2017
United Electronic Industries, Inc.
Chapter 3 Programming with the Low-Level API
This chapter provides the following information about programming the AI-207
using the low-level API:
•About the Low-level API (Section 3.1)
•Low-level Functions (Section 3.2)
•Low-level Programming Techniques (Section 3.3)
•Programming the AI-207 (Immediate Mode) (Section 3.4)
•Programming Scan Rate (Section 3.5)
•Configuring Channels & Scan Rate in ACB Mode (Section 3.6)
3.1 About the
Low-level API The low-levelAPI provides direct access to the DAQBIOS protocol structure and
registers in C. The low-levelAPI is intended for speed-optimization, when
programming unconventional functionality, or when programming under Linux or
real-time operating systems.
When programming in Windows OS, however, we recommend that you use the
UeiDaq high-level FrameworkAPI (see Chapter 2).TheFrameworkextends the
low-level API with additional functionality that makes programming easier and
faster.
For additional information regarding low-level programming, refer to the
“PowerDNAAPI Reference Manual” located in the following directories:
•On Linux systems:
<PowerDNA-x.y.z>/docs
•On Windows systems:
Start » All Programs » UEI » PowerDNA » Documentation
3.2 Low-level
Functions Table 3-1 provides a summary of AI-207-specific functions.All low-level
functions are described in detail in the PowerDNAAPI Reference Manual.
Table 3-1 Summary of Low-level API Functions for DNx-AI-207
Function Description
DqAdv207Read Configures and reads data (in point-to-point mode)
On first call, configures AI-207 with user-programmed
channel list parameters. The default sample rate is set to
10 Hz; however, users can reprogram the rate after the
first call of this function.
Upon subsequent calls, reads data from AI-207 enabled
channels and converts data using channel-specific
configuration parameters, such as channel gain.
DqAdv207ReadChannel Returns raw measurements of internal channel references
DqAdv207SetAutozero Enables/disables autozeroing capability. By default,
autozero is OFF
This manual suits for next models
2
Table of contents