Published


Controlling signal logging from Model Explorer
Today I want to share a useful trick to control signal logging using the Model Explorer. Enabling Logging from the Signal...

14 years ago

Thumbnail

Answered
Can I adjust the matrix of state-space model during simulation in Simulink?
See my answer here: http://www.mathworks.com/matlabcentral/answers/10373-dynamic-transfer-function-in-simulink There is a ...

14 years ago | 0

| accepted

Answered
Zero Crossing Detection in Simscape (specifically SimHydraulics)
Based on my experience, I do NOT recommend to turn off zero-crossing in a Simscape model. As you probably saw in the next link, ...

14 years ago | 1

| accepted

Published


The Dataset logging format
Did you notice the new Dataset logging format available in R2011a? This new format offers a lot of advantages over...

14 years ago

Thumbnail

Answered
How can I hide some library blocks in library browser
To hide or disable blocks and libraries in the Simulink Library Browser, you need to create an sl_customization.m file. The proc...

14 years ago | 0

| accepted

Answered
Problem: how to get datas from integrator block in simulink
My favorite way to send data each time step from a model to a GUI is with an event listener. See those links: http://www.math...

14 years ago | 0

Answered
k step ahead simulation in simulink subsystems
If your model is linear or close to, you might be interested in the Model Predictive Control Toolbox: http://www.mathworks.co...

14 years ago | 0

Answered
XY graph don't plot
One classic mistake is to forget setting the x and y limits.

14 years ago | 0

Published


Detecting Divide by Zero Errors
Wouldn't it be great if you could analyze a Simulink model and certify that it will never encounter design errors like...

14 years ago

Thumbnail

Answered
Simulink: Accelerator handles parameter change from script, but Rapid Accelerator fails to rebuild
Please contact technical support with your example model if the rapid accelerator does not rebuild when you think it should. ...

14 years ago | 0

Answered
Different PID response from normal feedback loop and unity feedback loop
You are not comparing the same thing. In the upper case, you take a measurement between process and sensor/transmitter. In th...

14 years ago | 0

Published


Are you using the right block?
Working in technical support, I receive a lot of models. Sometimes I am impressed by very clever implementations, but...

14 years ago

Thumbnail

Answered
how to auto tune pid parameters in a closed loop control system when an adams plant exist in the model?
For an optimization of controller parameters that will really simulate the ADAMS block, I recommend going for Simulink Design Op...

14 years ago | 1

Answered
Running Matlab Algorithim in Simulink
To make a real-time application, you will need to generate code for the model. If you use a function that need to be declared as...

14 years ago | 1

| accepted

Answered
Nonlinear solver
This often happens when your model is too ideal and there is a sudden transition. In a hydraulic model, this could for examp...

14 years ago | 2

Answered
sample time mismatch
In the Signal builder, go to the file menu, there is an option to set the sample time. Change it from 0 to 1. I recommend ena...

14 years ago | 1

Published


Model-Based Design of a Hydraulic Press
Today guest blogger Arnaud Miege presents a great example of adopting Model-Based Design. As an application...

14 years ago

Thumbnail

Published


Explaining Model-Based Design to your Mom
Today, we had a short conversation at the start of a meeting. It went something like this: Guy: Yesterday I opened the...

14 years ago

Thumbnail

Answered
Speed comparison S-Function - Simulink blocks
MATLAB-file s-functions are interpreted by the MATLAB engine. Core blocks are compiled. As said on wikipedia: "The main di...

14 years ago | 6

| accepted

Answered
Initial state vector "X0" must be a real vector of length 103.
You modified a Discrete Filter, this block has states and you very likely changed the number of states. I recommend running the ...

14 years ago | 0

| accepted

Answered
Please help me im getting crazy!
Please do not get crazy! To investigate on your own, I would look at this solution: http://www.mathworks.com/support/solut...

14 years ago | 0

Published


Variable-size signals and Unit Delay
I received requests recently about variable-size signals and the Unit Delay block. One question, many answers What...

14 years ago

Thumbnail

Answered
Dynamic Transfer Function in simulink
I recommend this solution "How do I model a transfer function with coefficients that vary with simulation time in Simulink 7.5 (...

14 years ago | 5

| accepted

Answered
Importing data into Simulink from a file or the Matlab workspace
I recommend going through this documentation section: http://www.mathworks.com/help/toolbox/physmod/simscape/ref/controlledvo...

14 years ago | 0

Answered
Piezo actuator setup generating SimElectronics error "Failed to solve using iteration matrix. Initial conditions solve failed to converge."
The main problem is that you are using a Sensor instead of an actuator. To apply a voltage to the Piezo, I recommend using a Vol...

14 years ago | 0

| accepted

Answered
Input different DC voltage at different time Simulink
If you are using SimPowerSystems, what you need is the Controlled Voltage Source, then you feed a signals as described by Nirmal...

14 years ago | 1

Answered
'PID Controller' in library 'simulink_need_slupdate', error while trying to run old Simulink Code
It looks like your model has been made in an old release (before ~R2009), then open and saved in a recent release. But now you a...

14 years ago | 1

| accepted

Answered
Turn Off Simulink Warning for Transport Delay Time Shorter than Fixed Time Step
I would recommend to reconsider your design and not use a delay smaller than the time step. There is a reason why this warning i...

14 years ago | 0

Answered
Dynamically changing sample time for discrete time integrator
Set the sample time of the discrete time integrator to be inherited and place it inside a triggered subsystem. You will need to ...

14 years ago | 0

| accepted

Answered
Trouble with linearizing SHO system/empty Bode plots
The following documentation page explains how to linearize a SimMechanics http://www.mathworks.com/help/toolbox/physmod/mech/...

14 years ago | 0

| accepted

Load more