How to implement a transfer function in Simulink with variable coefficients?

Click For Summary
SUMMARY

The discussion focuses on implementing a transfer function in Simulink with variable coefficients, specifically targeting the function F(s) = sqrt(5d)/(b + s). The user encountered discrepancies in expected results, which should range between 10^-3 and 10, but instead yielded values around 10^-12. The implementation involved creating custom blocks that incorporate reset and initialization flags to manage Tustin transformations, allowing for dynamic parameter adjustments based on schedules.

PREREQUISITES
  • Familiarity with Simulink block diagram creation
  • Understanding of Tustin transformations in control systems
  • Knowledge of transfer functions and their mathematical representations
  • Experience with variable coefficient systems in simulation environments
NEXT STEPS
  • Research how to create custom blocks in Simulink for dynamic parameter management
  • Learn about implementing variable coefficient transfer functions in Simulink
  • Explore advanced Tustin transformation techniques and their applications
  • Investigate methods for optimizing Simulink models to achieve expected output ranges
USEFUL FOR

Control system engineers, Simulink users, and anyone involved in the design and simulation of dynamic systems with variable coefficients.

MoonDiver
Messages
6
Reaction score
0
Homework Statement
Implement in Simulink two filters using transfer functions with variable coefficients and passing a gaussian noise. The two filters are:
Relevant Equations
F(s) = ((5d)^(1/2))/(b+s);
F1(s) = (((5d)^(1/2))*((b/sqrt(3))+s)) / (b+s)^2;
The implementations for the two filters in simulink are as follow:

For the first filter:
img1.png

For the second one:

img2.png

The obtained results have values of 10^-12, while the expected results should be between 10^-3 - 10.
Since it's the first time when I try t implement a tf with variable coefficients I am not sure the implementations are correct.

I don't understand how the block scheme should be made such that I would obtain sqrt(5d)/b+s.
 
Physics news on Phys.org
I have worked with Tustin transformations whose parameters changed. I had to make my own blocks that had inputs for a reset flag, a flag to initialize with steady-state values, and the parameters (and of course, the input signal). The reset flag would recalculate the Tustin coefficients, the initialization flag would be set if the Tustin should be initialized in a steady state, and the parameters could be changed according to schedules. If the initialization flag is set, the behavior of the transformation is momentarily just a pass-through of the input signal. If the initialization flag is not set, the output would simply be calculated as though the transformation was active, regardless of whether the parameters had changed or not.
 
FactChecker said:
I have worked with Tustin transformations whose parameters changed. I had to make my own blocks that had inputs for a reset flag, a flag to initialize with steady-state values, and the parameters (and of course, the input signal). The reset flag would recalculate the Tustin coefficients, the initialization flag would be set if the Tustin should be initialized in a steady state, and the parameters could be changed according to schedules. If the initialization flag is set, the behavior of the transformation is momentarily just a pass-through of the input signal. If the initialization flag is not set, the output would simply be calculated as though the transformation was active, regardless of whether the parameters had changed or not.
Thank you for the response!

What I don't understand is how should the block scheme look like in order to achieve the b + s part of the function.

F(s) = 5d^(1/2)/(b + s)
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 6 ·
Replies
6
Views
5K