摘要
自动控制原理课程常常需要运用软件绘制图形,而MATLAB又存在价格昂贵、关键代码被隐藏和可移植性不高等诸多不便。基于此,给出了PYTHON软件在自动控制原理课程仿真中的应用和一些具体实例的仿真程序代码。首先使用ANACONDA开源软件,安装第三方开源包SLYCOT和CONTROL以搭建环境,然后基于PYTHON语言环境开展系统的时域、复域和频域仿真以及系统的校正与设计仿真,并与相关参考文献里的MATLAB仿真结果进行比较,结果表明二者的仿真效果并无明显区别,为系统的仿真和绘图提供了一种新方式。
The course of automatic control principle usually needs to use software to draw graphics while MATLAB exists a number of inconveniences such as high cost, hidden critical code, the lack of portability, and so on. Based on these statements, the paper shows the applications of PYTHON software in the course of automatic control principle and gives many simulated codes of the relevant examples.It employs thefree software of ANACONDA and installsthe third-partyopen source package of SLYCOT and CONTROL at first, in order to set up the environment.And then itis based on the PYTHON language environment to simulate the system in the time domain, the complex domain, the frequency domain and the calibration and design of plant. Further compared with the MATLAB simulations of the related references, the results show that there is no obvious difference between PYTHON and MATLAB on the simulation of the system, and it offers a new way for simulations and plots of system.
作者
郭玉祥
周函
张庆平
李彦梅
Guo Yuxiang;Zhou Han;Zhang Qingping;Li Yanmei(Anqing Normal University,Anqing 246011,China)
出处
《廊坊师范学院学报(自然科学版)》
2022年第1期120-125,共6页
Journal of Langfang Normal University(Natural Science Edition)
基金
安徽省高等学校质量工程项目(2020szsfkc0551,2020szsfkc0544,2020szsfkc0549)
校级教研项目(2019aqnujyzc024,2019aqnujyzc059)。