LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counting time under a certain condition

I would like to measure the runtime of a motor whilst it is over a certain current value for maintenance purposes. I have created a simple piece of code which tells LV to count the time (using Tick Count (ms) function) whilst the motor is operating over 10 Amps. I am reading the current value from a PLC using a read tag vi.

I cannot get the runtime to count properly on my "relative time" numerical indicator. The counter is summing the runtime much faster than the time actually passes. I have tried varying my timeout input and adding a time delay, but nothing seems to alter it. Can anyone see why the attached could would not calculate the ongoing runtime of my motor while it is operating over 10 Amps??

A big thanks for any help you can provide,

Stuart Wilson

0 Kudos
Message 1 of 2
(2,636 Views)
Message 2 of 2
(2,629 Views)