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

조회 수: 19 (최근 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 CenterFile Exchange에서 Text Data Preparation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by