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.
0 个评论
回答(1 个)
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!
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!