Clear Filters
Clear Filters

When I load my model parameters to ETAS Inca, how can I make the changes to these parameters permanent?

7 views (last 30 days)
I am working with Simulink Realtime in MATLAB R2021b on a Speedgoat baseline and I am loading the reference page of all adjustable parameters from the Simulink Model into ETAS Inca. When I make changes to these parameters, they are lost on reboot/restart of the Speedgoat and the parameters revert to the default values. How can I make changes to my parameters permanent?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 Sep 2022
You can use the command "copyPage" to flash the parameters in the "Working Page" of the Inca Experiment to its "Reference Page", and thus, overwrite the reference parameters on the "Speedgoat". This way, the next time the "Speedgoat" boots up, it will use these new tuned parameters instead of the initial ones that were defined in the source Simulink model.
You can save the tuned parameters by using "saveParamSet" to save them into a parameter set object in the base workspace. And then, "slrealtime.Application" object has a method called "addParamSet" which can add this saved parameter set object from base workspace into a real-time application "mldatx" on the development computer. So next time you load this "mldatx" to the target, the parameter set stored with tuned parameter values can be automatically loaded into memory. Alternatively, you can manually load a parameter set to the target by using "loadParamSet".
For more details, refer to the following documentation:slrealtime.Application - https://www.mathworks.com/help/releases/R2021b/slrealtime/api/slrealtime.application.html

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!