主要内容

isAutoSaveOnStopEnabled

Get status of parameter set autosave when application stops

Since R2026a

Description

tf = isAutoSaveOnStopEnabled(app_object) returns the current state of the setting to automatically save the current parameter set to the Speedgoat® target computer when the application represented by app_object stops. This function returns true when you use updateAutoSaveParameterSetOnStop to enable auto saving of the parameter set.

example

Examples

collapse all

Get the status of parameter set autosave when a Simulink Real-Time application stops.

Create a Simulink Real-Time application object for the slrt_ex_osc_outport model.

% build an application
tg = slrealtime;
modelSTF = getSTFName(tg);
modelName = "slrt_ex_osc_outport";
openExample(modelName);
set_param(modelName,"SystemTargetFile",modelSTF);
slbuild(modelName);
myAppObj = slrealtime.Application(modelName);

Get the parameter set autosave status.

tf = isAutoSaveOnStopEnabled(myAppObj);
tf =
    true

Input Arguments

collapse all

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

Output Arguments

collapse all

Parameter set autosave status, returned as true or false.

Version History

Introduced in R2026a