MATLAB Answers

How to get datatype of tunable variables while compiling model?

2 ビュー (過去 30 日間)
Dominik
Dominik 2015 年 7 月 3 日
コメント済み: Dominik 2015 年 7 月 6 日
Is there a possibility to directly access the datatype of tunable variables while compiling the model? I already did this for testpoints via get_param(PortHandle,'CompiledPortDatatype') which works fine. But how to get this for tunable variables? Often the Simulink engine decides via internal rules which datatype it should take.
Thanks in advance. Dom

  0 件のコメント

サインイン to comment.

回答 (1 件)

Darsana Thulasi
Darsana Thulasi 2015 年 7 月 6 日
I am assuming that you have some blocks in your model that contain tunable parameters for which you want to get the compiled port datatypes.
The compiled port datatypes are for the values that appear through input and output ports of blocks. You should be able to use the same command to get the Compiled port datatypes.

  1 件のコメント

Dominik
Dominik 2015 年 7 月 6 日
Thanks for the answer. Good point - but what to do if the tunable parameter is used in a masked subsystem. Is there a general way to directly access the datatype?

サインイン to comment.

サインイン してこの質問に回答します。


Translated by