| Writing S-Functions | ![]() |
Specify the number of data type work vectors used by a block.
Syntax
void ssSetNumDWork(SimStruct *S, int_T nDWork)
Arguments
S
SimStruct representing an S-function block.
Description
Use in mdlInitializeSizes to specify the number of data type work vectors as 0, a positive integer, or DYNAMICALLY_SIZED. If you specify DYNAMICALLY_SIZED, you can specify the true (positive integer) number of vectors in mdlSetWorkWidths.
You can specify the size and data type of each work vector, using the macros ssSetDWorkWidth and ssSetDWorkDataType, respectively. You can also specify that the work vector holds complex values, using ssSetDWorkComplexSignal.
Languages
See Also
ssGetNumDWork, ssSetDWorkWidth, ssSetDWorkDataType, ssSetDWorkComplexSignal
| ssSetNumDiscStates | ssSetNumInputPorts | ![]() |