HDL coder error empty simulink object

12 views (last 30 days)
Patrick Ormond
Patrick Ormond on 4 Aug 2021
Answered: Kiran Kintali on 5 Aug 2021
I am trying to debug an issue with hdl code conversion from simulink where I have run the hdl code advisor with no issue but when I get to the code generation step I get the error :
Invalid Simulink object name: .
Caused by:
  • Empty object name found.
I am new to simulink/hdl coder so how do I get a list of objects within simulink to figure out where the empty one is? I have a simple system with a matlab function hooked up to delay lines on the inputs and a valid signal in parallel. I have given everything in the model editor a name so I'm not sure where the program is looking when it performs this check.

Answers (1)

Kiran Kintali
Kiran Kintali on 5 Aug 2021
>> mlhdlc_demo_setup('sysobj')
you can see some of the examples in the product.
>> ls
mlhdlc_sysobj_ex.m
mlhdlc_sysobj_ex_tb.m
mlhdlc_sysobj_sobel.m
mlhdlc_sysobj_sobel_tb.m
mlhdlc_sysobj_nonrestsqrt.m
mlhdlc_sysobj_nonrestsqrt_tb.m
please share your example to debug your error. We need a design, testbench and MATLAB to HDL project or Simulink model using the System object.

Categories

Find more on Code Generation in Help Center and File Exchange

Tags

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!