.. Spatial Maths package documentation master file, created by sphinx-quickstart on Sun Apr 12 15:50:23 2020. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Block diagrams for Python ========================= .. raw:: html
|
# define the blocks
demand = bd.STEP(T=1, name='demand')
sum = bd.SUM('+-')
gain = bd.GAIN(10)
plant = bd.LTI_SISO(0.5, [2, 1])
scope = bd.SCOPE(styles=['k', 'r--'])
# connect the blocks
bd.connect(demand, sum[0], scope[1])
bd.connect(plant, sum[1])
bd.connect(sum, gain)
bd.connect(gain, plant)
bd.connect(plant, scope[0])
|