Main Content

updateAutoSaveParameterSetOnStop

Update the auto save parameter set on stop for an application

    Description

    example

    updateAutoSaveParameterSetOnStop(app_object,boolean) enables autos save of the real-time application current parameter set to the target computer when the application stops.

    Examples

    collapse all

    To update the auto save parameter set on stop for a real-time application from a ParameterSet object, use the updateAutoSaveParameterSetOnStop function.

    % create and import a parameter set
    mdlName = 'slrt_ex_osc_outport';
    slbuild(mdlName);
    tg = slrealtime('TargetPC1');
    load(tg,mdlName);
    paramSetName = 'outportTypes';
    saveParamSet(tg,paramSetName);
    myParamSet = importParamSet(tg,paramSetName);
    
    % modify parameter set value in parameter set
    set(myParamSet,'slrt_ex_osc_outport/Signal Generator','Amplitude',10);
    
    % add parameter set into real-time application 
    % and set as startup parameter set
    myApp = slrealtime.Application(mdlName);
    updateAutoSaveParameterSetOnStop(myApp,true);
    

    Input Arguments

    collapse all

    Provides access to methods that manipulate the real-time application files.

    Enable auto save with value true. Disable auto save with value false.

    Example: true

    Data Types: logical

    Version History

    Introduced in R2022b