Answered
Why would a Simulink disabled block still be executed?
Try setting the diagnostic "Underspecified initialization detection" to Simplified, this might help: http://www.mathworks.com...

14 years ago | 0

Published


Dynamics Mask Icons for Subsystem Variants
Today I will illustrate how to combine two features I like: Subsystem Variants and Masking. The Question I created a...

14 years ago

Thumbnail

Answered
SIMULINK: Using FMINSEARCH online for xpctarget
In simulation, you can call fminsearch or fmincon from MATLAB S-function of from the MATLAB function as extrinsic. You cannot...

14 years ago | 0

Answered
SIMULINK: Using FMINSEARCH online for xpctarget
In simulation, you can call fminsearch or fmincon from MATLAB S-function of from the MATLAB function as extrinsic. You cannot...

14 years ago | 0

Published


Generating Code for Real-Time Multicore Systems
Do you generate code to be executed on a multi-core processor? Wouldn't it be cool if you could decide which part of the...

14 years ago

Thumbnail

Published


Do YOU want to win the Simulink Student Challenge?
A couple weeks back MathWorks announced the Simulink Student Challenge. We have seen some crazy great things developed in...

14 years ago

Thumbnail

Answered
Trying to create an electrical circuit
The error is clear... "Check for missing reference node" means that your circuit does not have a reference. Add this block to gr...

14 years ago | 2

Answered
traffic modelling
SimEvents is a very nice tool to model traffic... see this example: http://www.mathworks.com/matlabcentral/fileexchange/20287...

14 years ago | 1

| accepted

Published


Continuous sample time inside For Each Subsystem
Back in 2010, I wrote a post explaining how to apply a scalar algorithm to a vector using the For Each subsystem. At that...

14 years ago

Thumbnail

Answered
adding controls to a non-linear simscape thermal model
- Yes you can apply any control algorithm you can think of on the Simscape model - You typically linearize the model because ...

14 years ago | 0

| accepted

Answered
How to run simulation in real time
To slowdown a simulation to something close to real-time, try my submission here: http://www.mathworks.com/matlabcentral/fileex...

14 years ago | 2

| accepted

Published


Simulink Student Challenge: $1000 in prizes!
Have you done something super-cool in Simulink?Can you make a short video of it and share it on YouTube?Are you a...

14 years ago

Thumbnail

Answered
converter for simmech to simelec
To "convert" mechanical power into electricity and vice-versa, use a converter block: http://www.mathworks.com/help/toolbox/p...

14 years ago | 0

Answered
algebraic loop and Simscape ?
2D and 3D physical systems like a pendulum on cart are most easily represented by a Differential Algebraic Equations (DAE), and ...

14 years ago | 0

| accepted

Published


Troubleshooting the Transport Delay Block
Yesterday I came across this model: At first look, one might think that these two implementations should give the...

14 years ago

Thumbnail

Answered
How do I run a simulation with a transfer function block and a multi dimensional input ?
Hi Pham, In R2011b, place the transfer function inside the For Each subsystem. The For Each subsystem now support continuous ...

14 years ago | 0

Answered
Generating signal with variable frequency
See my example here: http://blogs.mathworks.com/seth/2011/03/08/how-do-i-change-a-block-parameter-based-on-the-output-of-anot...

14 years ago | 0

| accepted

Answered
Selecting bus signal from variable in Simulink
Use the MATLAB Function block (previously called Embedded MATLAB Function block). This does not work exactly as you describe, ...

14 years ago | 0

Answered
Simulink missed some of the time values during simulation?
See my post here: http://blogs.mathworks.com/seth/2011/06/20/importing-variable-step-signals-into-simulink/ For a variable...

14 years ago | 0

| accepted

Published


How to customize the Simulink Scope – Take 2
Among all the posts I made in the last year, one that received many comments is How to customize the Simulink Scope. In this...

14 years ago

Thumbnail

Answered
Simulation of a pneumatic system
In Simulink you can implement the equations of any system you want to model. For pneumatic, there is a specific toolbox, Sims...

14 years ago | 0

Answered
Can I create my own Workflow Advisor?
Simulink Verification and Validation can help you do that. http://www.mathworks.com/products/simverification Look at the d...

14 years ago | 0

Answered
How to represent a 6DoF platform using SimMechanics?
There is a Stewart Platform demo shipped with SimMechanics. The Stewart platform is a 6dof platform, actuated by 6 linear actuat...

14 years ago | 0

| accepted

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

Load more