11-19-2020 09:31 AM - edited 11-19-2020 09:47 AM
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.
11-19-2020 11:03 AM
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.
11-19-2020 11:58 AM
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.
11-19-2020 12:50 PM
@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:
11-19-2020 04:38 PM
Very helpful. Thank you!