Counter¶
- class pathsim.blocks.counter.Counter(start=0, threshold=0.0)[source]¶
Bases:
BlockCounter block that counts the number of detected bidirectional zero-crossing events 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:
CounterCounter block that counts the number of detected unidirectional zero-crossing events and sets the output accordingly.
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:
CounterCounter block that counts the number of detected unidirectional zero-crossing events and sets the output accordingly.
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: