user defined function blocks in simulink

3 ビュー (過去 30 日間)
Sujeet Kumar Padhi
Sujeet Kumar Padhi 2012 年 4 月 19 日
How to access the workspace variables in user defined function written inside the user defined function block in simulink ????

回答 (1 件)

Ilham Hardy
Ilham Hardy 2012 年 4 月 19 日
Right click on the UDF block >> "Edit mask" >> Go to "Parameters" or "Initialization" tab.
HTH,
ilham
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2012 年 4 月 19 日
Essentially, you need to create a parameter for the block that can access the base workspace via the mask as Ilham suggested.

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

カテゴリ

Help Center および File ExchangeInteractive Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by