Motor Control Blockset Examples "Dot indexing is not supported for variables of this type"

4 ビュー (過去 30 日間)
Nathan
Nathan 2023 年 7 月 13 日
回答済み: Animesh 2023 年 8 月 22 日
It's my first time using Simulink. The first thing I did when I opened the program is I opened an example under "Motor Control Blockset" on the Simulink start page. In the window that opened (a Simulink window), I clicked run, and received the message "Dot indexing is not supported for variables of this type." I tried several other examples under "Motor Control Blockset" and they all gave me the same error. There's no stack trace, so I really don't even know where to start debugging this. Is this a bug or am I doing something wrong?
  2 件のコメント
Pranavkumar Mallela
Pranavkumar Mallela 2023 年 7 月 14 日
Hi Nathan, which MATLAB release are you getting this error in?

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

回答 (1 件)

Animesh
Animesh 2023 年 8 月 22 日
Hello Nathan,
I understand that you are encountering an error while trying to execute the “Field-Oriented Control of PMSM Using Hall Sensorexample in Simulink.
Before simulating this example, please make sure that you have the following required MathWorks products installed by using the “ver” command in the command window:
  1. Motor Control Blockset
  2. Fixed-Point Designer
Also, please follow these steps to simulate the model correctly:
  1. Open the model included in this example by simply using this command:
open_system('mcb_pmsm_foc_hall_f28069m.slx');
  1. To simulate the model, click ‘Run’ on the ‘Simulation’ tab.
  2. To view and analyse the simulation results, click ‘Data Inspector’ on the Simulation tab.
For more information on this example, consider going through the documentation page of this example:
I hope this helps!

カテゴリ

Help Center および File ExchangeMotor Control Blockset についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by