function setSharedAttributesWithSldvruntest(harnessH, fromMdlFlag, modelRefHarness, ts) 
    if(~fromMdlFlag)                                                            
        Sldv.utils.settingsValueHandler(get_sldvharness_params(harnessH, ts, false), harnessH, false);
        if ~modelRefHarness
            Sldv.utils.settingsValueHandler(get_sfeml_enable_debug_params, harnessH, false);
        end
    else
        Sldv.utils.settingsValueHandler(get_sldvharness_params(harnessH, ts, true), harnessH, false);
    end        
end

function p = get_sfeml_enable_debug_params
    p = {};
end

function p = get_sldvharness_params(modelH, funTs, fromMdl)  
    p = {};
    if ~fromMdl
        p{end+1} = {'simulationmode', 'normal'};
    end
    psample = get_sampletime_params(modelH, funTs, fromMdl); 
    p = [p psample];
end
        
function p = get_sampletime_params(modelH, funTs, fromMdl)
    if nargin < 3
        fromMdl = false;
    end
    p = {};
    if sldvshareprivate('mdl_issampletimeindep', modelH)
        p{end+1} = {'SampleTimeConstraint', 'Unconstrained'};
        p{end+1} = {'FixedStep', 'auto'};
    end    
    if ~fromMdl
        if ~strcmp(get_param(modelH, 'SampleTimeConstraint'), 'Specified')
            p{end+1} = {'FixedStep', sldvshareprivate('util_double2str', funTs)};
        end
    end
    p{end+1} = {'InheritedTsInSrcMsg', 'none'};
end

