Skip to main content
4 votes
Accepted

Strange simulink error. Professor & TA don't know. Any Ideas?

Your results are correct. I have solved the differential equations in Octave using the ode solver and I get the same results: ...
am304's user avatar
  • 1,841
2 votes

Using a controller for a simple heating system

You shouldn't use a proportional control. The type of controller you describe (switching from 0 to full load and back to 0 almost instantaneously) is called a bang-bang controller. This controller is ...
BarbalatsDilemma's user avatar
2 votes

Why we use GPIO for embedded systems?

GPIO stands for General Purpose Input Output. Lets assume you want to generate a pulse at pin 39 as in the below image. So when you wire the pulse to pin 39 the underline software will generate the ...
Mahendra Gunawardena's user avatar
2 votes

Dynamic forces in Simulink

The sign function gives zero friction force for zero velocity, which is generally not correct (and leads to the artificial oscillations, as the integrator is made for smooth systems and cannot handle ...
Dominik Kern's user avatar
2 votes
Accepted

MATLAB allmargin() function return multiple GainMargin, but how to identify them on the Bode plot?

Try right clicking and there should be a menu item along the lines of show->all margins as opposed to show->minimum margin....
AJN's user avatar
  • 1,134
1 vote
Accepted

What is the Z transform of the Discreate PI control model?

Your model is already in discrete form but you need to introduce the $z$-operator to your equation. I perceive a missconception about the z-Transform. I hope the following lines will clarify that... ...
grkikes's user avatar
  • 66
1 vote

How to Use a parameter in Matlab Simulink?

It depends where the parameter (gain in your case) comes from. If it is a constant/arbitrary signal, then use multiplication instead of gain. If it comes from another SimuLink model, then include it ...
Dominik Kern's user avatar
1 vote

Dynamic forces in Simulink

This is how it (time stepping, an alternative to event-detection algorithms) can be done in Python (I am afraid having neither SimuLink nor MatLab at hand, but the algorithm should become clear) ...
Dominik Kern's user avatar
1 vote

Reject Negative Input Simulink

You can use the saturation block. Set the upper limit to "Inf" (thanks @Petrus1904) and the lower limit to 0. The output of the saturation block should accordingly be only the positive ...
OpticalResonator's user avatar
1 vote

Modeling Vehicle Acceleration - Simulink

I solved the issue with a switch function block, it not the best solution but it works for my basic simulation. Thanks again
james's user avatar
  • 43
1 vote
Accepted

Modeling Vehicle Acceleration - Simulink

If this is the case, the equation either needs a domain readjustment(so, valid from t∈[0.7,∞]) or an equation redefinition. Using a piecewise function would look like: $$ M \frac{dv}{dt} = F_t -(\...
BikerDude's user avatar
  • 146
1 vote

How to input amplitude on a second order transfer function?

It sounds like you have some experimental data, and from that you would like to be able to estimate the transfer function of your system so that you could use it for control system design purposes. ...
am304's user avatar
  • 1,841
1 vote

How to find the balance position of valve downstream a tank?

This post is a little dated but thought someone might benefit from another angle. @Solar Mike is correct. The reason you overflow frequently is because your exit valve is undersized for in inlet ...
FredG's user avatar
  • 11
1 vote

Implementing a linearized differential equation in a simulink control loop

By including $x_0$ as feedback (making $x_0 = x(t)$) you are not linearizing this system. Instead you've created a Linear Parameter-Varying (LPV) system (more specifically a quasi-LPV system since ...
BarbalatsDilemma's user avatar
1 vote

Is it normal to get different solutions with different ODE methods in MATLAB simulink?

ode solvers are all different. I've recently compared several fixed-time-step and variable-time-step ode solvers, with the same initial conditions, with the same model. Summary: They all give ...
Gürkan Çetin's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible