| Contents | Index |
int_T ssSetNumSampleTimes(SimStruct *S, int_T nSampleTimes)
The number of sample times specified by nSampleTimes, or -1 if PORT_BASED_SAMPLE_TIMES.
Use in mdlInitializeSizes to set the number of sample times S has. Use a positive integer greater than 0 to set block-based sample times. Use PORT_BASED_SAMPLE_TIMES to set port-based sample times. See Sample Times for more information.
C, C++
See the S-function mixedmex.c used in sfcndemo_mixedmex.mdl and the S-function sfun_port_constant.c used in sfcndemo_port_constant.mdl.

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |