Library Reference
Block
- class sigflow.blocks.Block(label=None)
Bases:
objectA general block base class
- label
Label for this block.
- Type
str or None
- inputs
The input of this block.
- Type
float or array
- output
The output of this block, calculated by self._i2o()
- Type
float or array
- ninput
The number of inputs
- Type
int
- noutput
The number of outputs
- Type
int
Note
Block diagram representation:
inputs –> [block] –> output
Call this block to use:
output = block(input)
- property inputs
Input of the block.
- property ninput
Number of inputs
- property noutput
Number of inputs
- property output
Output of the block
LTI Systems
- class sigflow.blocks.LTI(tf, dt, label=None)
Bases:
sigflow.blocks.base.BlockAn LTI system class
- Parameters
tf (control.TransferFunction) – The transfer function representation of the LTI system.
dt (float) – The sampling time in seconds.
label (str, optional) – Label for this filter. Defaults to None.
- property dt
Sampling time
- property input
Input of the LTI system
- property tf
The transfer function represenstation of the LTI system
Junction
- class sigflow.blocks.Junction(signs='++', label=None)
Bases:
sigflow.blocks.matrix.MatrixA summing junction class
Note
Block diagram representation for Junction(signs=”+-“):
input 1 -> (+ -) -> output ^ | input 2 -------
Block diagram representation for Junction(signs=”+-+”):
input 1 -> (+ - +) -> output ^ ^ | | input 2 ------- | input 3 ---------
- property signs
Signs of the inputs
Matrix
- class sigflow.blocks.Matrix(matrix=None, label=None)
Bases:
sigflow.blocks.base.BlockA Matrix class
- label
Label of this matrix
- Type
str or None
- matrix
The matrix.
- Type
array or None
- input
The input array
- Type
array
- output
The output array
- Type
array
- ninput
The number of inputs defined by the number of columns of the matrix. Calculated, can’t set.
- Type
int
- noutput
The number of outputs defined by the number of rows of the matrix. Calculated, can’t set.
- Type
input
- property matrix
The representing matrix.
- property ninput
Number of inputs
- property noutput
Number of outputs