Main Content


Get build options for S-Function Builder block

Since R2022a


    buildOpts = Simulink.SFunctionBuilder.getBuildOptions(blk) returns a structure with fields that indicate which build options are enabled for the S-Function Builder block blk.

    Input Arguments

    collapse all

    S-Function Builder block, specified as a block handle or as a string or a character vector that defines the block path.


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

    Output Arguments

    collapse all

    Build options for S-Function Builder block, returned as a structure that contains these fields:

    • ShowCompileSteps — Option to log build steps

    • CreateDebuggableMEX — Option to include debugging information in MEX file

    • GenerateWrapperTLC — Option to generate TLC file

    • EnableSupportForCoverage — Option to build S-function that supports model coverage

    • EnableSupportForDesignVerifier — Option to build S-function that supports Simulink® Design Verifier™

    The value of each field is a logical indication of whether that build option is enabled.

    Version History

    Introduced in R2022a