Main Content

updateAutoSaveParameterSetOnStop

Update the auto save parameter set on stop for an application

Since R2022b

    Description

    example

    updateAutoSaveParameterSetOnStop(app_object,boolean) enables or disables auto save of the real-time application current parameter set to the 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.

    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
    mdlName = 'slrt_ex_osc_outport';
    slbuild(mdlName);
    
    
    % enable the autoSaveParameterSetOnStop flag
    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