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.

ssGetFixedStepSize

Get the fixed step size of the model containing the S-function.

Syntax

time_T ssGetFixedStepSize(SimStruct *S)

Arguments

S

SimStruct representing an S-Function block.

Returns

A time_T value indicating the fixed step size of the model containing the S-function if the model is configured to use a fixed-step solver. Otherwise returns 0.

Description

Use this macro in methods called after the compilation phase, i.e., in mdlSetWorkWidths or later, to obtain the fixed step size of the model containing the S-function. See matlabroot/extern/include/tmwtypes.h for a description of the time_T data type.

Languages

C, C++

Example

The following lines get and display the fixed step size.

time_T fss = ssGetFixedStepSize(S);
ssPrintf("Fixed step size : %g\n",fss);

Introduced in R2007a

Was this topic helpful?