function runopts = slvnvruntestopts(type)
%SLVNVRUNTESTOPTS - Generate simulation or execution options for slvnvruntest  
%                  or slvnvruncgvtest
%
%   RUNOPTS = SLVNVRUNTESTOPTS generates a RUNOPTS structure for slvnvruntest.
%
%   RUNOPTS = SLVNVRUNTESTOPTS('cgv') generates a RUNOPTS structure for 
%   slvnvruncgvtest.
%
%   Output Arguments:
%     RUNOPTS : A structure whose fields specify the configuration of 
%     slvnvruntest or slvnvruncgvtest. RUNOPTS can have the following fields. 
%     If you do not specify a field, slvnvruntest or slvnvruncgvtest uses the 
%     default value.
%
%       testIdx            Test case index array to simulate or execute 
%                          from DATAFILE. If testIdx is [], all test cases
%                          will be simulated or executed.
%                          Default: []
%                                     
%       signalLoggingSaveFormat Available only for slvnvruntest.  
%                          Specify format for signal logging data
%                          for signals connecting to the outports of 
%                          the model and for intermediate signals that are
%                          already configured for logging.
%
%                          'Dataset' (default) Data will be stored in
%                                              Simulink.SimulationData.Dataset
%                                              objects.
%                          'ModelDataLogs'     Data will be stored in
%                                              Simulink.ModelDataLogs objects
%
%       coverageEnabled    Available only for slvnvruntest. 
%                          If true, Simulink Coverage collects model 
%                          coverage data during simulation. 
%                          Default: false
%
%       coverageSetting    Available only for slvnvruntest. 
%                          cvtest object for collecting model coverage. 
%                          If [], slvnvruntest uses the existing coverage 
%                          settings for model.
%                          Default: []
%
%       fastRestart        Available only for slvnvruntest.
%                          If true, perform iterative simulations without
%                          compiling a model or terminating the simulation
%                          each time.
%                          Default: true
%
%       useParallel        Available only for slvnvruntest.
%                          If true, simulate test cases in parallel.
%                          Default: false
%
%       allowCopyModel     Available only for slvnvruncgvtest. 
%                          Specifies to create and configure the MODEL if 
%                          you have not configured it correctly for 
%                          executing test cases with the CGV API.
%
%                          If true and you have not configured MODEL 
%                          correctly to execute test cases with the CGV API, 
%                          slvnvruncgvtest copies the MODEL, corrects the 
%                          configuration, and executes the test cases on 
%                          the copied model.
%
%                          If false (the default), an error occurs if the 
%                          tests cannot execute with the CGV API.
%
%                          Note: If you have not configured the 
%                          top-level MODEL or any referenced models 
%                          correctly, slvnvruncgvtest does not copy the 
%                          model, even if allowCopyModel is true. An error occurs.                   
%
%       cgvCompType        Available only for slvnvruncgvtest. 
%                          Defines the software-in-the-loop (SIL) or 
%                          processor-in-the-loop (PIL) approach for CGV:
%                          'topmodel'(default) or 'modelblock'.
%
%       cgvConn            Available only for slvnvruncgvtest. 
%                          Specifies mode of execution for CGV:  
%                          'sim' (default) or 'sil' or 'pil'.
%
%   See also SLVNVRUNTEST, SLVNVRUNCGVTEST

%   Copyright 2010-2019 The MathWorks, Inc.

    if nargin<1
        type = '';
    end
    runopts = Sldv.RunTestCase.getRuntestOpts(type);
end