LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cycle Counter

I have written a labview program to monitor 3 blowers (current, voltage, temp). This test will cycle the blowers until failure (approximately 500 hours). A separate system will be controlling and timing the off/on sequence of the motors.

 

How can I count the number of on/off cycles each motor experiences using my current transducer value?

This is how far I have gotten. This code counts the entire time the current is greater than 5 amps. I only need it to count when the blower turns on and off.  This is going through a shift register on the while loop.

 

Any help would be appreciated.

Download All
0 Kudos
Message 1 of 5
(1,857 Views)

It is pointless to attach truncated code images (wires going in and out of the picture, hidden wires, messy wires, local variables, half of a shift register, etc. etc.). Attach your VI instead.

0 Kudos
Message 2 of 5
(1,846 Views)

Look for Boolean Crossing Pt by Pt.

 

You can set it for True to False, False to True, or transitions both ways.  The output of that is True whenever the input boolean makes the transition you specify.

 

 

So for false to true, a series of booleans that go FFF   TTTTT  FFFFF  TTT will output a true value on only the first true of a consecutive stream of trues in the incoming boolean.  So if you are incrementing a counter when that is True, it will be 2 in this example.

0 Kudos
Message 3 of 5
(1,826 Views)

@feherjf wrote:

I only need it to count when the blower turns on and off.  .


I assume you mean on or off, it cannot be both at the same time.

 

I typically use a simple feedback node:

 

altenbach_0-1605811742577.png

 

0 Kudos
Message 4 of 5
(1,815 Views)

Very helpful. Thank you!

0 Kudos
Message 5 of 5
(1,793 Views)