lm_timer_stopwatch

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
lm_timer_stopwatch [2017/09/29 10:28] – created wikiadminlm_timer_stopwatch [2017/09/29 11:10] wikiadmin
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.
  
-{{ :diagram_pulsegen2.png | Behaviour of Continuous Pulse Generator }} +{{ :diagram_stopwatch_switch.png | Behaviour of Stopwatch with Trigger policy //Switch// }} 
-<WRAP center 60%> <WRAP centeralign> Behaviour of Continuous Pulse Generator </WRAP>  </WRAP>+<WRAP center 60%> <WRAP centeralign> Behaviour of Stopwatch with Trigger policy //Switch// </WRAP>  </WRAP> 
 + 
 +{{ :diagram_stopwatch_toggle.png | Behaviour of Stopwatch with Trigger policy //Toggle// }} 
 +<WRAP center 60%> <WRAP centeralign> Behaviour of Stopwatch with Trigger policy //Toggle// </WRAP>  </WRAP>
  • lm_timer_stopwatch.txt
  • Last modified: 2019/03/20 17:04
  • by 127.0.0.1