user defined function blocks in simulink

조회 수: 7 (최근 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 CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by