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.

ssGetNumSampleTimes

Get the number of sample times that a block has

Syntax

int_T ssGetNumSampleTimes(SimStruct *S)

Arguments

S

SimStruct representing an S-Function block.

Returns

An int_T value indicating the total number of port-based and block-based sample times. Returns -1 if the block has unspecified port-based sample times.

Description

Use in any routine (except mdlInitializeSizes) to determine the number of sample times used by S.

Languages

C, C++

Introduced before R2006a

Was this topic helpful?