Published


Creating Driver Blocks for Arduino, Lego, and other targets
As you may know, it is easy to run Simulink models on a set of supported target hardware. This has been possible since...

13 years ago

Thumbnail

Published


To Latch or not to Latch?
Yesterday I explained to a colleague the effect of the Inport block option Latch input for feedback signals of function-call...

13 years ago

Thumbnail

Answered
nested Simulink While Iterators
I don't remember using nested iterator subsystem myself. I was curious, so I searched our database and I cannot find reports of ...

13 years ago | 0

Answered
Variable Time Step Solver
I confirm: The "tout" signal apply to all signals that have a "continuous sample time. If you want to see more of what the co...

13 years ago | 0

Answered
Modify dynamically a sample time in Simulink
Sample time cannot change during simulation. What you can do is set the sample time as the smallest possible rate you want to...

13 years ago | 1

Answered
Simscape: Create unidirectional Locking mechanism component
You will not be able to implement a pure lock. Using Simscape language, you could write an ssc-file to "lock" by enabling a stif...

13 years ago | 0

Answered
Difference between 3D Animation Toolbox vs SimMechanics?
If you already implemented the equations in Simulink I would go for Simulink 3D Animation. You will need to find/create VRML obj...

13 years ago | 2

Answered
Using same gobal simulation options for a model and all the models that are referred in it
Share the configuration, see details here: http://www.mathworks.com/help/simulink/ug/sharing-a-configuration-set-between-refe...

13 years ago | 0

| accepted

Published


New for R2013a: Time Scope with Triggering!
Today we are happy to welcome guest blogger Kirthi Devleker to talk about a new trigger functionality added to the Time...

13 years ago

Thumbnail

Answered
Comment a block or subsystem in simulink
Right-click on it and select "Comment out": http://www.mathworks.com/help/simulink/ug/editing-blocks.html#btms_1l Ctrl+Shi...

13 years ago | 2

| accepted

Published


Time to Convert to Variant Subsystems
If you are a user of Configurable Subsystems, it is time to start thinking about making the switch to Variant...

13 years ago

Thumbnail

Answered
Simulink "While Iterator" subsystem development and debugging
The dataset logging format allows you to log all the iterations of For and While Iterator subsystems http://blogs.mathworks.c...

13 years ago | 0

| accepted

Answered
State Space with variable parameters
Do it with basic blocks. A few Product, Sum, and Integrator blocks will do the job. This solution might help: http://www.m...

13 years ago | 0

| accepted

Answered
How to group same buses together over a MUX ?
Use Concatenate: http://www.mathworks.com/help/simulink/slref/concatenate.html

13 years ago | 0

| accepted

Published


Some of My Favorite New Features in R2013a
MATLAB R2013a is now available for download! At the end of this post, I reveal my favorite feature in R2013a… what will it...

13 years ago

Thumbnail

Answered
how to integrat matlab simulink model in a raspberry pi????
You have a good timing! It is available today in R2013a: http://www.mathworks.com/academia/raspberry-pi/

13 years ago | 1

| accepted

Answered
HOW TO MAKE ODE14X RUN WITHOUT ERRORS?
Very likely this is because the dynamics in your model is too fast to be captured by the solver step size. You know... the Nyqui...

13 years ago | 0

Answered
The art of delaying (discrete)
Sample Time Offset: http://blogs.mathworks.com/seth/2011/11/20/sample-time-offset/

13 years ago | 1

| accepted

Answered
how to write a program or a simulink block of a 3 dimensional nonlinear torsional equations of a mechanical system?
This might help if you want to use SimMechanics: http://www.mathworks.com/tagteam/43892_AIAA20076479KennedyFinal.pdf

13 years ago | 0

Answered
Why does my If Action block have vertical bars next to port names?
It is an optional display to let you know if the execution context of the conditionally executed subsystem can propagate outside...

13 years ago | 2

| accepted

Answered
Pneumatic Check Valve - how do I model one from basic elements?
You have 2 options: - Build it using basic components. This will very likely involve some mechanical components like spring-m...

13 years ago | 1

Answered
Programmatically Building a Rapid Simulation (RSim) Target
did you try slbuild? http://www.mathworks.com/help/simulink/slref/slbuild.html

13 years ago | 0

| accepted

Answered
Identical blocks in Simulink with identical inputs from different sources results in different solutions
Are the colors in your image sample time colors? If yes, do you have the same response using ode1 solver? If ode1 solver give...

13 years ago | 1

Answered
Simulink "Goodness" Block, Function to Coefficeint
With only one point, I don't know... but with a buffer of past points, this sounds like a cross-correlation: http://www.mathw...

13 years ago | 0

| accepted

Published


MATLAB Language in Stateflow
Have you noticed a new block in the Stateflow Library since R2012b? The MATLAB Chart block uses MATLAB as the action...

13 years ago

Thumbnail

Published


I can’t believe it took me 6 months to find that!
This week, after using Simulink R2012b for 6 months, I discovered a little something I find very useful. Closing...

13 years ago

Thumbnail

Published


Data Dependency Violation Errors and Subsystem Semantics
Did you ever receive a "data dependency violation" error message from a Simulink model? I will try to explain why...

13 years ago

Thumbnail

Answered
LEGO NXT - Datalog ability - adjustments of external mode or other solutions?
Here are a few info that might help you based on my experience: - Typically, external mode is a lower priority process. If yo...

13 years ago | 0

| accepted

Published


Accessing Block Data During a Simulation
This week I discovered that event listeners also work with bus signals! You might be saying: "What is an event...

13 years ago

Thumbnail

Answered
Signal flow in Simulink Model
The sorted order is the way to see in which order blocks are executed.... this is equivalent to the data flow: http://www.mat...

13 years ago | 1

| accepted

Load more