Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lm_timer_stopwatch [2017/09/29 10:59]
wikiadmin
lm_timer_stopwatch [2019/03/20 17:04] (current)
Line 1: Line 1:
 ===== Stopwatch ===== ===== Stopwatch =====
  
-{{ :​logic_icons_stopwatch.png?​230 |}}+{{ :​logic_icons_stopwatch.png?​250 |}}
  
-The Stopwatch node measures ​the time passed since the **Input** connector value is 1 and sends it to the **Partial time** output connector, the **Total time** output connector value represent the total time measured since the last reset.\\ +The Stopwatch node measures ​provides ​two modalities to determine how it should start counting time which are specified by the **Trigger policy** property: 
-There are two modalities to determine how the Stopwatch ​should start counting time which are specified by the **Trigger policy** property: +  * //Switch// The Stopwatch ​starts counting ​time when the **Input** connector value goes to 1, it pauses when the **Input** value goes to 0. Whenever the node pauses, it sends the time the **Input** value has been 1 to the **Partial time** connector and the total counted time to the **Total time** connector
-  * //Switch// The Stopwatch ​counts for all the time the **Input** connector value is 1. +  * //Toggle// The Stopwatch starts counting when it receives ​the first rising edge on the **Input** connector, all the other times it receives ​a rising edge it sends the time passed between the current rising edge and the previous one to the **Partial time** connector, and the total counted time to the **Total time** connector.
-  * //Toggle// The Stopwatch starts counting when it receives ​a pulse on the **Input** connector ​and stops when it receives ​another pulse.+
 When the **Reset** connector value is 1, the node stops counting the time and sends 0 to both **Partial time** and **Total** time, it will start counting again only after the **Reset** value goes to 0. When the **Reset** connector value is 1, the node stops counting the time and sends 0 to both **Partial time** and **Total** time, it will start counting again only after the **Reset** value goes to 0.