| Contents | Index |
runIDcopy = Simulink.sdi.copyRun(runID)
[runIDcopy, runIndex]
= Simulink.sdi.copyRun(runID)
[runIDcopy, runIndex, signalIDs]
= Simulink.sdi.copyRun(runID)
runIDcopy = Simulink.sdi.copyRun(runID) copies the run associated with runID and returns a run ID, runIDcopy, associated with the new run. The new run contains all of the simulation output data and metadata from the original run.
[runIDcopy, runIndex] = Simulink.sdi.copyRun(runID) copies the run associated with runID and returns the run ID, runIDcopy, and the runIndex for the new run.
[runIDcopy, runIndex, signalIDs] = Simulink.sdi.copyRun(runID) copies the run associated with runID and returns the run ID, run index, and array of new signal IDs, signalIDs, for signals in the new run.
runID |
Run ID, a unique number identifying a run in the Simulation Data Inspector. |
Copy a Simulink.sdi.Run object representing a run currently in the Simulation Data Inspector.
% Configure model 'sldemo_f14' for logging and simulate
simOut = sim('sldemo_f14','SaveOutput','on',...
'SaveFormat','StructureWithTime',...
'ReturnWorkspaceOutputs', 'on');
% Create a Simulation Data Inspector run
runID = Simulink.sdi.createRun('First Run','base',{'simOut'});
[newRunID, runIndex, signalIDs] = Simulink.sdi.copyRun(runID);
% See the results in Simulation Data Inspector
Simulink.sdi.view;
Simulink.sdi.createRun | Simulink.sdi.view

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |