Counter¶
- class pathsim.blocks.counter.Counter(start=0, threshold=0.0)[source]¶
Bases:
BlockCounts the number of detected bidirectional threshold crossings.
Uses zero-crossing events for the detection and sets the output accordingly.
- Parameters:
- E¶
internal event manager
- Type:
- events¶
internal zero crossing event
- Type:
- input_port_labels = {'in': 0}¶
- output_port_labels = {'out': 0}¶
- class pathsim.blocks.counter.CounterUp(start=0, threshold=0.0)[source]¶
Bases:
CounterCounts the number of detected unidirectional (lo->hi) threshold crossings.
Note
This is a modification of ‘Counter’ which only counts unidirectional zero-crossings (low -> high)
- Parameters:
- E¶
internal event manager
- Type:
- events¶
internal zero crossing event
- Type:
- class pathsim.blocks.counter.CounterDown(start=0, threshold=0.0)[source]¶
Bases:
CounterCounts the number of detected unidirectional (hi->lo) threshold crossings.
Note
This is a modification of ‘Counter’ which only counts unidirectional zero-crossings (high -> low)
- Parameters:
- E¶
internal event manager
- Type:
- events¶
internal zero crossing event
- Type: