This model samples the model inputs u
and saves them to a json file.
The parameter nin
defines the number of variables that are stored.
In Dymola, this parameter is updated automatically when inputs are connected to the component.
The parameter fileName
defines to what file name the results
are saved. The file is in the current working directory,
unless an absolute path is provided.
The parameter keyNames
defines the key names that are used to
store the json values corresponding to the inputs u
.
This model samples its inputs at the time defined by the parameter outputTime
and writes them to the file fileName
.
The model has the following options:
outputTime==OutputTime.Initial
, results are saved at initialisation.
outputTime==OutputTime.Custom
, results are saved when the built-in variable
time
achieves customTime
.
outputTime==OutputTime.Terminal
, results are saved when the simulation terminates.