フィルターのクリア

Error when running the postion motor system

1 回表示 (過去 30 日間)
Ali Agha
Ali Agha 2022 年 5 月 13 日
回答済み: Ayush 2024 年 1 月 31 日
Getting error like the attahced below, and I have no idea how to connect the input1 to the block system to make it run smoothly. I need support please.

回答 (1 件)

Ayush
Ayush 2024 年 1 月 31 日
Hello Ali,
I reproduced the same error on my end with MATLAB R2023b and figured it’s about a variable name not being resolved in the model. The variable “YY” is not loaded into the workspace, nor is it instantiated in the MATLAB script that you have provided i.e. “LDA_1801k8_IMP.m”. Hence, it would not be used as an external input to the model. A workaround for this is to either instantiate a variable named “YY” or change the variable name in “Configurations Parameters”.
Additionally, the expression “YY.getElement(1)” is not a valid MATLAB expression as the function “getElement” is used to access data/interface using the element name. Please refer to the below documentation to know more about the different use cases of “getElement” function and how to use it:
Hope it helps!

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by