Answered
get Bus signal names
Since R2010b I think, you can use the "SignalHierarchy" property of a port to get the names of each signal in a bus. fo example,...

14 years ago | 5

Answered
Copying a subsystem from one model to another
Fangjun's solution is possible, but this is probably simpler with function like: Simulink.SubSystem.copyContentsToBlockDiagra...

14 years ago | 2

| accepted

Answered
Simulink Signal and Physical Signal
You should be able to find what you need in the doc: 1. During Runtime, the Simscape engine combine all the components in you...

14 years ago | 2

| accepted

Published


Simulink Projects: Collaborative workflows and Model-Based Design
MATLAB R2011b is available for download since midnight September 1, 2011! Each new release brings some excitement, but...

14 years ago

Thumbnail

Answered
Is it possible to measure the body vibration of an induction motor in Simulink?
Thanks for adding details... you problems is not realy what I imagined form your original question. The SimPowerSystems induc...

14 years ago | 0

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...

15 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...

15 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...

15 years ago | 0

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

15 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...

15 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. ...

15 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...

15 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...

15 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...

15 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...

15 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...

15 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...

15 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...

15 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...

15 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...

15 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 ...

15 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...

15 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...

15 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 (...

15 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...

15 years ago | 0

Load more