Main Content

Inline MATLAB Function block code

Inline HDL code for MATLAB Function blocks

Model Configuration Pane: Global Settings / Coding style

Description

Inline HDL code for MATLAB Function blocks.

Settings

off (default) | on

Default: Off

on

Inline HDL code for MATLAB Function blocks to avoid instantiation of code for custom blocks.

off

Instantiate HDL code for MATLAB Function blocks and do not inline.

Tips

To set this property, use the functions hdlset_param or makehdl. To view the property value, use the function hdlget_param.

For example, to enable inlining of the code:

mdl = 'my_custom_block_model';
hdlset_param(mdl,'InlineMATLABBlockCode','on');

For example, to enable instantiation of HDL code:

mdl = 'my_custom_block_model';
hdlset_param(mdl,'InlineMATLABBlockCode','off');

Recommended Settings

No recommended settings.

Programmatic Use

Parameter: InlineMATLABBlockCode
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2012a