Recurse into logged Simulation Output Simulink

This function retrieves the timeseries data of the logged Data recursively, it will also recurse into Buses.
3 download
Aggiornato 6 mar 2024

Visualizza la licenza

Logging Data in Simulink is easy, but when using buses it can be hard to access the Data in the Matlab Workspace. Therefore this function recurses into the logsout data object and will extract the Values Data and Time.
function [varargout] = recurseIntoLogsout(SC,varargin)
% This function recurses into the Simulink.SimulationData.Dataset object.
%
% [names] = recurseIntoLogsout(out.logsout) will display all logged Signal Names,
% but will not recurse into Bus Struct. Empty Cell means signal is not
% being propagated in model or has not been given a name.
%
% [data,time] = recurseIntoLogsout(out.logsout, SignalName) will extract
% timeseries Data and Time Values for signal "SignalName".
% Function will automatically recurse into Buses that are being logged.
%
% [data,time] = recurseIntoLogsout(BusStruct, SignalName,1) will recurse
% into Bus Struct and extract timeseries Data and Time Values for signal "SignalName"
%
% INFO: data = NaN or time = NaN means the specified Signal could not be found.

Cita come

Christian Luciano Maendle (2024). Recurse into logged Simulation Output Simulink (https://www.mathworks.com/matlabcentral/fileexchange/160671-recurse-into-logged-simulation-output-simulink), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2022b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0