Main Content

ssSetNumIWork

Specify the size of a block's integer work vector

Syntax

void ssSetNumIWork(SimStruct *S, int_T nIWork)

Arguments

S

SimStruct representing an S-Function block.

nIWork

Number of elements in the integer work vector.

Description

Use inmdlInitializeSizesto specify the number ofint_Twork vector elements as 0, a positive integer, orDYNAMICALLY_SIZED. If you specifyDYNAMICALLY_SIZED, you can specify the true (positive integer) width inmdlSetWorkWidths; otherwise, the width used is the width of the signal passing through the block. The elements of the IWork vector are initialized toNULLuntil values are assigned usingssSetIWorkValueor via the pointer obtained fromssGetIWork.

拉nguages

C, C++

Example

See the S-functionsfun_multirate.cused insfcndemo_sfun_multirate.

Version History

Introduced before R2006a