05-18-2007 05:55 PM
05-19-2007 10:42 AM
05-20-2007 09:09 PM
You have a true constant wired to your stop button for the loop, which means the loop will only run once.
You may want to consider the positions of the previous and current indicators inside that loop. It's not clear how you want them to function. The previous indicator doesn't get updated until right as the elapsed time occurs. The case structure gets executed, and you will immediately have a new previous value calculated, but you won't see that again until the end of the next hour. Not sure if you are updating the current value in the false case as well. Otherwise that would look like stale data for an hour. If you are updating it in the other case, than you should move the local variable and the indicator completely out of the case structure and only pass in the wire to the subtraction function.