| Writing S-Functions | ![]() |
Specify the number of states for which a block detects zero crossings that occur between sample points.
Syntax
ssSetNumNonsampledZCs(SimStruct *S, nNonsampledZCs)
Arguments
S
SimStruct representing an S-function block.
Description
Use in mdlInitializeSizes to specify the number of states for which the block detects nonsampled zero crossings (real_T) as 0, a positive integer, or DYNAMICALLY_SIZED. If you specify DYNAMICALLY_SIZED, you can specify the true (positive integer) width in mdlSetWorkWidths, otherwise the width to be used will be the width of the signal passing through the block.
Languages
See Also
ssSetNumModes
| ssSetNumModes | ssSetNumOutputPorts | ![]() |