MX_WRITE – Write a Matrix/Vector to the console/system log

Block SymbolLicensing group: STANDARD
Qt SVG Document Exported by REXYGEN Studio uMV RUN yMV E MX_WRITE

Function Description
The function block MX_WRITE can write a vector or matrix to the console or the system log. The severity of the console/system log output is set by the parameter mode. The function block is very useful for debugging purposes of matrix/vector algorithms.

The output references yMV is always set to the input reference uMV. If RUN = off then nothing else is done otherwise matrix or vector is written to the system log if the configured target logging level for function blocks contains the configured mode. Format of each matrix/vector element is determined by parameters mchars and mdec.

The error flag E is set to on if:

  • the reference uMV is not defined (i.e. input uMV is not connected),
  • 3 > mchars > 25,
  • 0 > mdec > mchars 2.

This block does not propagate the signal quality. More information can be found in the 1.4 section.

Input

uMV

Input reference to a matrix or vector

Reference

RUN

Enable execution

Bool

Parameter

Symbol

Matrix/vector symbolic name for console or log output  A

String

mchars

Number of characters per single element   3  25 8

Long (I32)

mdec

Number of decimal digits per single element   0  23 4

Long (I32)

mode

Severity mode of writing  3

Long (I32)

0 ....

None

1 ....

None

2 ....

Verbose

3 ....

Information

4 ....

Warning

5 ....

Error

Output

yMV

Output reference to a matrix or vector

Reference

E

Error indicator

Bool

2024 © REX Controls s.r.o., www.rexygen.com