How to set/get the data type of a constant block on Simulink

11 ビュー (過去 30 日間)
grapevine
grapevine 2012 年 5 月 3 日
Hello everyone,
I'm looking for an instruction to get the type of the outgoing data in a constant block and to specify it as well. I thought something like get_param(gcb,'DataType') but the DataType doesn't exist. Do you have any suggestion to do that?
thanks 4 reading

採用された回答

grapevine
grapevine 2012 年 5 月 3 日
I found it
get_param(gcb, 'OutDataTypeStr')
set_param(gcb, 'OutDataTypeStr','int32')
Sorry guy 4 bothering

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Data Preparation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by