Questions tagged [python-control]

A Python package that implements basic operations for analysis and design of feedback control systems.

The Python Control Systems Library is a Python module that implements basic operations for analysis and design of feedback control systems.

Most of the functionality is based on the Fortran submodule SLICOT 5.0 and also offers a subset of Matlab compatibility.

10 questions
259
votes
9 answers

PackagesNotFoundError: The following packages are not available from current channels:

I'm somewhat new to Python. I've used it in a bunch of projects, but haven't really needed to stray from its standard setup. I'm trying to install some new packages to get access to functions necessary for a university assignment. When I try to…
Sunafegon
  • 2,691
  • 2
  • 8
  • 4
4
votes
1 answer

Python-control - step system

When I create a system using the python-control package: import control H = control.tf([1], [1]) And then want to iteratively simulate that system, how do I do it? I know I can do this: T = np.arange(0, 10, 0.01) u = np.sin(T) y, t, x =…
Tom
  • 7,269
  • 1
  • 42
  • 69
2
votes
1 answer

How can I specify Time Delays in Linear Systems in Python?

this was asked 7 years ago in this thread: How to define LTI systems with Time delay in Scipy? The answer is outdated or at least I don't know how to make it work, and I would like to know if there is a way of doing this in the present. I want to…
Wonky
  • 264
  • 2
  • 11
1
vote
0 answers

Python control unable to simulate static nonlinearity

I'm new to using python for control development (coming from MATLAB). It seems capable enough for basic problems but more complicated things get cumbersome. I'm trying to build a feedback system for satellite attitude control using interconnected IO…
1
vote
2 answers

How to simulate the time response of a system transfer function with python-control (IVP problem)?

I'm trying to demonstrate how to "solve" (simulate the solution) of differential equation initial value problems (IVP) using both the definition of the system transfer function and the python-control module. The fact is I'm really a newbie…
1
vote
0 answers

Control.tf2ss() malfunctioning once slycot is installed

The control.tf2ss() module works perfectly on SISO systems, but once I install slycot (which is necessary for MIMO systems) the function returns an error (for SISO and MIMO systems). Once the slycot module is installed the following code A =…
Wian
  • 21
  • 1
  • 4
1
vote
0 answers

Slycot fails to import when using control

I cannot seem to get the control.ss2tf() function to work for state space MIMO system. The function works perfectly for a SISO system. The following code is used to run the module: control.ss2tf(A,B,C,D) The resulting output indicated that the…
Wian
  • 21
  • 1
  • 4
1
vote
0 answers

Installing Slycot in Python 2.7. Using a Windows 8

I am working with the Python-Control Library, there I need Slycot to implement LQR. I am trying to install Slycot (I tried with the zip found at PyPI and from the Github repo), but I get the following error: e\slycot\src\TG01ID.o…
Pragyaditya Das
  • 1,648
  • 6
  • 25
  • 44
0
votes
0 answers

High pass filter using scipy and control

I'm trying to build some digital filter designs but I currently have a technical problem. I have narrowed it down to building the high-pass filter. Here is a minimal example, building a 3rd order high pass Butterworth filter import numpy as np …
Echo20127
  • 23
  • 3
0
votes
1 answer

With control.step_response can't get the expected output

import control import numpy as np import matplotlib.pyplot as plt Ts = 1 G1 = control.tf([60], [1,0.1]) G2 = control.tf([0.5, 3], [1, 5, 12]) G3 = control.tf([1], [1, 5]) Gs= G1*G2*G3 Gz = control.c2d(Gs,Ts, method='tustin'…
Klaromin
  • 1
  • 1