Main Content

exportParamSet

Write ParameterSet object data to parameter set file

Since R2021a

    Description

    exportParamSet(target_object,parameter_set,Name-Value Pair Arguments) writes the parameter information from the ParameterSet object to the corresponding parameter file of the real-time application specified by the appName argument. If the appName argument is omitted, the function uses the name of the currently loaded real-time application. To write to a parameter file for a referenced model instance within the real-time application, use the refModelPath input argument to specify the referenced model path

    example

    Examples

    collapse all

    After tuning the parameters, export the modified parameter set to the target computer and load the parameters into the real-time application.

    exportParamSet(tg,myParamSet);
    loadParamSet(tg,myParamSet.filename);

    Input Arguments

    collapse all

    Provides access to methods that manipulate the target computer properties.

    Example: tg

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

    Example: myParamSet

    Name-Value Arguments

    collapse all

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

    Example: start(tg,'LogLevel','info')

    Provides name of real-time application MLDATX file that you built from the model.

    Example: 'appName','slrt_ex_osc_outport'

    Selects the referenced model path within the real-time application. The first example shows a model path to a top-level model, slrt_ex_osc_outport. The second example shows a model path to a referenced model instance within a model.

    Example: 'refModelPath',{'slrt_ex_osc_outport'}

    Example: 'refModelPath',{'slrt_ex_mds_and_tasks/Model1'}

    Version History

    Introduced in R2021a

    expand all