Main Content

ssSetInputPortAcceptExprInRTW

Specify whether a block input accepts a nonconstant expression

Syntax

void ssSetInputPortAcceptExprInRTW(SimStruct *S, int portIdx, bool value)

Arguments

S

SimStruct that represents an S-Function block.

portIdx

Port whose input expression acceptance is being set.

value

Set value to 1 to allow the block input to accept a nonconstant expression, or to 0 to disallow.

Description

Use in mdlInitializeSizes to specify whether the block input, port, should accept a nonconstant expressions. Nonconstant expressions are trivial or generic expressions.

Languages

C, C++

Version History

Introduced before R2006a