function configSingleModel(this, cs)
% configSingleModel: Basic setup for models to run in XIL

%   Copyright 2009-2019 The MathWorks, Inc.

    componentType = this.ComponentType;
    
    % XIL requirement: System Target File needs to be ERT or GRT derived
    if ~rtw.pil.Config.isERTTargetOrGRTTarget(cs)
        cs.switchTarget('ert.tlc', []);
        this.CurrentModelChanged = true;
    end
        
    % ERT Limitation
    % The ERT target only supports start time of 0
    this.applyParam(cs, 'StartTime', '0.0');
    
    % CodeInfo Limitation
    % GRTInterface should be disabled to generate CodeInfo
    this.applyParam(cs, 'GRTInterface', 'off');
    
    % ERT Limitation
    % ERT derived STFs only support Fixed-step solver type
    this.applyParam(cs, 'SolverType', 'Fixed-step');
    
    % MatFileLogging should not be required when XIL is used
    this.applyParam(cs, 'MatFileLogging', 'off');
       
    if strcmpi(componentType, 'topmodel' )
        % External mode is not supported for Top-Model XIL
        this.applyParam(cs, 'ExtMode', 'off');                
    end