background image

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.

Summary of Contents for DNA-AI-207

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

Page 2: ...668 2350 Also see the FAQs and online Live Help feature on our web site Internet Support Support support ueidaq com 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 critica...

Page 3: ...inout 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 Sess...

Page 4: ...ecember 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 ...

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

Page 6: ...on 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...

Page 7: ...r 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 Manua...

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

Page 9: ...us 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 81...

Page 10: ...nel 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...

Page 11: ... 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 w...

Page 12: ...nnel 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 Ti...

Page 13: ...llustrated 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 LE...

Page 14: ...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 1 EXT_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 voltag...

Page 15: ...he signal source and eliminate the resistors shown in Figure 1 4 for floating differential input signals Input Configuration Type of Input d e d n u o r G g n i t a o l F 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 p...

Page 16: ...ffer is filled with its relative position number If you read sequential data 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...

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

Page 18: ...ure 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 ...

Page 19: ...onfigureTimingForSimpleIO 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 the A 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 Cuei...

Page 20: ... The Framework extends the low level API with additional functionality that makes programming easier and faster For additional information regarding low level programming refer to the PowerDNA API 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 su...

Page 21: ...Hz rtDMAP VMAP Designed for closed loop control applications Users set up a map of I O boards and channels from which to acquire data Input data is stored in I O board FIFOs at a rate paced by its hardware clock a single API call refresh paced by the user application causes data to be collected directly from I O board FIFOs and packed for delivery to the user application rtDMAP collects only 1 dat...

Page 22: ...o hold the channel list and sets channels 0 through CHAN_LIST_SZ 1 to be configured with a gain of 1 and set to differential mode for i 0 i CHAN_LIST_SZ i cl i i DQ_LNCL_GAIN DQ_AI208_GAIN_1 DQ_LNCL_DIFF DQ_LNCL_GAIN is a macro that uses 208 GAIN defines these are AI 208 defines that also map to the supported AI 207 gain levels DQ_AI208_GAIN_1 10v DQ_AI208_GAIN_2 5v through DQ_AI208_GAIN_800 0 012...

Page 23: ...ta Note that the final two parameters would be pointers to arrays to hold acquired data but in this first read that data is disregarded The DqAdv207Read function returns status flags one of which indicates the configuration status Your program should not advance until DqAdv207Read is passing back settled data The DQ_DATA_NOTREADY flag signifies new data has not yet settled on the IOM side and you ...

Page 24: ...an rate in immediate mode i e to 100 Hz in this example you can use the following API Program the scan clock aka CL clock to acquire 100 0 scan s The function DqCmdSetClock can program clocks on several I O boards at once Use the following to program one I O board clkEntries 1 clkSet dev DEVN DQ_LASTDEV last and only device in the list clkSet ss DQ_SS0IN program input subsystem clock clkSet clocks...

Page 25: ...ert the CJC temperature reading to the correct temperature scale and then convert the acquired channel data to the thermocouple temperature Note that thermocouple constants can be found in TCConversion h which is provided in the same directory with the Sample207_Thermocouple sample code convert CJC channel voltage to temperature Kelvin cjcTemp fdata CHANNELS 1 0 00295 convert Kelvin to the tempera...

Page 26: ...ist to control the sampling of each channel through the mux The CV clocks also called conversion clocks are typically referred to with simultaneously sampled I O boards For the AI 207 you will use the CL clock for example when using ACB mode CLCLKSRC0 programs a clock generated locally on the I O board divided down from the 66 MHz system clock on the board CLCLKSRC1 specifies a clock generated ext...

Page 27: ... selects the internal channel list clock cl source as a time base To select a clock generated external to the board and routed in over the chassis SYNC bus for example a 1PPS synchronized clock gen erated on the CPU select DQ_LN_CLCKSRC1 Refer to the previous section for more information The channel list and other configuration parameters get passed to DqAcbInitOps DqAcbInitOps bcb Config 0 TrigSi...

Page 28: ...frames frames in the buffer uint32 ppevent packets per DQ_ePacketDone event uint32 mode mode of operations Single Cycle Recycled error handling uint32 dirflags transfer direction and additional flags uint32 maxpkt how much data to accumulate in the packet before sending 0 default uint32 hwbuf how much data to keep on the cube 0 default uint32 hostringsz number of packets in the host ring buffer 0 ...

Page 29: ...pin connector scheme The DNA STP 37 is connected to the I O board via either DNA CBL 37 or DNA CBL 37S series cables The dimensions of the STP 37 board are 4 2w x 2 8d x1 0h inch or 10 6 x 7 1 x 7 6 cm with standoffs The weight of the STP 37 board is 2 4 ounces or 69 grams DNA STP AI U Universal screw terminal panel with embedded cold junction compensation CJC DNA STP AI 207TC Screw terminal panel...

Page 30: ... 24 CAUTION 2 CJC Sensor 5 Cleaning up 14 Configuring Excitation 12 Configuring the Timing 13 14 Connectors 9 Conventions 2 Creating a Session 12 D Data Representation 11 F Features 4 G Ground Connections 10 H High Level API 12 I Isolation 3 L Low Level API 15 O Organization 1 P Pinout 9 Programming 12 15 R Reading Data 14 S Screw Terminal Panels 24 Specifications 4 STP AI U 5 Support ii Support e...

Reviews: