필터 지우기
필터 지우기

rsimgetrtp outputs a lot of unknown, unnecessary parameters. How do I find out where these parameters are coming from?

조회 수: 1 (최근 30일)
I have a Simulink model and I'm trying to get its RTP structure. I'm using rsimgetrtp() and passing in the model's name. However, the output from this function contains a bunch of parameters that I haven't seen before, and this is causing my code to fail in another part of my script. Here is the output of rtp.parameters.dataTypeName:
'struct_TvWe8mKmUCrgAAIpXC4qhH'
'struct_B7Id0Iy5pPd3Je9y2Vt8nB'
'struct_Hva7NyYnwIG4Xv2rVMqJkE'
'double' % <-----
'single'
'uint32'
'double'
'double'
'boolean'
'double'
'boolean'
The double that I've highlighted is the only parameter that I recognize, and the only parameter that should be returned. What are all of the struct_* datatypes? Is there any way for me to know where all of these parameters are coming from? Any kind of help would be greatly appreciated.

답변 (1개)

Gagan Agarwal
Gagan Agarwal 2023년 10월 25일
Hi Kadhir,
I understand that you are trying to determine the source of certain parameters of your model which are present in the output of the rtp.parameters.dataTypeName command.
To identify the origin of these parameters, you can examine your Simulink model and look for subsystems or blocks that have parameters with similar datatypes like those in the output.
Additionally, you can also use 'rtp.parameters.values' command to know the values contained within these datatypes, which will provide a clearer understanding about the source of parameters.
For additional information please refer to the following documentation:
I hope this helps!

카테고리

Help CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by