Are there Simulink guidelines for choosing ufix1 vs. boolean?
Mostrar comentarios más antiguos
In the past I've tried making all my 1 bit signals in my Simulink models ufix1 or all of them boolean and neither option seemed to work perfectly. I haven't yet found guidelines from MathWorks for choosing the best type in a particular case - are there any? Or perhaps you really can make them all one type or the other, but I did it wrong.
From my perspective, I don't see the need for a ufix1 data type - does anybody know the reason?
4 comentarios
Robert Anderson
el 8 de Dic. de 2016
Hi Dara, thanks for taking the time to contribute to MATLAB Central. Generally speaking, if the signal is used for only control logic, then Boolean may be preferred. If the signal is used for driving arithmetic blocks, then ufix1 is preferred. Can you elaborate on what kind of issues you ran into with either MATLAB function blocks, or with Simulink blocks? Best Regards, Robert Anderson
Dara Parsavand
el 5 de En. de 2017
Kiran Kintali
el 17 de Mzo. de 2017
I have entered an enhancement request to remove this restriction on enable port. We hope to remove this limitation soon.
Dara Parsavand
el 16 de Feb. de 2018
Editada: Dara Parsavand
el 16 de Feb. de 2018
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre HDL Coder en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!