Simulink block for input: constant block not supported in HDL Coder
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Ethan
am 8 Nov. 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.
Antworten (2)
Tim McBrayer
am 28 Feb. 2014
Does your constant block happen to be named "/constant"? From the error message, the leading forward slash seems to be the abnormal portion.
2 Kommentare
Paul Rogers
am 3 Mai 2017
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!
0 Kommentare
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!