Main Content

saveParamSet

Save real-time application parameter values

Since R2021a

Description

example

saveParamSet(target_object, filename,page) saves the parameter values from the given memory page of the loaded real-time application into a parameter set file on the target computer.

You also can save a parameter set from a real-time application from the RTOS command line. For more information, see Execute Target Computer RTOS Commands at Target Computer Command Line and Target Computer Command-Line Interface.

Examples

collapse all

Save parameters from the loaded application slrt_ex_osc_outport to a file named 'myParamSet'.

mdlName = 'slrt_ex_osc_outport';
slbuild(mdlName);
tg = slrealtime('TargetPC1');
connect(tg);
load(tg,mdlName);
paramSetName = 'myParamSet';
saveParamSet(tg,paramSetName,1);
myParamSet = importParamSet(tg,paramSetName);

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Enter the name of the parameter set file from the target computer file system.

Example: 'outportTypes'

Data Types: char | string

(Optional.) Select memory page of the loaded real-time application for parameters.

Example: 0

Version History

Introduced in R2021a