Example: Size Operator

A small block diagram example for the Size X and Size Y operator has been created:

matrix is a 3x3 matrix of type cont, matrixSize_X and matrixSize_Y are of type wrapInt.

Code is generated for the ANSI-C target, the Object Based Controller Implementation code generator and the AUTOSAR R4.0.2 operating system. The resulting C code reads as follows:

1   

FUNC(void, SWC_SizeOpExample_CODE) SWC_SizeOpExample_Impl_runnable (void)

2

{

3

_matrixSize_x = (uint32)3U;

4

_matrixSize_y = (uint32)3U;

5

}

See also

Size Operators

Using the Size Operators