unpack
(Removed) Extract signal data from ModelDataLogs,
SubsysDataLogs, or TSArray object into workspace
variables
The unpack function has been removed. Support for the
ModelDataLogs format has been removed. Use another supported format, such
as Dataset, instead. For more information, see Version History.
Description
Input Arguments
Object from which to extract logged data, specified as a
Simulink.ModelDataLogs object, a
Simulink.SubsysDataLogs object, or a
Simulink.TSArray object.
Logged data to unpack into workspace, specified as 'systems' or
'all'.
'systems'— ExtractSimulink.TimeseriesandSimulink.TSArrayobjects fromSimulink.ModelDataLogsorSimulink.SubsysDataLogsobject.Simulink.Timeseriesobjects are not extracted fromSimulink.TSArrayobjects, and intermediateSimulink.ModelDataLogsandSimulink.SubsysDataLogsobjects are not extracted to the workspace.'all'— ExtractSimulink.Timeseriesobjects from allSimulink.ModelDataLogs,Simulink.SubsysDataLogs, andSimulink.TSArrayobjects.
Version History
Introduced before R2006aData stored in the ModelDataLogs format, including data stored in
Simulink.ModelDataLogs, Simulink.Timeseries,
Simulink.TSArray, and Simulink.SubsysDataLogs objects,
is no longer supported.
The unpack function has been removed. To convert data logged in
ModelDataLogs format to Dataset format, use a
version of Simulink prior to the R2024b release.
The convertToDataset function has been removed, and the
Simulink.SimulationData.Dataset object can no longer convert
ModelDataLogs format to Dataset format. To convert
data logged in ModelDataLogs format to Dataset format,
use a version of Simulink prior to the R2024b release.
Starting in R2022b, you can no longer load data stored in the
ModelDataLogs format, including data stored in
Simulink.Timeseries, Simulink.TSArray, and
Simulink.SubsysDataLogs objects.
For scripts that simulate a model created in a release earlier than R2016a that uses
ModelDataLogs format for logging, you can convert data stored in the
ModelDataLogs format to the Dataset format.
Converting a model from using ModelDataLogs format to using
Dataset format can require that you modify your existing models and
code in callbacks, functions, scripts, or tests. This table identifies possible issues to
address after converting to Dataset format.
Possible Issue After Conversion to Dataset
Format | Solution |
|---|---|
Code in existing callbacks, functions, scripts, or tests that used the
| Check for code that uses For example, suppose that existing code includes this line. logsout.('Subsystem Name').X.dataReplace
that code with a get(logsout,"x").Values.data |
Mux block signal names are lost. | The |
Signal Viewer cannot be used for signal logging. | The software does not log signal logging data in the Signal Viewer. Use the signal logging output variable to view the logged data. |
The | The For example, suppose the data in
|
The | If necessary, add signal names. In
In For both |
Test points in referenced models are not logged. | Consider enabling signal logging for test points in a referenced model. |
Script uses | Consider using |
When you load data that uses the ModelDataLogs format as input for
simulation, the software issues a warning that support for loading data in the
ModelDataLogs format will be removed in a future release.
In a future release, the ability to load data that uses the
ModelDataLogs format as input for simulation will be removed.
Starting in R2016a, you can no longer log data using the ModelDataLogs
format, and signal logging always uses the Dataset format. When
you open a model from a previous release that had logged data using
ModelDataLogs format, the model configuration parameters are updated to
log data using the Dataset format instead.
You can still use and access data logged using the ModelDataLogs format
in previous releases, including data in Simulink.SubsysDataLogs,
Simulink.TSArray, and Simulink.Timeseries objects. You
can also convert data saved in the ModelDataLogs format to the
Dataset format, which can simplify data processing.
See Also
Objects
Functions
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)