how to set the default datatype of simulink block output to single

3 visualizaciones (últimos 30 días)
wenchao zhang
wenchao zhang el 14 de Dic. de 2024
Editada: Shuba Nandini el 17 de Dic. de 2024
how to set the default datatype of simulink block output to single, for example i just want the output datatype of signal builder set to signle, i do not want use data type convert to realize.
  2 comentarios
Walter Roberson
Walter Roberson el 14 de Dic. de 2024
"It could by possible by changing the parameter "Default for underspecified data type" (DefaultUnderspecifiedDataType) in the Optimization category inside the Configuration Parameters of your model to single.
I'm not sure if it affects MATLAB function blocks, though."
wenchao zhang
wenchao zhang el 16 de Dic. de 2024
yes, i have tried this, but it not works.

Iniciar sesión para comentar.

Respuestas (1)

Shuba Nandini
Shuba Nandini el 17 de Dic. de 2024
Editada: Shuba Nandini el 17 de Dic. de 2024
Hi,
I understand that you would like to set the default data type of the Signal Builder block to 'single.'
As of the Simulink R2018b release, the Signal Builder block only supports the 'double' data type. To work around this issue, you can place a Signal Conversion block at the output port of the Signal Builder block and configure its data type to 'single.'
Please refer to the following MATLAB documentation link to know more about Signal Conversion block:
Regards,
Shuba Nandini

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by