/PythonSisoDesignApp

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Python Siso Design App

User interface for designing Single-Input-Single-Output Controllers in Google Colab.

Developer: Prof. Lucas Vizzotto Bellinaso
Universidade Federal de Santa Maria
15/10/2020

Open in Google Colab: https://colab.research.google.com/drive/1YD5irv7Qni2gyFu2nIAmPL15vL8b1Dwj

Copy this code to the first cell in Google Colab:

# Copy and run in the first cell:
!pip install bokeh             # Bokeh package must be installed in Google Colab server
!pip install control           # Control package must be installed in Google Colab server
!git clone https://github.com/lucasbellinaso/PythonSisoDesignApp.git
import os
os.chdir("PythonSisoDesignApp")
!python classes.py             # running the github code
from classes import SISOApp    # importing the SISOApp
from control.matlab import *   # importing control package as a Matlab environment
#help(SISOApp)

If you have any AdBlock installed: disable GitHub and Google Colab blocking.

Help

help(SISOApp)

Example - control design

#Run this code again if the Figure is not working:

from control.matlab import tf
Gp = tf(1,[1,1,1])
Gc = tf([1,1],[1,0])
App = SISOApp(Gp, Gc)    #Controller: App.Gc

Figures

image

image

image