How to get datatype of tunable variables while compiling model?

조회 수: 1 (최근 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

답변 (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?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by