MENU

Fun & Interesting

4 Ways to Implement a Transfer Function in Code | Control Systems in Practice

MATLAB 72,739 5 years ago
Video Not Working? Fix It Now

Check out the other videos in the series: Part 1 - What Does a Controls Engineer Do? https://youtu.be/ApMz1-MK9IQ Part 2 - What Is Gain Scheduling? https://youtu.be/YiUjAV1bhKs Part 3 - What Is Feedforward Control? https://youtu.be/FW_ay7K4jPE Part 4 - Why Time Delay Matters https://youtu.be/wouhREkqZa0 Part 5 - A Better Way to Think About a Notch Filter https://youtu.be/tpAA5eUb6eo Part 6 - What are Non-Minimum Phase Systems? https://www.youtube.com/watch?v=jGEkmDRsq_M In some situations, it is easier to design a controller or a filter using continuous, s-domain transfer functions. We have a lot of mathematical tools that make analyzing and manipulating them easier than, say, their equivalent time-domain differential equations. However, while we like to work with transfer functions for design and analysis, it’s often the case that we need to implement them in software that runs on some processor or microcontroller, and it might not be obvious how to go about doing this. So, in this video we’ll cover four simple ways to implement a transfer function in code. Check out these other links: - Download the code from the video, tfcodemethods.mlx: https://github.com/aerojunkie/control-tools/blob/master/tfcodemethods.mlx - A playlist on discrete control. It describes how we go from the s-domain to the z-domain and the 5th video specifically describes why the Tustin method is equivalent to trapezoidal integration: https://www.youtube.com/playlist?list=PLUMWjy5jgHK0MLv6Ksf-NHi7Ur8NRNU4Z - Introduction to State Space: https://youtu.be/hpeKrMG-WP0 - Introduction to Embedded Coder: https://bit.ly/37KYGsh -------------------------------------------------------------------------------------------------------- Get a free product trial: https://goo.gl/ZHFb5u Learn more about MATLAB: https://goo.gl/8QV7ZZ Learn more about Simulink: https://goo.gl/nqnbLe See what's new in MATLAB and Simulink: https://goo.gl/pgGtod © 2019 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See www.mathworks.com/trademarks for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.

Comment