필터 지우기
필터 지우기

Global variable management?

조회 수: 3 (최근 30일)
Evan Schein
Evan Schein 2022년 2월 1일
답변: Pravarthana P 2022년 2월 17일
Hi all, I just recently installed Simulink and trykng to model motor controll.
Strangely , the tutorial I am watching, in the case of a Reluctance Machine, swapped out the "default initial values" and asked the user to hardcode "Ld and Lq." Then a red box appears around the machine.
Same thing happened with my battery when I plug in "Vnom" and samething with Torqe Gain/ Estimation blocks Any suggestions?
  댓글 수: 2
Steven Lord
Steven Lord 2022년 2월 1일
Could you please post a link to the tutorial you're following so we can see the context in which the presenter is using this model?
Evan Schein
Evan Schein 2022년 2월 1일
at 15:18 he changes a scalar to a named variable
at 17:49 he changes the battery parameter to Vnom from a scalar
when I tried to do this kind of variable parameterization, i get the red boxes.

댓글을 달려면 로그인하십시오.

답변 (1개)

Pravarthana P
Pravarthana P 2022년 2월 17일
Hi Evan, from your block diagram and query it can be understood that you are getting this warning signal around the block diagram. The reason for this may be because of some data dependency as you are defining the variables in the block parameters.
You can try defining and loading these variables in MATLAB workspace as a global variable before using them in SIMULINK block.
Hope this prevents the warning red line around the blocks.
Using the following link you may understand how to access base workspace variable from any Simulink block.

카테고리

Help CenterFile Exchange에서 Electromechanical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by