Measurement Specialties USB-1616HS-2 manual Using multiple inputs to control one DAC output

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. Analog input Channel 3 has an inside-the-window setpoint applied. Whenever Channel 3's input goes inside the programmed window, DAC2 will be updated with 3.0 V.

Analog input Channel 7 also has an inside-the-window setpoint applied. Whenever channel 7's input goes inside the programmed window, DAC2 is updated with - 7.0 V.

Figure 29. Using two criteria to control an output*

The update on True-only mode was selected, and therefore the updates for DAC2 only occur when the criteria is met. However, in the above figure we see that there are two setpoints acting on one DAC. We can also see that the two criteria can be met simultaneously. When both criteria are True at the same time, the DAC2 voltage is associated with the criteria that has been most recently met.

Detecting setpoints on a totalizing counter

In the following figure, Channel 1 is a counter in totalize mode. Two setpoints define a point of change for Detect 1 as the counter counts upward. The detect output is high when inside the window (greater than Limit B (the low limit) but less than Limit A (the high limit).

In this case, the Channel 1 setpoint is defined for the 16 lower bits of channel 1's 32-bit value. The FIRSTPORTC digital output port could be updated on a True condition (the rising edge of the detection signal). Alternately, one of the DAC output channels, or timer outputs, could be updated with a value.

41

Image 41
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 generationSoftware-based triggering Hardware analog triggeringDigital triggering Pre-triggering and post-triggering modes Counter inputsStop trigger 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 encoderTimer output frequency examples Timer outputsExample Timer outputs 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 configuration Examples 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 outputDetection setpoint details FIRSTPORTC, DAC, or timer update latencyControlling analog, digital, and timer outputs 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