12/12/2020 7:53 PM | |
Joined: 12/3/2018 Last visit: 1/22/2024 Posts: 76 Rating:
|
I have a timer ("Stopwatch" block) which gives me some cycle time reading from a system (let it be input I1). Stopwatch counts from zero to some value as long I1 is ON. When I1 goes to OFF and to ON again, this counting starts again from 0 (a new cycle is started to be measured.). I would like to save historical minimum and maximum values of those counts, for evaluation display on text message. 1) for maximum value it is no problem: I can put a "Min/Max" block in series and read out the Max value from it and display it in Text message 2) but for minimum value I cant use the same block, since the counting always begins from zero and zero is always the lowest number and as such it stays recorded in Min Values. So I have to somehow save the number at the end of the cycle and then compare it with next value and save (and display) the smallest. But how to do that? (with I2 "reset" I just clear the old Min/Max data from display if I want to compare new values of I1 after some change in system....) AttachmentMin_Max value of stopwatch.zip (307 Downloads) |
12/12/2020 9:36 PM | |
Joined: 12/18/2014 Last visit: 8/14/2024 Posts: 33557 Rating:
|
Try this ...
AttachmentStore_time_min_&_max_value_0BA8.Standard.zip (392 Downloads) |
This contribution was helpful to
1 thankful Users |
Follow us on