# Tag Info

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: ...
• 1,841

### 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 ...
• 1,210

### 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 ...
• 7,135

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 ...
• 106
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....
• 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... ...
• 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 ...
• 106
1 vote

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) ...
• 106
1 vote

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 ...
• 1,913
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
• 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 -(\...
• 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. ...
• 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 ...
• 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 ...
• 1,210
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 ...
• 906

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