Simulink.SFunctionBuilder.setBuildOptions - Set build options for S-Function Builder block - MATLAB (original) (raw)
Main Content
Set build options for S-Function Builder block
Since R2022a
Syntax
Description
Simulink.SFunctionBuilder.setBuildOptions([blk](#mw%5Fab779676-ed2e-4391-9051-e80f5adf72ce%5Fsep%5Fmw%5Fa03c49e9-1065-4caf-86d4-a666e77c0288),[Name=Value](#namevaluepairarguments))
sets build options specified using one or more name-value arguments for theS-Function Builder block blk
. For example, to include debugging information in the generated MEX file, specifyCreateDebuggableMEX
as true
.
To configure S-function settings such as access to the SimStruct, sample mode, and sample time, use the Simulink.SFunctionBuilder.setSettings function.
To specify the language for the S-function, use the Simulink.SFunctionBuilder.setTargetLanguage function.
Input Arguments
S-Function Builder block, specified as a block handle or as a string or a character vector that defines the block path.
Tips
- To get the block handle for a block in your model, use the getSimulinkBlockHandle function.
- To get the block handle for the most recently selected or added block, use the gcbh function.
Name-Value Arguments
Specify optional pairs of arguments asName1=Value1,...,NameN=ValueN
, where Name
is the argument name and Value
is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose Name
in quotes.
Example: CreateDebuggableMEX=true
Option to log build steps, specified as logical 1
(true
) or 0
(false
).
Example: ShowCompileSteps=true
Data Types: logical
Option to include debugging information in generated MEX file, specified as logical 1
(true
) or 0
(false
).
Example: CreateDebuggableMEX=true
Data Types: logical
Option to generate TLC file, specified as logical 1
(true
) or 0
(false
).
Example: GenerateWrapperTLC=false
Data Types: logical
Option to build S-function that supports model coverage, specified as logical1
(true
) or 0
(false
).
Example: EnableSupportForCoverage=true
Data Types: logical
Option to build S-function that supports Simulink Design Verifier, specified as logical 1
(true
) or0
(false
).
Example: EnableSupportForDesignVerifier=true
Data Types: logical
Version History
Introduced in R2022a