| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
int_T ssGetNumSampleTimes(SimStruct *S)
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.
Use in any routine (except mdlInitializeSizes) to determine the number of sample times used by S.
C, C++
![]() | ssGetNumRWork | ssGetNumSFcnParams | ![]() |

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 |