Main Content

updateAutoSaveParameterSetOnStop

Update the auto save parameter set on stop for an application

Since R2022b

    Description

    updateAutoSaveParameterSetOnStop(app_object,boolean) enables or disables auto save of the real-time application current parameter set to the Speedgoat® target computer when the application stops. By default, this option is enabled when the Application object is created. For more information, see the loadParamSet function.

    example

    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.

    % build an application
    tg = slrealtime;
    mdlSTF = getSTFName(tg);
    mdlName = 'slrt_ex_osc_outport';
    openExample(mdlName);
    set_param(mdlName,"SystemTargetFile",mdlSTF);
    slbuild(mdlName);
    
    % enable the autoSaveParameterSetOnStop flag
    myAppObj = slrealtime.Application(mdlName);
    updateAutoSaveParameterSetOnStop(myAppObj,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