Guy on Simulink

Simulink & Model-Based Design

Posts 31 - 40 of 56

Results for: Signals

Initializing buses using a MATLAB Structure 10

Did you notice that since R2010a it is possible to initialize buses with a MATLAB structure? If you were not aware, here is how it works. Starting from a Structure Let's say I have a structure... read more >>

Continuous sample time inside For Each Subsystem 7

Back in 2010, I wrote a post explaining how to apply a scalar algorithm to a vector using the For Each subsystem. At that time, only discrete algorithms could be vectorized that way. In R2011b, the... read more >>

Troubleshooting the Transport Delay Block 2

Yesterday I came across this model: At first look, one might think that these two implementations should give the same results. However this is not the case because the delayed data is... read more >>

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 Properties dialog Until recently, to enable logging of signals I was... read more >>

The Dataset logging format 2

Did you notice the new Dataset logging format available in R2011a? This new format offers a lot of advantages over the old ModelDataLogs format. Here are a few examples. Timeseries... read more >>

Variable-size signals and Unit Delay 2

I received requests recently about variable-size signals and the Unit Delay block. One question, many answers What should a Unit Delay do when the size of a signal changes? Unfortunately,... read more >>

Importing variable-step signals into Simulink

This week I received the following question from a Simulink user: I have a data acquisition system which saves signals at variable intervals. I want to import this data into a variable-step... read more >>

Data Store Enhancement: Accessing Specific Bus and Array Elements 8

In Simulink R2011a, Data Store blocks have been improved to support bus signals and more. To give you a quick idea, these enhancements can transform the syntax you are used to on the left to what... read more >>

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

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

You need an integrator with variable limits… there’s a solution for that! 17

By Guy Rouleau Today I received a question where the user was looking for an Integrator block with variable upper and lower limits that could be specified from signals. I was happy to simply... read more >>

Posts 31 - 40 of 56