Skip to Main Content Skip to Search
Product Documentation

ssAddOutputDimsDependencyRule - Register a method to handle current dimensions update.

Syntax

void ssAddOutputDimsDependencyRule(SimStruct *S, int_T outIdx, DimsDependInfo_T ruleInfo)

Arguments

S

SimStruct representing an S-Function block.

outIdx

Output port index.

ruleInfo

Structure containing the dimensions propagation method information.

Returns

No return value

Description

Use this function in mdlSetWorkWidths to register a method that updates the dimensions for the output port when there is a change in the current input signal dimensions. The method is for the case when the output signal size depends only on the input signal size. It is called only when a dimensions update is necessary, instead of calling in each sim loop pass.

Requires you to set up a ruleinfo struct, which includes

Languages

C, C++

Example

See the S-function sfun_varsize_holdStatesUntilReset.c.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS