Guy and Seth on Simulink

Results for: Signals

Logging Multiple Signals

Posted by Guy Rouleau,

Logging Multiple Signals Today I want to highlight a new entry in the Simulation menu in R2013b: Log/Unlog Selected Signals. If you have to log multiple signals, this will save you a lot of time. As its name implies, this option allows you to select multiple signals and enable logging for all of them... read more >>

Why you should use the Function-Call Split block 3

Posted by Guy Rouleau,

Why you should use the Function-Call Split block Today I had a good discussion with a user regarding the Function-Call Split block introduced in R2010a. On one side, the user claimed that there was no need for a Function-Call Split block. For example, in the following model the Demux block can be used to obtain results similar to the... read more >>

The Easiest Way to Import Signals Into Your Model 3

Posted by Guy Rouleau,

The Easiest Way to Import Signals Into Your Model A benefit of Model-Based Design is using the same model to accomplish several tasks: tuning, testing, debugging, combining component models into larger system models, etc. Ideally, you should not have to modify your model to accomplish all of these tasks. In Simulink, there are many techniques for importing signals into a... read more >>

Sum Block: Round or Rectangular? 5

Posted by Guy Rouleau,

Sum Block: Round or Rectangular? Working in technical support, I see a lot of Simulink models from users. I have realized that many users do not know how to, or do not take the time to configure the ports of the Sum block. For example, when I see things like this, it makes my eyes hurt... read more >>

Comparing Runs using Simulation Data Inspector 13

Posted by Guy Rouleau,

Comparing Runs using Simulation Data Inspector Do you use the Simulation Data Inspector? Here is an example where it saved me a lot of debugging time. Simulation Accuracy I recently had to validate system behavior and analyze numerical accuracy of a model. Making small modifications in one part of the model was leading to unexpectedly large differences at... read more >>

To Latch or not to Latch?

Posted by Guy Rouleau,

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 subsystem outputs . I thought it would be interesting to share here. The Problem In the following model, inside the calib function-call subsystem, the Count signal is connected to a Unit Delay block. When... read more >>

New for R2013a: Time Scope with Triggering! 4

Posted by Guy Rouleau,

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 Scope in R2013a. Did you know that a Trigger functionality is now available with the Time Scope in the DSP System Toolbox (R2013a) ? The Time Scope ships both as... read more >>

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 >>

Where is the Reverse Multi-port Switch Block? 2

Posted by Guy Rouleau,

Where is the Reverse Multi-port Switch Block? I recently noticed requests for a block implementing a behavior that might be called "Reverse Multiport Switch". You can find a few request like that on MATLAB Answers here and here. In my opinion, the difficulty for users to implement this behavior is in-part due to a problem with word selections.... read more >>

An Ounce of Design Min/Max is Worth…

Posted by Guy Rouleau,

An Ounce of Design Min/Max is Worth… Often, it is worth putting a bit of extra effort at the beginning of a project to save time later. Today I want to introduce a feature that gets more useful with every release of Simulink, but unfortunately I think very few people use it: Signal Ranges How do Signal Ranges work? In... read more >>

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