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.

You can program control outputs programmed on each setpoint, and use the detection for channel 4 to update the FIRSTPORTC digital output port with one value (70 h in the example) when the analog input voltage is within the shaded region and a different value when the analog input voltage is outside the shaded region (30 h in the example).

Detection on an analog input, timer output updates

Update Mode: Update on True and False

Criteria Used: Inside window

Figure 27 shows how a setpoint can be used to update a timer output. Channel 3 is an analog input channel. A setpoint is applied using update on True and False, with a criteria of inside-the-window,where the signal value is inside the window when simultaneously less than Limit A but greater than Limit B.

Whenever the channel 3 analog input voltage is inside the setpoint window (condition True), Timer0 is updated with one value; and whenever the channel 3 analog input voltage is outside the setpoint window (condition False) timer0 will be updated with a second output value.

39

Page 39
Image 39
Measurement Specialties USB-1616HS-2 manual Detection on an analog input, timer output updates