simscape.logging.import
Create simulation log variable to access data in MLDATX file
Description
var = simscape.logging.import(
creates a
workspace variable fileName
)var
, of type simscape.logging.Node
,
which references the simlog
object in the specified MLDATX file.
You can use this function to view and analyze simulation data that was logged with the Stream data to temporary disk directory preference turned on.
When you stream simulation data to disk, you can save the simlog
object as
an MLDATX file by using the simscape.logging.export
function. The
simscape.logging.import
function lets you retrieve that data at a
later time, for example, when the model is not in memory. The function associates data in
the file with the workspace variable var
, which you can use to access the
logged simulation data. If you do not assign a variable name when calling the function, then
the workspace variable name is ans
.