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 will be removed. Use another supported format,
instead. For more information, see Version History.
Description
Input Arguments
logs
— Object from which to extract logged data
Simulink.ModelDataLogs
object | Simulink.TSArray
object | Simulink.SubsysDataLogs
object
Object from which to extract logged data, specified as a
Simulink.ModelDataLogs
object, a
Simulink.SubsysDataLogs
object, or a
Simulink.TSArray
object.
opt
— Logged data to extract into workspace variables
'systems'
| 'all'
Logged data to unpack into workspace, specified as 'systems'
or
'all'
.
'systems'
— ExtractSimulink.Timeseries
andSimulink.TSArray
objects fromSimulink.ModelDataLogs
orSimulink.SubsysDataLogs
object.Simulink.Timeseries
objects are not extracted fromSimulink.TSArray
objects, and intermediateSimulink.ModelDataLogs
andSimulink.SubsysDataLogs
objects are not extracted to the workspace.'all'
— ExtractSimulink.Timeseries
objects from allSimulink.ModelDataLogs
,Simulink.SubsysDataLogs
, andSimulink.TSArray
objects.
Version History
Introduced before R2006aR2024b: Removed
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.
R2024b: Converting data logged in ModelDataLogs
format to Dataset
format no longer supported
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.
R2022b: Loading data saved in the ModelDataLogs
format no longer supported
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.data Replace
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 |
R2021a: Loading data saved in the ModelDataLogs
format will not be supported
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.
R2020b: Loading data saved in the ModelDataLogs
format will not be supported
In a future release, the ability to load data that uses the
ModelDataLogs
format as input for simulation will be removed.
R2016a: Logging data using ModelDataLogs
format no longer supported
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)