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

5 vues (au cours des 30 derniers jours)
grapevine
grapevine le 3 Mai 2012
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

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Text Data Preparation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by