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

1 visualizzazione (ultimi 30 giorni)
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.

Risposte (1)

Gagan Agarwal
Gagan Agarwal il 25 Ott 2023
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!

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by