LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Watching if something increments?

Hi guys,

Bit of an odd question, but is there any VI in labview or function that flags up a bool output (true/false) if something increments? I have a Adder that gets one value from the input of the while loop (from the side using a Shift register) and another comes from a array. This all works perfectly and the output goes up (1,2,3,4... etc) so nothing wrong with my circuit :D!

 

I've tried to do it in C using a script node but it just says ON so i dont think itll work. I need it to go on and off, or just stay off if it doesnt sense the number going up.

 

Any ideas?

Cheers.

0 Kudos
Message 1 of 4
(2,429 Views)

There is a vi "Change  Detector"

Report if input has changed since previous call.

Freeware from Moore Good Ideas, www.mooregoodideas.com.

0 Kudos
Message 2 of 4
(2,416 Views)
Thank you! Found it and it looks good. Im wondering how to use it though since ive wired it up to a counter which steadily counts by 1. Its output is always false though? is there anything else i need to wire it to?
0 Kudos
Message 3 of 4
(2,407 Views)

Here is an example of how to use this vi.  Each time you increment the value, the indicator changes to True, then back to false on the next iteration.

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 4 of 4
(2,390 Views)