Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 14

SUBJECT NAME: CONTROL SYSTEMS

SUBJECT CODE:  191EEC501T                 

PYTHON PROGRAMMING IN CONTROL


SYSTEM

     PRESENTED BY
                                 SAHANA A M
                                 NITHYA SHREE.M
                 RAMYA.V
                 PRANAVA KUMAR.J
THANYAA.X
                                 SUDIPTH AJITESH.S
TABLE OF CONTENT

Python and its control structures


What is Python control system library
Python control system library functions
 TRANSFER FUNCTION

 State-space Models
PYTHON

Python is an interpreted high level general purpose programming


language.
 It allows organization to analyze and visualize data in meaningful
ways to identify patterns and help solve complex control system
problems
The control flow is regulated by conditional statements , loops and
function calls
3 types of control structures
1. Sequential
2. Selection
PYTHON CONTROL LIBRARY

• Python-Control is a Python package that implements basic


operations for analysis and design of feedback control systems.
• The python-control package makes use of NumPy and SciPy
• NumPy -  Python library used for working with arrays. It also has
functions for working in domain of linear algebra, fourier
transform, and matrices.
• SciPy - a collection of mathematical algorithms and convenience
functions built on the NumPy extension of Python.
PYTHON CONTROL SYSTEMS
LIBRARY FUNCTIONS
Functions for Model Creation and Manipulation:
tf() - Create a transfer function system
ss() - Create a state space system
tf2ss() - Transform a transfer function to a state space system
ss2tf() - Transform a state space system to a transfer function.
series() - Return the series of 2 or more subsystems
parallel() - Return the parallel of 2 or more subsystems
feedback() - Return the feedback of system
TRANSFER FUNCTIONS IN PYTHON

• The transfer function is defined as the ratio of the Laplace


transform of the output variable to Laplace transform of the
input variable assuming all initial conditions to be zero.
• Very useful in analysis and design of linear dynamic systems.
• A general transfer function is on the form:
H(s) = y(s) / u(s)
where y is the output and u is the input.
H(s) = numerator(s)
denominator(s)
H(s) = bmsm + b m−1 s m−1 + ... + b1s + b0
ansn + an−1 s n−1 + ... + a1s + a0

The numerators of Transfer function models describe the locations of the


zeros of the system, while the denominators of transfer function models
describe the locations of the poles of the system

INPUT TRANSFER
OUTPUT
FUNCTION

SPECIAL CASES
1ST ORDER TRANSFER FUNCTION
2NDORDER TRANSFER FUNCTION
EXAMPLE
Q . Create Transfer Function in Python. Given the
following transfer function:
H(s) = 3 / 4s + 1
BIBLIOGRAPHY

www.Circuitstoday.com
www.Powerstream.com
www.halvorsenblog.com
www.Electronicshub.com

You might also like