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.

ssIsVariableStepSolver

Determine if a variable-step solver is being used to solve the S-function

Syntax

boolean_T ssIsVariableStepSolver(SimStruct *S)

Arguments

S

SimStruct representing an S-Function block or a Simulink® model.

Returns

The Boolean value true if the solver being used to solve S is a variable-step solver. Otherwise, returns false.

Description

Use to determine if the simulation is being solved using a variable or fixed-step solver. This is useful when you are creating S-functions that have zero crossings and an inherited sample time.

Languages

C, C++

Example

See the S-function vsfunc.c used in sfcndemo_vsfunc and the S-function sfun_atol.c used in sfcndemo_sfun_atol.

Introduced before R2006a

Was this topic helpful?