ssSetDWorkWidth
Specify the width of a data type work vector
Syntax
int_T ssSetDWorkWidth(SimStruct *S, int_T vector, int_T width)
Arguments
-
S
-
SimStruct representing an S-Function block.
-
vector
-
Index of the work vector, where the index is one of
0
,1
,2
,...
ssGetNumDWork(S)-1
. -
width
-
Number of elements in the work vector.
Returns
The number of elements passed in throughwidth
.
Description
Use inmdlInitializeSizes
or inmdlSetWorkWidths
to set the number of elements in the specified data type work vector. For more information on using DWork vectors, seeHow to Use DWork Vectors.
Languages
C, C++
Example
See the S-functionsfun_rtwdwork.c
used insfcndemo_sfun_rtwdwork
.