Measurement Specialties USB-1616HS-2 manual Examples of control outputs

Page 38

USB-1616HS-2 User's Guide

Functional Details

ƒA value of 0 indicates that the setpoint criteria are not met—in other words, the condition is False.

ƒA value of 1 indicates that the criteria have been met—in other words, the condition is True.

In the following example, the criteria for setpoints 0, 1, and 4 is satisfied (True), but the criteria for the other 13 setpoints has not been met.

Setpoint #

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

True (1)

0

0

0

0

0

0

0

0

0

0

0

1

0

0

1

1

False (0)

<<<

Most significant bit

 

 

 

 

 

 

 

 

Least

significant bit >>>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

From the table above we have 10011 binary, or 19 decimal, derived as follows:

ƒSetpoint 0, having a True state, shows 1, giving us decimal 1.

ƒSetpoint 1, having a True state, shows 1, giving us decimal 2.

ƒSetpoint 4, having a True state, shows 1, giving us decimal 16.

For proper operation, the setpoint status register must be the last channel in the scan list.

Examples of control outputs

Detecting on analog input, DAC, and FIRSTPORTC updates

Update mode: Update on True and False

Criteria: Channel 5 example: below limit; channel 4 example: inside window

In this example, channel 5 is programmed with reference to one setpoint (limit A), defining a low limit.

Channel 4 is programmed with reference to two setpoints (limit A and limit B) which define a window for that channel.

Channel

Condition

State of detect signal

Action

 

 

 

 

5

Below limit A (for

True

When channel 5 analog input voltage is below the limit

 

channel 5)

 

A, update DAC1 with output value 0.0 V.

 

 

False

When the above stated condition is false, update DAC1

 

 

 

with the Output Value of - 1.0 V.

4

Within window

True

When Channel 4's analog input voltage is within the

 

(between limit A and

 

window, update FIRSTPORTC with 70h.

 

limit B) for channel 4

 

 

 

False

When the above stated condition is False (channel 4

 

 

 

analog input voltage is outside the window), update

 

 

 

FIRSTPORTC with 30h.

38

Image 38
Contents Page USB-1616HS-2 Management committed to your satisfaction Trademark and Copyright Information Table of Contents USB-1616HS-2 Users Guide What you will learn from this users guide Where to find more informationAbout this Users Guide Conventions used in this users guideIntroducing the USB-1616HS-2 Overview USB-1616HS-2 featuresSoftware features ChapterWhat comes with your USB-1616HS-2 shipment? Installing the USB-1616HS-2TR-2U power supply and CA-1* line cord HardwareAdditional documentation Installing the softwareUnpacking the USB-1616HS-2 CA-96A expansion cableInstalling the hardware Connectors, cables main I/O connector Configuring the hardwareConnecting the board for I/O operations 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 diagramSettling time Analog inputAnalog input scanning 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 Shielding Tips for making accurate temperature measurementsThermocouple input AveragingAnalog output Digital input scanning Digital I/OTriggering Digital outputs and pattern generationSoftware-based triggering Hardware analog triggeringDigital triggering Pre-triggering and post-triggering modes Counter inputsStop trigger modes Mapped channels Totalize modeTips for making high-speed counter measurements 1 MHz 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 output frequency examples Timer outputsExample Timer outputs 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 counterDetection setpoint details FIRSTPORTC, DAC, or timer update latencyControlling analog, digital, and timer outputs Firstportc Calibrating the USB-1616HS-2 Analog input accuracy specifications SpecificationsAnalog input specifications AccuracyThermocouples Analog output specificationsAnalog outputs Thermocouple TC types and accuracy NoteDigital input/output specifications Digital input/outputCounters Counter specificationsInput sequencer specifications Input sequencerPower consumption specifications Note Power consumptionFrequency/pulse generator specifications Frequency/pulse generatorsSignal I/O connectors and pin out External powerUSB specifications 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