Main Content

addParamSet

Add a parameter set to a real-time application

Since R2021a

    Description

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

    example

    Examples

    collapse all

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

    tg = slrealtime;
    mdlSTF = getSTFName(tg);
    mdlName = 'slrt_ex_osc_outport';
    openExample(mdlName);
    set_param(mdlName,"SystemTargetFile",mdlSTF);
    slbuild(mdlName);
    load(tg,mdlName);
    myAppObj = slrealtime.Application(mdlName);
    paramSetName = 'outportTypes';
    saveParamSet(tg,paramSetName);
    myParamSet = importParamSet(tg,paramSetName);
    addParamSet(myAppObj,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