Hello Professor Alonso. As always, highly detailed and informative video. Thank you for sharing. Just for your information, I have used the python script from your GitHub and it doesn't work with the latest version of Python and control library. It seems that the mag, phase, omega variables cannot be used like this anymore. This is why I personally don't like using Python because libraries change without keeping backwards compatibility. What works with the current version of Python is not always working with the newest version of it. Octave on the other hand, which is also free, is in my opinion superior to Python for such kind of applications and doesn’t suffer from silly updates like Python does.
Hello, thanks for letting me know. I am using 0.9 version of control lib. The info below may be of help for the latest version. It should be easy to fix Starting with python-control version 0.10, bode_plot returns a ControlPlot object instead of magnitude, phase, and frequency. To recover the old behavior, call bode_plot with plot=True, which will force the legacy values (mag, phase, omega) to be returned (with a warning). To obtain just the frequency response of a system (or list of systems) without plotting, use the frequency_response() command.
Good morning Professor Alonso. Thank you so much for another great video.
Thanks!
Great! Prof., what about motor modeling and control in qspice? Would be interesting with c block available.
Thank you for the suggestion
Hello Professor Alonso. As always, highly detailed and informative video. Thank you for sharing. Just for your information, I have used the python script from your GitHub and it doesn't work with the latest version of Python and control library. It seems that the mag, phase, omega variables cannot be used like this anymore. This is why I personally don't like using Python because libraries change without keeping backwards compatibility. What works with the current version of Python is not always working with the newest version of it. Octave on the other hand, which is also free, is in my opinion superior to Python for such kind of applications and doesn’t suffer from silly updates like Python does.
Hello, thanks for letting me know. I am using 0.9 version of control lib. The info below may be of help for the latest version. It should be easy to fix
Starting with python-control version 0.10, bode_plot returns a ControlPlot object instead of magnitude, phase, and frequency. To recover the old behavior, call bode_plot with plot=True, which will force the legacy values (mag, phase, omega) to be returned (with a warning). To obtain just the frequency response of a system (or list of systems) without plotting, use the frequency_response() command.
@@MarcosAlonsoElectronics thank you for posting the fix. I have already found a workaround.