From" [parm_struct] =rsimgetrtp('model')",how can I see the parameters of a transfer fun block as characters ,not as values?
조회 수: 3 (최근 30일)
이전 댓글 표시
Dear all,
I have a simple Simulik model seen below:

a,b,c are defined as follows:Simulink.parameter,Double,ExportedGlobal ,Tunable and have intitial values of 1 , 2 , 3 respectively.
I highlight the tf1 block and write in the command window:"set_param(gcb,'Realization','general')"
Then,I write "[parm_struct]=rsimgetrtp('model')" hoping to get a structure containing the model parameters :a,b,c.But I can see only the values 1,2,3.
If the model has 20 transfer functions,I will get a long vector of values,and I will spend some time to decide which value belongs to which parameter of which transfer fun.
My question is how to find a way to access names instead of local addressable values in the param_struct output.
Thanks for the reply in advance,
M.E
답변 (1개)
jichen guo
2019년 12월 14일
Hi,
I am new beginner for simulink. When I run something like "parm_struct =rsimgetrtp('my_model')", I always got the following error. Do you have any idea on how to solve this problem?
'rsimgetrtp' requires one of the following:
Embedded Coder
Simulink Coder
Thanks in advance!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 General Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!