How to create a custom SIMULINK library block from legacy_code tool programmatically?

1 回表示 (過去 30 日間)
Saulat Chughtai
Saulat Chughtai 2019 年 7 月 31 日
コメント済み: Saulat Chughtai 2019 年 8 月 9 日
I have a C-function and I want to create a block in an existing SIMULINK library. If I give library name in Legacy_code tool as modelname I get the following error
Simulation of model 'TestLib' is not allowed because it is a block diagram library
Is there any way to create/copy/add a block to a custom SIMULINK library programmatically?

回答 (1 件)

Urmila Rajpurohith
Urmila Rajpurohith 2019 年 8 月 8 日
You can refer to below documentation for how to design and create custom block
  1 件のコメント
Saulat Chughtai
Saulat Chughtai 2019 年 8 月 9 日
Sorry Urmila Rajpurohith, The point is not how to create a custome block. the point is that
  1. Legacy_code tool creates a block in a new model
  2. Can this block be moved to an existing SIMULINK library programmetically?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSubsystems についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by