LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to scan every 20 ms the same signal???

Hello there,

I want to compare a value and another 20 ms older value from the same signal.
How to don the implementation?

Thankfull for quick help,

Ruth.
0 Kudos
Message 1 of 3
(2,672 Views)
Add a shift register to your loop. Wire your latest reading to the shift register. When it repeats the loop, the last value will be sitting there.
0 Kudos
Message 2 of 3
(2,672 Views)
Use any loop structure and add a shift register.
(Right click on the right edge of the loop icon.)
Inside the loop, read the signal. Wire the reading
to the shift register symbol on the right side of the
loop. The wire the shift register symbol on the left
side of the loop as the "old" value. From outside
the loop, wire in an initial value to the left side
shift register symbol.

In addition, you can put the 20ms timer inside the loop.

Les.Hammer@completetest.com
0 Kudos
Message 3 of 3
(2,672 Views)