Engineering Simulink: How to fix given error for a closed loop model w/ PID controller?

  • Thread starter Thread starter simphys
  • Start date Start date
  • Tags Tags
    Simulink
AI Thread Summary
To resolve the error in the closed-loop Simulink model with a PID controller, users are advised to check the values of all components and variables for accuracy, ensuring correct signs and units are used. It is suggested that a common issue may arise from incorrect notation, such as using 'm' instead of 'M'. Additionally, adjusting the time step or error band may help mitigate the problem as indicated by the error message. Users are encouraged to share updates on their troubleshooting progress. Proper validation of model parameters is crucial for effective simulation.
simphys
Messages
327
Reaction score
46
Homework Statement
The question that is asked is basically to create a closed loop model with a PID controller. (if necessary more information on the picture)
The problem that I am encountering is an error which I don't understand and know how to fix?
Relevant Equations
not relevant
Could I get some input on how to fix this problem please? Thanks in advance!

The exercise for which I need the model.
Screenshot from 2023-06-07 17-26-12.png
Screenshot from 2023-06-07 17-25-52.png


The simulink model together + the error that needs to be fixed + Matlab code used:


Note: Gain 1 = 1/Ti
 

Attachments

  • Screenshot from 2023-06-07 17-33-21.png
    Screenshot from 2023-06-07 17-33-21.png
    26.5 KB · Views: 134
  • error.png
    error.png
    22.5 KB · Views: 151
  • matlab_code.png
    matlab_code.png
    5.3 KB · Views: 124
  • simulink_model.png
    simulink_model.png
    7.4 KB · Views: 148
Physics news on Phys.org
I'm not an expert on this, but it looks like some of the equations it is solving are changing in value so fast that further calculations make no sense.

Please check the values of all the components/variables you have supplied. For instance maybe one is missing a minus sign or a decimal point. Another common problem is that an 'm' was entered instead of 'M' (or the other way around -- one means milli-, the other Mega-).

Then try changing the time step or error band, as the Error Msg. suggested.

Good Luck,
Tom

p.s. please keep us posted on what you find that works.
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...
Back
Top