Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

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++

See Also

ssSetNumSampleTimes

  


Related Products & Applications

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

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