Main Content

addParamSet

Add a parameter set to a real-time application

Since R2021a

    Description

    example

    addParamSet(app_object,parameter_set) adds a ParameterSet object to a real-time application MLDATX on the development computer. When the real-time application is loaded or installed on the target computer, the parameter sets added to the application appear on the target computer for the application.

    Examples

    collapse all

    To add a ParameterSet object to a real-time application, use the addParamSet function.

    mdlName = 'slrt_ex_osc_outport';
    slbuild(mdlName);
    tg = slrealtime('TargetPC1');
    load(tg,mdlName);
    paramSetName = 'outportTypes';
    saveParamSet(tg,paramSetName);
    myParamSet = importParamSet(tg,paramSetName);
    addParamSet(app_object,myParamSet);

    Input Arguments

    collapse all

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

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

    Example: myParamSet

    Version History

    Introduced in R2021a