Main Content

loadParamSet

Restore parameter values saved in specified file

Since R2021a

Description

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

You also can load a parameter set into 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.

example

loadParamSet(target_object,parameter_set.filename,page) loads the parameter values into the given memory page of the loaded real-time application from a parameter set file that is identified by the parameter set filename property.

example

Examples

collapse all

Load parameters from the parameter set file into the loaded real-time application.

% load real-time application 
mdlName = 'slrt_ex_osc_outport';
tg = slrealtime('TargetPC1');
load(tg,mdlName);

% load a previously saved 
% parameter set file
paramSetName = 'outportTypes';
loadParamSet(tg,paramSetName);

Load parameters from the parameter set file into the loaded real-time application.

% load real-time application 
mdlName = 'slrt_ex_osc_outport';
tg = slrealtime('TargetPC1');
load(tg,mdlName);

% get parameter values from previously created 
% ParameterSet object and load
exportParamSet(tg,myParamSet);
loadParamSet(tg,myParamSet.filename);

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

The ParameterSet object that was created from the real-time application in the importParamSet command.

Example: myParamSet

Version History

Introduced in R2021a