Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ssSetOptions

Specify S-function options

Syntax

void ssSetOptions(SimStruct *S, uint_T options)

Arguments

S

SimStruct representing an S-Function block.

options

Options. See S-Function Options for available options.

Description

Use in mdlInitializeSizes to specify S-function options.

The options must be joined using the OR operator. For example:

ssSetOptions(S, (SS_OPTION_EXCEPTION_FREE_CODE |
                SS_OPTION_DISCRETE_VALUED_OUTPUT));

Each S-function sets its applicable options at the end of its mdlInitializeSizes method.

Languages

C, C++

Example

See the S-function sdotproduct.c used in sfcndemo_sdotproduct.

Introduced before R2006a

Was this topic helpful?