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

22 views (last 30 days)
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

Accepted Answer

grapevine
grapevine on 3 May 2012
I found it
get_param(gcb, 'OutDataTypeStr')
set_param(gcb, 'OutDataTypeStr','int32')
Sorry guy 4 bothering

More Answers (0)

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!