参数集使用示例:MATLAB
使用 ParameterSet 对象表示从目标计算机上加载的实时应用程序所导入的参数集文件内容,并提供访问与该参数集文件相关的方法和属性的途径。
对象
Application | Represent application files on development computer |
ParameterSet | 实时应用参数集 (自 R2021a 起) |
Target | 实时呈现应用程序和目标计算机的状态 |
函数
slrealtime | 目标计算机管理接口 |
compare | 比较两个参数集对象中的参数 (自 R2023b 起) |
clearDefaultParamSet | 清除目标计算机上设置的默认参数集 (自 R2024a 起) |
delete | 删除一个 ParameterSet 对象 (自 R2021a 起) |
explorer | 打开参数浏览器并查看参数集 (自 R2021a 起) |
exportParamSet | 将 ParameterSet 对象数据写入参数集文件 (自 R2021a 起) |
exportToModel | 将 ParameterSet 对象的值导出至模型 (自 R2021a 起) |
getCurrentParamSet | Get current parameter set on target computer (自 R2024a 起) |
getDefaultParamSet | 获取目标计算机上的默认参数集 (自 R2024a 起) |
importParamSet | 创建 ParameterSet 对象 (自 R2021a 起) |
listParamSet | 列出应用程序可用的参数集文件 (自 R2021a 起) |
loadParamSet | 还原指定文件中保存的参数值 (自 R2021a 起) |
resolve | 比较参数集差异并输出解析后的参数集对象 (自 R2023b 起) |
saveParamSet | 保存实时应用程序参数值 (自 R2021a 起) |
set | 在 ParameterSet 对象中设置参数值 (自 R2021a 起) |
setDefaultParamSet | Set default parameter set on target computer (自 R2024a 起) |
syncWithApp | 将模型参数同步到实时应用程序参数 (自 R2021a 起) |
addParamSet | 向实时应用程序添加参数集 (自 R2021a 起) |
updateStartupParameterSet | Update the startup parameter set for an application (自 R2021a 起) |
主题
- Save and Reload Parameters by Using Simulink Real-Time Explorer
Save real-time application parameter values to a file on the target computer.
- Save and Reload Parameters by Using the MATLAB Language
Save real-time application parameter values to a file on the target computer.
- Save Current Set of Real-Time Application Parameters to Target Computer
To save a set of parameters from a real-time application to a parameter set file, use the saveParamSet function.
- Load Saved Parameters to Real-Time Application from Target Computer
To load a parameter set file of saved parameters to a real-time application, use the
loadParamSetfunction. - View or Edit Parameter Values in Parameter Set on Development Computer
To view or edit parameters in a parameter set, use the
ParameterSetobject workflow by importing a previously saved parameter set file to the development computer. - Select Startup Parameter Set for Application on Development Computer
After you have added one or more parameter sets to an
Applicationobject by using theaddParamSetfunction, you can select one of these parameter sets as the startup parameter set for the real-time application by using theupdateStartupParameterSetfunction. - Select Default Parameter Set for Application on Target Computer
After you have created one or more parameter set file on the target computer, you can select one of these parameter sets as the default parameter set for the real-time application by using the
setDefaultParamSet.