ParameterSet
Description
A ParameterSet
object represents the contents of a parameter
set file imported from a real-time application that is loaded on a Speedgoat® target computer and
provides access to methods and properties related to the parameter set file.
The object provides access to methods and properties that:
Save parameters from a real-time application to a parameter set file.
Import parameter set file data into a
ParameterSet
object.Tune parameters in the real-time application by using the
ParameterSet
object.Apply the tuned parameters from the real-time application to the model.
Function names are case-sensitive. Type the entire name. Property names are not case-sensitive. You do not need to type the entire name if the characters you type are unique for the property.
Creation
Create a ParameterSet
object by using the
importParamSet
command. After you create and connect to the Target
object
and load the real-time application on the target computer, you import the parameter set
information from the loaded application into a ParameterSet
object. This
example creates and connects to Target
object
tg
, loads a real-time application, creates a parameter set file, and
imports parameter set information into a ParameterSet
object
myParamSet
on the development computer.
tg = slrealtime; mdlSTF = getSTFName(tg); mdlName = 'slrt_ex_osc_outport'; openExample(mdlName); set_param(mdlName,"SystemTargetFile",mdlSTF); slbuild(mdlName); connect(tg); load(tg,mdlName); paramSetName = 'myParamSet'; saveParamSet(tg,paramSetName); myParamSet = importParamSet(tg,paramSetName);
Properties
Object Functions
delete | Deletes a ParameterSet object |
compare | Compare the parameters in two parameter set objects |
delete | Deletes a ParameterSet object |
explorer | Open Parameter Explorer and view Parameter Set |
exportToModel | Export values from ParameterSet object to model |
resolve | Compare parameter set differences and output resolved parameter set object |
set | Set a parameter value in a ParameterSet object |
syncWithApp | Sync model parameters to real-time application parameters |
Examples
Version History
Introduced in R2021a
See Also
exportParamSet
| deleteParamSet
| getparam
| getParameters
| importParamSet
| listParamSet
| loadParamSet
| saveParamSet
| setparam
| addParamSet
| updateStartupParameterSet
| Application
| Target