Debian Codegraph @

doc/man/man3/ivm/engines/SoOneShot.ivm

raw
1 NAME SoOneShot SoOneShot "SO_ONE_SHOT_" {
2 timer that runs for a pre-set amount of time
3 }
4
5 DESC {
6 This engine is a timer that runs for a pre-set amount of time and then stops.
7 By default, the \vtimeIn\. input is connected to the \vrealTime\. global field.
8 It can, however, by connected to any other time source.
9 \p
10 The timer is started when the \vtrigger\. input is touched.
11 It then runs for the specified \vduration\., and updates the \vtimeOut\.
12 output with the time that has elapsed.
13 During that time, the \vramp\. output is also updated. The \vramp\. output
14 starts at 0.0 at the beginning of the cycle, and linearly increases
15 until it reaches 1.0 at the end of the cycle.
16 \p
17 You can disable the timer by setting the \vdisable\. input to TRUE.
18 The output value remains 0.0 while the timer is disabled.
19 If the timer is disabled in the middle of a cycle the output values
20 will be set to 0.0.
21 \p
22 The \vflags\. input contains control flags. Using the flags
23 you can set the timer to be retriggerable in the middle of a cycle,
24 and set the output values to stay high after the cycle has
25 been completed. By default, these flags are not set.
26 }
27
28 INCLUDE engines/SoOneShot.h
29
30 ENUM Flags {
31 RETRIGGERABLE "Can start over during the cycle",
32 HOLD_FINAL "Output values stay high after cycle"
33 }
34
35 INPUT timeIn { Running time. }
36 INPUT duration { Duration of the active cycle. }
37 INPUT trigger { Start the cycle. The trigger will be ignored if it
38 is touched in the middle of a cycle and the RETRIGGERABLE flag
39 is not set. }
40 INPUT flags { Control flags. }
41 INPUT disable { If TRUE, the timer is disabled. }
42
43 OUTPUT timeOut { Elapsed time from the start. }
44 OUTPUT isActive { Is TRUE during the active cycle. }
45 OUTPUT ramp { Ramps linearly from 0.0 to 1.0. }
46
47 METHOD Create SoOneShot() { Constructor }
48
49 ALSO { SoElapsedTime, SoEngineOutput }