MX_DSAREF – Set reference to subarray of A into B

Block SymbolLicensing group: STANDARD
PIC

Function Description
The function block MX_DSAREF creates a reference yB to the subarray (submatrix) of matrix referenced by uA. This operation is very fast because no matrix element is copied.

The output reference yA is always set to the corresponding input reference uA, the output reference yB is created inside each instance of this function block. If HLD = on then no other operation is performed otherwise the reference to the matrix yB is created with the following properties:

The error flag E is set to on if:

Inputs

uA

Input reference to matrix A

reference

i

Index of the subarray first row

long

j

Index of the subarray first column

long

HLD

Hold

bool

Parameter

ay

Output reference of the subarray  [0 0]

double

Outputs

yA

Output reference to matrix A

reference

yB

Output reference to matrix B

reference

E

Error indicator

bool