Generate file for use by real-time From File block
SimulinkRealTime.utils.bytes2file(
generates a file for use by the real-time From File block. The
From File block outputs one column of variables filename
, var1,
. . , varX
)var1, .
. , varX
from file filename
at every time step.
Variables var1, . . , varX
must be matrices
in column-major format and have the same number of columns. The number
of rows and the data types of the matrix elements can be different.
Data sometimes appears in row-major format (a row, not a column,
refers to a time step). In such cases, transpose the variable and
pass the result to SimulinkRealTime.utils.bytes2file
.
To optimize file writes, organize the data in columns.