Documentation

Display Signal Attributes at Model Load Time

When working with multiple model components in large models, consider displaying signal attributes at load time without compiling the model. To enable the display, selectDisplay>Signals & Ports>Port Data Typesand save the model. The next time you load the model, it displays the data type and complexity signal attributes.

You can use theShowPortDataTypesproperty to toggle the display of the data type and complexity signal attributes:

set_param(bdroot,'ShowPortDataTypes','on') set_param(bdroot,'ShowPortDataTypes','off')

TheShowLineDimensionsandShowPortUnitsproperties then display dimensions and units at load time.

These blocks support the display of signal attributes:

For example, this model has the show port data types capability disabled.

And this is the same model after the show port data types capability is enabled.

Tip

To display port dimensions and values for a compiled model, you can use theCompiledPortDimensionsparameter. For details, seeGet Compiled Port Dimensions.

See Also

|||||

Related Topics

Was this topic helpful?