Measurement Specialties USB-1616HS-2 Setpoint configuration, Using the setpoint status register

Page 37

USB-1616HS-2 User's Guide

Functional Details

Setpoint configuration

You program all setpoints as part of the pre-acquisition setup, similar to setting up an external trigger. Since each setpoint acts on 16-bit data, each has two 16-bit compare values: a high limit (limit A) and a low limit (limit B). These limits define the setpoint window.

There are several possible conditions (criteria) and effectively three update modes, as explained in the following configuration summary.

Set high limit

You can set the 16-bit high limit (limit A) when configuring the USB-1616HS-2 through software.

Set low limit

You can set the 16-bit low limit (limit B) when configuring the USB-1616HS-2 through software.

Set criteria

ƒInside window: Signal is below 16-bit high limit and above 16-bit low limit.

ƒOutside window: Signal is above 16-bit high limit, or below 16-bit low limit.

ƒGreater than value: Signal is above 16-bit low limit, so 16-bit high limit is not used.

ƒLess than value: Signal is below 16-bit high limit, so 16-bit low limit is not used.

ƒEqual to value: Signal is equal to 16-bit high limit, and limit B is not used.

The equal to mode is intended for use when the counter or digital input channels are the source channel.

You should only use the equal to16-bit high limit (limit A) mode with counter or digital input channels as the channel source. If you want similar functionality for analog channels, then use the inside window mode

ƒHysteresis mode: Outside the window, high forces output 2 until an outside the window low condition exists, then output 1 is forced. Output 1 continues until an outside the window high condition exists. The cycle repeats as long as the acquisition is running in hysteresis mode.

Set output channel

ƒNone

ƒUpdate FIRSTPORTC

ƒUpdate DAC

ƒUpdate timerx

Update modes

ƒUpdate on True only

ƒUpdate on True and False

Set values for output

ƒ16-bit DAC value, FIRSTPORTC* value, or timer value when input meets criteria.

ƒ16-bit DAC value, FIRSTPORTC* value, or timer value when does not meet criteria.

*By default, FIRSTPORTC comes up as a digital input. You may want to initialize FIRSTPORTC to a known state before running the input scan to detect the setpoints.

When using setpoints with triggers other than immediate, hardware analog, or TLL, the setpoint criteria evaluation begins immediately upon arming the acquisition.

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.

37

Image 37
Contents Page USB-1616HS-2 Management committed to your satisfaction Trademark and Copyright Information Table of Contents USB-1616HS-2 Users Guide About this Users Guide Where to find more informationWhat you will learn from this users guide Conventions used in this users guideSoftware features Overview USB-1616HS-2 featuresIntroducing the USB-1616HS-2 ChapterTR-2U power supply and CA-1* line cord Installing the USB-1616HS-2What comes with your USB-1616HS-2 shipment? HardwareUnpacking the USB-1616HS-2 Installing the softwareAdditional documentation CA-96A expansion cableInstalling the hardware Connecting the board for I/O operations Configuring the hardwareConnectors, cables main I/O connector Information on signal connectionsUSB-1616HS-2 screw terminal pin out single-ended connections Screw terminal pin outsDSUB25 expansion connector pin out DSUB25F expansion connectorCA-96A expansion cable CablingUSB-1616HS-2 components Functional DetailsUSB-1616HS-2 components rear view External power connectorUSB-1616HS-2 functional block diagram USB-1616HS-2 block diagramAnalog input scanning Analog inputSettling time Example Analog channel scanning of voltage inputsAnalog and digital scanning, once per scan mode example Example Analog and digital scanning, once per scan modeAnalog and digital scanning, once per scan mode example Thermocouple input Tips for making accurate temperature measurementsShielding AveragingAnalog output Triggering Digital I/ODigital input scanning Digital outputs and pattern generationDigital triggering Hardware analog triggeringSoftware-based triggering Stop trigger modes Counter inputsPre-triggering and post-triggering modes Tips for making high-speed counter measurements 1 MHz Totalize modeMapped channels Counter modesDebounce modes Trigger before stable mode Trigger after stable modeDebounce module Trigger before stable mode Debounce mode comparisonsOptimal debounce time for trigger before stable mode Encoder modeRepresentation of rotary shaft quadrature encoder Maximizing encoder accuracy Connecting the USB-1616HS-2 to an encoderExample Timer outputs Timer outputsTimer output frequency examples Detection setpoint overview Using multiple USB-1616HS-2s per PCCriteria input signal is equal to Action driven by condition Using the setpoint status register Setpoint configurationExamples of control outputs Detecting on analog input, DAC, and Firstportc updatesAnalog inputs with setpoints update on True and False Detection on an analog input, timer output updatesTimer output update on True and False Using the hysteresis functionDetecting setpoints on a totalizing counter Using multiple inputs to control one DAC outputControlling analog, digital, and timer outputs FIRSTPORTC, DAC, or timer update latencyDetection setpoint details Firstportc Calibrating the USB-1616HS-2 Analog input specifications SpecificationsAnalog input accuracy specifications AccuracyAnalog outputs Analog output specificationsThermocouples Thermocouple TC types and accuracy NoteDigital input/output Digital input/output specificationsInput sequencer specifications Counter specificationsCounters Input sequencerFrequency/pulse generator specifications Power consumptionPower consumption specifications Note Frequency/pulse generatorsUSB specifications External powerSignal 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 USA Declaration of ConformityMailinfo@mccdaq.com