Measurement Specialties USB-1616HS-2 manual Digital I/O, Triggering, Digital input scanning

Page 24

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.

The data for the DACs and pattern digital output comes from a PC-based buffer. The data is streamed across the USB2 bus to the USB-1616HS-2.

You can update the DACs and pattern digital output with the output scan clock—either internally-generated or externally-applied. In this scenario, the acquisition input scans are not synchronized to the analog outputs or pattern digital outputs.

You can also synchronize everything—input scans, DACs, pattern digital outputs—to one clock, which is either internally-generated or externally-applied.

Digital I/O

Twenty-four TTL-level digital I/O lines are included in each USB-1616HS-2. You can program digital I/O in 8-bit groups as either inputs or outputs and scan them in several modes (see "Digital input scanning" below). You can access input ports asynchronously from the PC at any time, including when a scanned acquisition is occurring.

Digital input scanning

Digital input ports can be read asynchronously before, during, or after an analog input scan.

Digital input ports can be part of the scan group and scanned along with analog input channels. Two synchronous modes are supported when digital inputs are scanned along with analog inputs. Refer to "Example

4:Sampling digital inputs for every analog sample in a scan group" on page 13 for more information. In both modes, adding digital input scans has no affect on the analog scan rate limitations.

If no analog inputs are being scanned, the digital inputs can sustain rates up to 4 MHz.

Higher rates—up to 12 MHz—are possible depending on the platform and the amount of data being transferred.

Digital outputs and pattern generation

Digital outputs can be updated asynchronously at anytime before, during, or after an acquisition. You can use two of the 8-bit ports to generate a digital pattern at up to 4 MHz. The USB-1616HS-2 supports digital pattern generation with bus mastering DMA. The digital pattern can be read from PC RAM.

Higher rates—up to 12 MHz—are possible depending on the platform and the amount of data being transferred.

Digital pattern generation is clocked using an internal clock. The onboard programmable clock generates updates ranging from once every 1 second to 1 MHz, independent of any acquisition rate.

Triggering

Triggering can be the most critical aspect of a data acquisition application. The USB-1616HS-2 supports the following trigger modes to accommodate certain measurement situations.

24

Image 24
Contents Page USB-1616HS-2 Management committed to your satisfaction Trademark and Copyright Information Table of Contents USB-1616HS-2 Users Guide Where to find more information About this Users GuideWhat you will learn from this users guide Conventions used in this users guideOverview USB-1616HS-2 features Software featuresIntroducing the USB-1616HS-2 ChapterInstalling the USB-1616HS-2 TR-2U power supply and CA-1* line cordWhat comes with your USB-1616HS-2 shipment? HardwareInstalling the software Unpacking the USB-1616HS-2Additional documentation CA-96A expansion cableInstalling the hardware Configuring the hardware Connecting the board for I/O operationsConnectors, cables main I/O connector Information on signal connectionsScrew terminal pin outs USB-1616HS-2 screw terminal pin out single-ended connectionsDSUB25F expansion connector DSUB25 expansion connector pin outCabling CA-96A expansion cableFunctional Details USB-1616HS-2 componentsExternal power connector USB-1616HS-2 components rear viewUSB-1616HS-2 block diagram USB-1616HS-2 functional block diagramAnalog input Analog input scanningSettling time Example Analog channel scanning of voltage inputsExample Analog and digital scanning, once per scan mode Analog and digital scanning, once per scan mode exampleAnalog and digital scanning, once per scan mode example Tips for making accurate temperature measurements Thermocouple inputShielding AveragingAnalog output Digital I/O TriggeringDigital input scanning Digital outputs and pattern generationHardware analog triggering Digital triggeringSoftware-based triggering Counter inputs Stop trigger modesPre-triggering and post-triggering modes Totalize mode Tips for making high-speed counter measurements 1 MHzMapped channels Counter modesDebounce modes Trigger after stable mode Trigger before stable modeDebounce mode comparisons Debounce module Trigger before stable modeEncoder mode Optimal debounce time for trigger before stable modeRepresentation of rotary shaft quadrature encoder Connecting the USB-1616HS-2 to an encoder Maximizing encoder accuracyTimer outputs Example Timer outputsTimer output frequency examples Using multiple USB-1616HS-2s per PC Detection setpoint overviewCriteria input signal is equal to Action driven by condition Setpoint configuration Using the setpoint status registerDetecting on analog input, DAC, and Firstportc updates Examples of control outputsDetection on an analog input, timer output updates Analog inputs with setpoints update on True and FalseUsing the hysteresis function Timer output update on True and FalseUsing multiple inputs to control one DAC output Detecting setpoints on a totalizing counterFIRSTPORTC, DAC, or timer update latency Controlling analog, digital, and timer outputsDetection setpoint details Firstportc Calibrating the USB-1616HS-2 Specifications Analog input specificationsAnalog input accuracy specifications AccuracyAnalog output specifications Analog outputsThermocouples Thermocouple TC types and accuracy NoteDigital input/output specifications Digital input/outputCounter specifications Input sequencer specificationsCounters Input sequencerPower consumption Frequency/pulse generator specificationsPower consumption specifications Note Frequency/pulse generatorsExternal power USB specificationsSignal I/O connectors and pin out EnvironmentalUSB-1616HS-2 screw terminal pin out single-ended connections USB-1616HS-2 screw terminal pin out differential connections Declaration of Conformity USAMailinfo@mccdaq.com