www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@mdevproject/makechildren.m
function presp=makechildren(MP,OpenDialog) %MAKECHILDREN Create new child testplans % % NEWP = MAKECHILDREN(PROJ) creates a new default testplan in the project. % NEWP = MAKECHILDREN(PROJ, OpenDialog) where OpenDialog is a boolean % flag, allows the optional display of a dialog that allows the user to % choose a new testplan type. % Copyright 2000-2015 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin<2 OpenDialog=0; end if OpenDialog Model = tpsetup.ModelData(address(MP),xregpointer,false); ok = tpsetup.DoEDrivenDialog.create(Model); if ok presp= address(Model.FinalTestplan); else presp= xregpointer; end else % default testplan m= model(MP); if isempty(m); m= xreghybridrbf; end T= mdevtestplan('Testplan',m,-1); presp=address(T); if presp~=0 MP= AddChild(MP,presp); end end