Undefined function or variable 'Ybus' error ?
显示 更早的评论
I am trying to run the load flow for 50buses. I have inserted the all parameters in the model but when I run the load flow I have an error showing as " Undefined function or variable 'Ybus' error". Does anyone have any clues about how to overcome this error ?
3 个评论
Rik
2020-6-27
Comment posted as answer by Shuaiang Rong:
Hi, I am having the same issue. The load flow refers to the powergui --> load flow tool, there is also this error of YBUS but I couldn't find where the Y bus located. I tried to add a variable named YBUS in the workspace, which makes no difference. Can anyone let me know how to solve this?
Thank you so much.
Comment posted as flag by Shuaiang Rong:
Hi, I have the same issue of this Ybus. I tried to build a variable but it does not work. Can you let me know the reason of this bug?
Nada ZOUZOU
2021-12-20
I am having the same error , did you manage to resolve it ? thank you
Rik
2021-12-20
@Nada ZOUZOU You posted on a thread that is 3 years old. There is an answer from 3 years ago as well. I do not know if it will solve your issue, but you should read the answer and try it. If there is anything unclear, I would suggest posting a comment on the answer.
回答(1 个)
Prem Kumar Tiwari
2018-12-12
0 个投票
It's not very clear what 'load flow' refers to, in the question. It's apparent that you're talking about Simulink Models and there are bus elements in the model, a total of 50.
Though, you've inserted all the parameters in the model, the error "Undefined function or variable -YBus-" indicates that upon Simulation the Model is unable to locate the "YBus" name and hence the error.
You can define a variable with name "YBus" at the Matlab command prompt, so that it comes into context of the currently loaded model, and then try running the model again.Successful execution of the Model indicates that "YBus" was expected to be a variable and not a function, the cause of error has been resolved. If it fails, probably "YBus" should've been a function, you should investigate more in that case.
Once the investigation is complete and you know the cause of the error, you may go ahead with ensuring that YBus, is properly known to the Model before expecting it's successful execution.
Setting Block Parameters - A good link to read about how you can configure parameter values of a Simulink model, properly.
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!