Guy on Simulink

Simulink & Model-Based Design

Posts 31 - 40 of 56

結果: 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... 続きを読む >>

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... 続きを読む >>

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... 続きを読む >>

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... 続きを読む >>

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... 続きを読む >>

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,... 続きを読む >>

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... 続きを読む >>

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... 続きを読む >>

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... 続きを読む >>

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... 続きを読む >>

Posts 31 - 40 of 56