Main Content

ssLogFixptInstrumentation

Record information collected during simulation

Syntax

extern void ssLogFixptInstrumentation
                              (SimStruct *S,
                               double minValue,
                               double maxValue,
                               int countOverflows,
                               int countSaturations,
                               int countDivisionsByZero,
                               char *pStrName)

Arguments

S

SimStruct representing an S-function block.

minValue

Minimum output value that occurred during simulation.

maxValue

Maximum output value that occurred during simulation.

countOverflows

Number of overflows that occurred during simulation.

countSaturations

Number of saturations that occurred during simulation.

countDivisionsByZero

Number of divisions by zero that occurred during simulation.

*pStrName

The string argument is currently unused.

Description

ssLogFixptInstrumentation records information collected during a simulation, such as output maximum and minimum, any overflows, saturations, and divisions by zero that occurred. The Fixed-Point Tool displays this information after a simulation.

Requirement

To use this function, you must include fixedpoint.h and fixedpoint.c. For more information, see Structure of the S-Function.

Languages

C

Version History

Introduced in R2008b