Guy and Seth on Simulink

Results for: Parameters

Accessing Block Data During a Simulation 4

Posted by Guy Rouleau,

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 listener?" In this post, I will describe how to register an event listener for a bus signal to display signal values on a figure. Here is the final result: You can download... read more >>

Upgrading Simulink Libraries with Forwarding Tables and Transformation Functions 3

Posted by Guy Rouleau,

Upgrading Simulink Libraries with Forwarding Tables and Transformation Functions If you create and maintain Simulink libraries used in many models, or by many people, I think you will like this R2012a new feature: Interactive Library Forwarding Tables for Updating Links. Note: Library Forwarding Tables have been around for a long time, but they used to be available through the command... read more >>

Finding where variables are used from the Model Explorer

Posted by Guy Rouleau,

Finding where variables are used from the Model Explorer In a previous post, we illustrated the Simulink.findVars function. To be honest, I am not very good at remembering the syntax of functions. Every time I encounter a situation where I could use Simulink.findVars, I need to open the documentation to figure out how to use it. Being a Simulink user,... read more >>

How Do I Change a Block Parameter Based on the Output of Another Block? 20

Posted by Guy Rouleau,

How Do I Change a Block Parameter Based on the Output of Another Block? By Guy Rouleau One question I often receive is: How can I change the value of a block parameter while the simulation is running? A good example of this type of question is the following: How do I model a transfer function with coefficients that vary with simulation time in Simulink? Every time I... read more >>

Model Explorer for Data Management and more 1

Posted by admin,

Model Explorer for Data Management and more By Parasar Kodati Working with models can involve multiple interfaces to configure and run a simulation. You may need to: navigate through the various levels of model hierarchy in the model editor; use the Configuration Parameters interface to select things like the solver and step size; and use the MATLAB workspace... read more >>

Variables You Depend On 6

Posted by Seth Popinchalk,

Variables You Depend On  Have you ever sent someone a Simulink model only to find out they couldn't run it because you didn't include the required variables? MathWorks technical support has this problem on a daily basis. This week guest blogger Parasar Kodati shares with us a new feature to address this issue... read more >>

Where Does That Variable Come From? 23

Posted by Seth Popinchalk,

Where Does That Variable Come From? Most Simulink models use workspace variable to define the important parameters.  For example, setting the gain value to K and then defining K in the workspace.  I wrote about initializing these parameters in the base workspace in a recent post.  Have you ever noticed that there are many sources for these parameters?  The value... read more >>

Initializing Parameters 32

Posted by Seth Popinchalk,

Initializing Parameters Simulink models often use parameters from the MATLAB base workspace.  However, Simulink does not save the MATLAB base workspace with the model.  This leads me to the following question: How do you initialize the workspace for your simulation? Simulink Demos Most Simulink Demos initialize the base workspace before they are loaded.  Let’s take a look at... read more >>

These postings are the author's and don't necessarily represent the opinions of MathWorks.