Measurement Computing USB-1616HS-2 User Manual

Measurement Computing USB-1616HS-2 User Manual

Usb-based high-speed analog input and digital i/o module
Table of Contents

Advertisement

Quick Links

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the USB-1616HS-2 and is the answer not in the manual?

Questions and answers

Summary of Contents for Measurement Computing USB-1616HS-2

  • Page 2 USB-1616HS-2 User's Guide Document Revision 2, March, 2009 © Copyright 2009, Measurement Computing Corporation...
  • Page 3 Your new Measurement Computing product comes with a fantastic extra — Management committed to your satisfaction! Thank you for choosing a Measurement Computing product—and congratulations! You own the finest, and you can now enjoy the protection of the most comprehensive warranties and unmatched phone tech support. It’s the embodiment of our mission: ...
  • Page 4 Trademark and Copyright Information TracerDAQ, Universal Library, Measurement Computing Corporation, and the Measurement Computing logo are either trademarks or registered trademarks of Measurement Computing Corporation. Windows, Microsoft, and Visual Studio are either trademarks or registered trademarks of Microsoft Corporation LabVIEW is a trademark of National Instruments. CompactFlash is a registered trademark of SanDisk Corporation.
  • Page 5: Table Of Contents

    Table of Contents Preface About this User's Guide ........................7 What you will learn from this user's guide ......................7 Conventions used in this user's guide ......................... 7 Where to find more information ......................... 7 Chapter 1 Introducing the USB-1616HS-2 ......................8 Overview: USB-1616HS-2 features ........................
  • Page 6 USB-1616HS-2 User's Guide Timer outputs ..............................34 Example: Timer outputs ..............................34 Using multiple USB-1616HS-2s per PC ......................35 Using detection setpoints for output control ..................... 35 What are detection setpoints? ............................35 Setpoint configuration overview ............................35 Setpoint configuration ..............................37 Using the setpoint status register............................38 Examples of control outputs ............................38...
  • Page 7: Preface

    MCC's Universal Library Function Reference is available on our web site at www.mccdaq.com/PDFmanuals/sm-ul-functions.pdf. ™  User’s Guide is available on our web site at MCC's Universal Library for LabVIEW www.mccdaq.com/PDFmanuals/SM-UL-LabVIEW.pdf. USB-1616HS-2 User's Guide (this document) is also available on our web site at www.mccdaq.com/PDFmanuals/USB-1616HS-2.pdf.
  • Page 8: Introducing The Usb-1616Hs-2

    Chapter 1 Introducing the USB-1616HS-2 Overview: USB-1616HS-2 features ® ® The USB-1616HS-2 is supported under popular Microsoft Windows operating systems. The USB-1616HS-2 board is a multifunction measurement and control board designed for the USB bus. The USB-1616HS-2 provides either eight differential or 16 single-ended analog inputs with 16-bit resolution. It offers seven software-selectable analog input ranges of ±10 V, ±5 V, ±2 V, ±1 V, ±0.5 V, ±0.2 V, and ±0.1V.
  • Page 9: Installing The Usb-1616Hs-2

    Chapter 2 Installing the USB-1616HS-2 What comes with your USB-1616HS-2 shipment? As you unpack your USB-1616HS-2, verify that the following components are included. Hardware  USB-1616HS-2  USB cable (2-meter length)  TR-2U power supply and CA-1* line cord AC-to-DC power supply cord plugs into the external power connector of the USB-1616HS-2. * European customers: Contact Measurement Computing to order the CA-261 line cord for your region.
  • Page 10: Optional Components

    USB-1616HS-2 User's Guide Installing the USB-1616HS-2 Optional components Expansion devices and cables and that are compatible with the USB-1616HS-2 and must be ordered separately. If you ordered any of the following products with your device, they should be included with your shipment.
  • Page 11: Installing The Software

    USB-1616HS-2 User's Guide Installing the USB-1616HS-2 Installing the software Refer to the Quick Start Guide for instructions on installing the software on the Measurement Computing Data Acquisition Software CD. This booklet is available in PDF at www.mccdaq.com/PDFmanuals/DAQ-Software- Quick-Start.pdf. We recommend that you download the latest Windows Update onto your computer before installing and operating the USB-1616HS-2.
  • Page 12: Configuring The Hardware

    USB-1616HS-2 User's Guide Installing the USB-1616HS-2 power LED (bottom LED) blinks during device detection and initialization, and then remains solid if properly detected. If not, check if the USB-1616HS-2 has sufficient power. When the board is first powered on, there is usually a momentary delay before the power LED begins to blink, or come on solid.
  • Page 13: Screw Terminal Pin Outs

    USB-1616HS-2 User's Guide Installing the USB-1616HS-2 Screw terminal pin outs USB-1616HS-2 screw terminal pin out – single-ended connections Analog common (A) Digital common (D) Analog output 0 (AO0) FIRSTPORTA Bit 0 (A0) Analog output 1 (AO1) FIRSTPORTA Bit 1 (A1)
  • Page 14: Dsub25F Expansion Connector

    USB-1616HS-2 User's Guide Installing the USB-1616HS-2 USB-1616HS-2 screw terminal pin out – differential connections Analog common (A) Digital common (D) Analog output 0 (AO0) FIRSTPORTA Bit 0 (A0) Analog output 1 (AO1) FIRSTPORTA Bit 1 (A1) FIRSTPORTA Bit 2 (A2) FIRSTPORTA Bit 3 (A3) Analog common (A)
  • Page 15: Cabling

    USB-1616HS-2 User's Guide Installing the USB-1616HS-2 Cabling Use a CA-96A 25-pin expansion cable (CA-96A expansion cable) to connect to the USB-1616HS-2's 25-pin expansion connector. Figure 3. CA-96A expansion cable...
  • Page 16: Chapter 3 Functional Details

    Chapter 3 Functional Details This chapter contains detailed information on all of the features available from the board, including:  a diagram and explanations of physical board components  a functional block diagram  information on how to use the signals generated by the board ...
  • Page 17 USB-1616HS-2 User's Guide Functional Details Figure 5. USB-1616HS-2 components – rear view External power connector Although the USB-1616HS-2 is powered by a USB port on a host PC, an external power connector may also be required to provide sufficient power for the USB-1616HS-2.
  • Page 18: Usb-1616Hs-2 Block Diagram

    USB-1616HS-2 User's Guide Functional Details USB-1616HS-2 block diagram Figure 6 shows a simplified block diagram of the USB-1616HS-2. This board provides all of the functional elements shown in the figure. 16-bit 1 MHz D/A converters output clock 8 diff/16 SE...
  • Page 19: Analog Input

    USB-1616HS-2 User's Guide Functional Details Analog input The USB-1616HS-2 has a 16-bit, 1-MHz A/D coupled with 16 single-ended, or eight differential analog inputs. Seven software programmable ranges provide inputs from ±10 V to ±100 mV full scale. Analog input scanning The USB-1616HS-2 has several scanning modes to address various applications.
  • Page 20 USB-1616HS-2 User's Guide Functional Details If you want 256 oversamples, then each analog channel in the scan group will take 256 µs, and the returned 16- bit value represents an average of 256 consecutive 1 µs samples of that channel. The acquisition is triggered and 16-bit values—each representing an average of 256—stream to the PC via the USB cable.
  • Page 21 USB-1616HS-2 User's Guide Functional Details The counter channels may return only the lower 16-bits of count value if that is sufficient for the application. They could also return the full 32-bit result if necessary. Similarly, the digital input channel could be the full 24 bits if desired or only eight bits if that is sufficient.
  • Page 22: Thermocouple Input

    USB-1616HS-2 User's Guide Functional Details Thermocouple input You can configure up to eight analog inputs in differential mode on the USB-1616HS-2 to accept a thermocouple (TC) input. Built-in cold-junction sensors are provided for each of the screw-terminal connectors, and any TC type can be attached to any of the eight thermocouple channels.
  • Page 23: Analog Output

    USB-1616HS-2 User's Guide Functional Details Although averaging can be effective, it suffers from several drawbacks:  Noise in measurements only decreases as the square root of the number of measurements—reducing RMS noise significantly may require many samples. Thus, averaging is suited to low-speed applications that can provide many samples.
  • Page 24: Digital I/O

    USB-1616HS-2 User's Guide Functional Details Due to the time it takes to shift the digital data out to the DACs, plus the actual settling time of the digital-to- analog conversion, the DACs actually take up to 4 µs after the start of scan to settle on the updated value.
  • Page 25: Hardware Analog Triggering

    USB-1616HS-2 User's Guide Functional Details Hardware analog triggering The USB-1616HS-2 uses true analog triggering in which the trigger level you program sets an analog DAC, which is then compared in hardware to the analog input level on the selected channel. This guarantees an analog trigger latency that is less than 1 µs.
  • Page 26: Stop Trigger Modes

    USB-1616HS-2 User's Guide Functional Details Software-based triggering usually results in a long period of inactivity between the trigger condition being detected and the data being acquired. However, the USB-1616HS-2 avoids this situation by using pre-trigger data. When software-based-triggering is used, and the PC detects the trigger condition—which may be thousands of readings after the actual occurrence of the signal—the USB-1616HS-2 driver automatically looks...
  • Page 27: Tips For Making High-Speed Counter Measurements (> 1 Mhz)

    USB-1616HS-2 User's Guide Functional Details When reading synchronously, all counters are set to zero at the start of an acquisition. When reading asynchronously, counters may be cleared on each read, count up continually, or count until the 16-bit or 32-bit limit has been reached.
  • Page 28: Debounce Modes

    USB-1616HS-2 User's Guide Functional Details The counter rolls over on the 16-bit (counter low) boundary, or on the 32-bit (counter high) boundary. Clear on read mode The counter counts up and is cleared after each read. By default, the counter counts up and only clears the counter at the start of a new scan command.
  • Page 29 USB-1616HS-2 User's Guide Functional Details There are 16 different debounce times. In either debounce mode, the debounce time selected determines how fast the signal can change and still be recognized. The two debounce modes are trigger after stable and trigger before stable. A discussion of the two modes follows.
  • Page 30 USB-1616HS-2 User's Guide Functional Details Figure 15. Debounce module – Trigger before stable mode The following time periods (T1 through T6) pertain to the above drawing.  T1 – In the illustrated example, the input signal is low for the debounce time (equal to T1); therefore when the input edge arrives at the end of time period T1, it is accepted and the output (of the debounce module) goes high.
  • Page 31: Encoder Mode

    USB-1616HS-2 User's Guide Functional Details Use trigger before stable mode when the input signal has groups of glitches and each group is to be counted as one. The trigger before stable mode recognizes and counts the first glitch within a group but rejects the subsequent glitches within the group if the debounce time is set accordingly.
  • Page 32 USB-1616HS-2 User's Guide Functional Details debounced from 500 ns to 25.5 ms (total of 16 selections) to eliminate extraneous noise or switch induced transients. Encoder input signals must be within -5V to +10V and the switching threshold is TTL (1.3V).
  • Page 33 USB-1616HS-2 User's Guide Functional Details Maximizing encoder accuracy If there are 512 pulses on A, then the encoder position is accurate to within 360°/512. You can get even greater accuracy by counting not only rising edges on A but also falling edges on A, giving position accuracy to 360 degrees/1024.
  • Page 34: Timer Outputs

    USB-1616HS-2 User's Guide Functional Details Each signal (A, B) can be connected as a single-ended connection with respect to the common digital ground (GND). Both encoders need power from an external power source (typically +5 VDC). Connect each encoder's power input to the external power source. Connect the return to digital common (GND) on the same source.
  • Page 35: Using Multiple Usb-1616Hs-2S Per Pc

    USB-1616HS-2 User's Guide Functional Details Both timer outputs can also be updated during an acquisition as the result of setpoints applied to analog or digital inputs. Using multiple USB-1616HS-2s per PC USB-1616HS-2 features can be replicated up to four times, as up to four devices can be connected to a single host PC.
  • Page 36 USB-1616HS-2 User's Guide Functional Details A channel's detect signal shows a rising edge and is True (1) when the channel's data meets the setpoint criteria. The detect signal shows a falling edge and is False (0) when the channel's data does not meet the setpoint criteria.
  • Page 37: Setpoint Configuration

    USB-1616HS-2 User's Guide Functional Details Detection setpoints act on 16-bit data only. Since the USB-1616HS-2 has 32-bit counters, data is returned 16-bits at a time. The lower word, the higher word, or both lower and higher words can be part of the scan group.
  • Page 38: Using The Setpoint Status Register

    USB-1616HS-2 User's Guide Functional Details Using the setpoint status register You can use the setpoint status register to check the current state of the 16 possible setpoints. In the register, Setpoint 0 is the least-significant bit and Setpoint 15 is the most-significant bit. Each setpoint is assigned a value of 0 or 1.
  • Page 39 USB-1616HS-2 User's Guide Functional Details Figure 26. Analog inputs with setpoints update on True and False In the channel 5 example, the setpoint placed on analog Channel 5 updated DAC1 with 0.0 V. The update occurred when channel 5's input was less than the setpoint (limit A). When the value of channel 5's input was above setpoint limit A, the condition of <A was false and DAC1 was then updated with -1.0 V.
  • Page 40 USB-1616HS-2 User's Guide Functional Details Figure 27. Timer output update on True and False Using the hysteresis function Update mode: N/A, the hysteresis option has a forced update built into the function Criteria used: Window criteria for above and below the set limits Figure 28 shows analog input Channel 3 with a setpoint which defines two 16-bit limits, Limit A (High) and Limit B (Low).
  • Page 41 USB-1616HS-2 User's Guide Functional Details Using multiple inputs to control one DAC output Update mode: Rising edge, for each of two channels Criteria used: Inside window, for each of two channels The figure below shows how multiple inputs can update one output. In the following figure the DAC2 analog output is being updated.
  • Page 42: Detection Setpoint Details

    USB-1616HS-2 User's Guide Functional Details At this point you can update FIRSTPORTC or DACs Figure 30. Channel 1 in totalizing counter mode, inside the window setpoint Detection setpoint details Controlling analog, digital, and timer outputs You can program each setpoint with an 8-bit digital output byte and corresponding 8-bit mask byte. When the setpoint criteria is met, the FIRSTPORTC digital output port can be updated with the given byte and mask.
  • Page 43 USB-1616HS-2 User's Guide Functional Details For example, you set an acquisition to have a scan rate of 100 kHz, which means each scan period is 10 µs. Within the scan period you sample six analog input channels. These are shown in the following figure as channels 1 through 6.
  • Page 44: Calibrating The Usb-1616Hs-2

    Chapter 4 Calibrating the USB-1616HS-2 Every range of a USB-1616HS-2 device is calibrated at the factory using a digital NIST traceable calibration method. This method works by storing a correction factor for each range on the unit at the time of calibration. For analog inputs, the user can adjust the calibration of the board while it is installed in the acquisition system without destroying the factory calibration supplied with the board.
  • Page 45: Chapter 5 Specifications

    Chapter 5 Specifications Typical for 25 °C unless otherwise specified. Specifications in italic text are guaranteed by design. Analog input Table 1. Analog input specifications A/D converter type Successive approximation Resolution 16 bits Number of channels 16 single-ended/8 differential, software-selectable. Up to 48 additional analog inputs per module are available with the optional AI-EXP48 module.
  • Page 46: Thermocouples

    USB-1616HS-2 User's Guide Specifications Note 1: Specifications assume differential input single-channel scan, 1 MHz scan rate, unfiltered, CMV=0.0 V, 30 minute warm-up, exclusive of noise, range is +FS to -FS. Note 2: Noise reflects 10,000 samples at 1 MHz, typical, differential short.
  • Page 47: Digital Input/Output

    USB-1616HS-2 User's Guide Specifications Digital input/output Table 5. Digital input/output specifications Number of I/O Ports Three banks of eight. Each port is programmable as input or output Input scanning modes Two programmable  Asynchronous, under program control at any time relative to input scanning ...
  • Page 48: Counters

    USB-1616HS-2 User's Guide Specifications Counters Counter inputs can be scanned based on an internal programmable timer or an external clock source. Table 6. Counter specifications Channels 4 independent Resolution 32-bit Input frequency 20 MHz maximum Input signal range -5 V to 10 V...
  • Page 49: Triggering

    USB-1616HS-2 User's Guide Specifications Triggering Table 8. Trigger sources and modes Trigger source Explanation Single channel analog Any analog input channel can be software programmed as hardware trigger the analog trigger channel, including any of the analog expansion channels.  Input signal range: -10 V to +10 V maximum ...
  • Page 50: External Power

    USB-1616HS-2 User's Guide Specifications External power Table 11. External power specifications (Note 5) Connector Switchcraft # RAPC-712 6 to 16 VDC (used when USB port supplies insufficient power, or when an independent Power range power supply is desired) 20 V for 10 seconds, maximum...
  • Page 51 USB-1616HS-2 User's Guide Specifications Table 16. USB-1616HS-2 screw terminal pin out – single-ended connections Analog common (A) Digital common (D) Analog output 0 (AO0) FIRSTPORTA Bit 0 (A0) Analog output 1 (AO1) FIRSTPORTA Bit 1 (A1) FIRSTPORTA Bit 2 (A2) FIRSTPORTA Bit 3 (A3) Analog common (A)
  • Page 52 USB-1616HS-2 User's Guide Specifications Table 17. USB-1616HS-2 screw terminal pin out – differential connections Analog common (A) Digital common (D) Analog output 0 (AO0) FIRSTPORTA Bit 0 (A0) Analog output 1 (AO1) FIRSTPORTA Bit 1 (A1) FIRSTPORTA Bit 2 (A2) FIRSTPORTA Bit 3 (A3) Analog common (A)
  • Page 53: Declaration Of Conformity

    Declaration of Conformity Manufacturer: IOTech, Incorporated Address: 25971 Cannon Road Cleveland, OH 44146 Category: Information technology equipment. IOTech, Incorporated declares under sole responsibility that the product USB-1616HS-2 to which this declaration relates is in conformity with the relevant provisions of the following standards or other documents: EC EMC Directive 2004/108/EC: Electromagnetic Compatibility, EN 61326-1:2006, (IEC 61326-1:2005) Emissions: Group 1, Class A...
  • Page 54 Measurement Computing Corporation 10 Commerce Way Suite 1008 Norton, Massachusetts 02766 (508) 946-5100 Fax: (508) 946-9500 E-mail: info@mccdaq.com www.mccdaq.com...

Table of Contents