Could not load/create parameter sets for "Tunable block and global parameter" in real-time application speedgoat
Show older comments
Platform: MATLAB 2021a, Simulink, speedgoat (OS QNX)
When I used the simple MATLAB/Simulink example, it works fine: https://www.mathworks.com/help/slrealtime/ug/save-and-reload-application-parameters-with-the-matlab-interface.html?searchHighlight=slrt_ex_osc_outport&s_tid=srchtitle_slrt_ex_osc_outport_2
But when I use my own Simulink real-time applications (includes many library blocks, reference subsystems, reference models, variant subsystem), I could not even load/create the parameter sets. Are there any configuration that I am missing or there are limitations on "Tunable block and global parameter" that will not work on my application? Please help. Thank you.
Following are some example commands and error messages:
example 1:
>> slbuild(mdlName);
........
>> tg = slrealtime('TargetPC1');
>> tg.stop
>> load(tg,mdlName);
>> paramSetName = 'outportTypes';
>> saveParamSet(tg,paramSetName);
>> loadParamSet(tg,paramSetName);
Dot indexing is not supported for variables of this type.
example 2:
>> myParamList = listParamSet(tg,'mdlName')
myParamList =
5×1 cell array
{'autoSaveOnStop'}
{'autoSaveOnStop'}
{'autoSaveOnStop'}
{'myParamSet' }
{'autoSaveOnStop'}
>> tg.status
ans =
'loaded'
>> paramSetName = 'myParamSet';
saveParamSet(tg,paramSetName);
>> myParamSet = importParamSet(tg,paramSetName);
Error using slrealtime.Target/importParamSet
Dot indexing is not supported for variables of this type.
Accepted Answer
More Answers (0)
Categories
Find more on Target Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!