| Contents | Index |
Create copy of cgv.CGV object
cgvObj2 = cgvObj1.copySetup()
cgvObj2 = cgvObj1.copySetup() creates a copy of a cgv.CGV object, cgvObj1. The copied object, cgvObj2, has the same configuration as cgvObj1, but does not copy any results of the execution.
You can use this method to make a copy of a cgv.CGV object and then modify the object to run in a different mode by calling cgv.CGV.setMode.
If you have a cgv.CGV object, which reported errors or failed at execution, you can use this method to copy the object and rerun it. The copied object has the same configuration as the original object, therefore you might want to modify the location of the output files by calling cgv.CGV.setOutputDir. Otherwise, during execution, the copied cgv.CGV object overwrites the output files.
Make a copy of a cgv.CGV object, set it to run in a different mode, then run and compare the objects in a cgv.Batch object.
cgvModel = 'rtwdemo_cgv';
cgvObj1 = cgv.CGV(cgvModel, 'connectivity', 'sim');
cgvObj1.run();
cgvObj2 = cgvObj1.copySetup()
cgvObj2.setMode('sil');
cgvObj2.run();
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 |