tuning paramters in referenced model whithin a Simulink Real-Time model
Previous to R2020b, we can tune the parameter inside the model reference by the command such as:
tPar_a = getparamid(tg, ‘ModelReference1/subsys1/a’,’Value’);
setparam(tg,tPar_a,1);
After I upgrated to R2024a, the above commands are not availble anymore. I can get and set parameters of the top model, but I can not change parameter values insie the model reference and all the parameters in the model reference are not showing in SLRT_explorer neither. Is there anyway to get the parameter values in the model reference and tune them during simulink realtime simulation?Previous to R2020b, we can tune the parameter inside the model reference by the command such as:
tPar_a = getparamid(tg, ‘ModelReference1/subsys1/a’,’Value’);
setparam(tg,tPar_a,1);
After I upgrated to R2024a, the above commands are not availble anymore. I can get and set parameters of the top model, but I can not change parameter values insie the model reference and all the parameters in the model reference are not showing in SLRT_explorer neither. Is there anyway to get the parameter values in the model reference and tune them during simulink realtime simulation? Previous to R2020b, we can tune the parameter inside the model reference by the command such as:
tPar_a = getparamid(tg, ‘ModelReference1/subsys1/a’,’Value’);
setparam(tg,tPar_a,1);
After I upgrated to R2024a, the above commands are not availble anymore. I can get and set parameters of the top model, but I can not change parameter values insie the model reference and all the parameters in the model reference are not showing in SLRT_explorer neither. Is there anyway to get the parameter values in the model reference and tune them during simulink realtime simulation? tuning modelreference parameter MATLAB Answers — New Questions