# Guy and Seth on Simulink

## 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 right-clicking each signal individually and enabling them one by one, using the Signal Properties dialog.

This is convenient if you have only a few signals to log. However this is annoying if you need to enable logging for many signals. Here is another way to do that.

Enabling Signal Logging from Model Explorer

The first thing to notice is that in Model Explorer, you have a set of predefined Column Views pre-configured for common tasks. Since we want to configure a property of signals, let's select the Signals configuration.

In this mode, you will see a DataLogging column. Click on the top of the first column to group the named signals together. Use Ctrl+Click or Shift+Click as in any other Windows application to select all the signals you want to log. Click on one of the box in the DataLogging column to enable/disable them all.

*** Note that I dragged the DataLogging column on the left to better display it in this image

I recommend going through the documentation page titled The Model Explorer: Organizing How Data Displays if you want to see in more details how the Model Explorer can be configured to display exactly what you need.

Is this trick useful for you? Please share with us any tricks you have to setup models, using the Model Explorer or not, by leaving a comment here.

 Name (required) E-mail (required, will not be published) Website (optional) Spam protection (required): What is 3 + 6 ?

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>


If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).

Guy Rouleau and Seth Popinchalk are Application Engineers for MathWorks. They write here about Simulink and other MathWorks tools used in Model-Based Design.

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