add_block from other toolboxs
2 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have a question on building models automatically. When I use add_block to create blocks in a model, is it possible to add blocks from libraries outside simulink? For example adding 'HDL Coder/Discrete/Delay' to a model. And where can I find a list or table including all blocks' paths for add_block?
Thanks in advance.
3 个评论
Steven Lord
2019-9-24
Use the Stateflow.State or Stateflow.Transition functions. From the main starting page in the Stateflow documentation included in your installation, select "Chart Programming" then "Programmatic Interface". The first page linked in the Examples and How To section will show you how to create and populate a Stateflow chart.
I'm not linking to the online documentation because I know it has functionality not present in the release R2016b that you're using. Use your locally installed documentation.
回答(1 个)
Kiran Kintali
2023-10-30
Run this command to see the supported block list.
>> hdllib('html')
### HDL supported block list hdlblklist.html
### HDL implementation list hdlsupported.html
>>
You can see the block path specified in the html page generated in your add_block command.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!