Simulink block for input: constant block not supported in HDL Coder
Mostrar comentarios más antiguos
Hello, I am using Matlab 2012a, I built a simple Simulink model, made of a source block, a tigonometric block(sin) and a sink block:
(_in_)---->|_trigonometric_|--->(_out_)
When i try to generate an HDL code through HDL workflow advisor out of it, I got this error
Abnormal exit:Invalid simulink object name:/constant
But the constant block is supported by hdllib.The source block was taken from --> DSP System Toolbox--> Sinks
Will you please suggest a way to remove this error.
1 comentario
Ethan
el 8 de Nov. de 2016
Were you ever able to figure this out? I am in a similar situation right now with Demux1 and Clock. Ironically, it is okay with Demux, but not Demux1, or any other renaming of it.
Respuestas (2)
Tim McBrayer
el 28 de Feb. de 2014
0 votos
Does your constant block happen to be named "/constant"? From the error message, the leading forward slash seems to be the abnormal portion.
Paul Rogers
el 3 de Mayo de 2017
0 votos
Hello! I just had this issue in my design as well. It turns out my issue was solved by ensuring all constants were not floating point data types (mine were set to doubles). I changed them to fixed point 16.12 which fixed the issue. I hope this helps you and others!
Categorías
Más información sobre Model Compatibility Checks en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!