Error-Initial state vector "X0" must be a real vector of length 86
이전 댓글 표시
When i am running simulink program i am getting error as Initial state vector "X0" must be a real vector of length 86
The simulink is power_wind_dfig.mdl
when i run this the program runs ,but i tried to connect another wind turbine across B575.i get that error
pleasae help
댓글 수: 4
Azzi Abdelmalek
2012년 10월 22일
which block causes error ?
kash
2012년 10월 22일
Sachin Ganjare
2012년 10월 22일
Can you upload initialization file as well, as the model is not simulating due to some undefined parameters
Walter Roberson
2012년 11월 5일
Please use better tags for this question; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags
채택된 답변
추가 답변 (2개)
Sachin Ganjare
2012년 10월 22일
0 개 추천
Use below command & check the results:
newoptions = simset (oldoptions, 'SaveFormat', 'StructureWithTime');
댓글 수: 10
kash
2012년 10월 22일
Sachin Ganjare
2012년 10월 22일
Simply goto Simulation->Configuration Parameters->Data Import/Export Options->Save Options->Format & change setting from 'Array' to 'Structure With Time'
kash
2012년 10월 22일
Sachin Ganjare
2012년 10월 22일
편집: Sachin Ganjare
2012년 10월 22일
Refer below link, it might help:
Sachin Ganjare
2012년 10월 22일
Also try this:
Go to your Simulink model, select menu "Simulation">"Configuration Parameters ...", click "Data Import/Export" at the left column, look at the right, do you see "Initial State" is checked and there is a "X0" there?
If Yes, that is try to use the value in the variable "X0" to set the initial state. Sounds like the value for "X0" in the workspace does not meet the criteria.
To make it work, set X0=zeros(1,70). This is just trying to see if it can pass this error stage. To set the proper value, you have to look into your own model or document.
kash
2012년 10월 22일
Sachin Ganjare
2012년 10월 22일
Can you upload initialization file as well, as the model is not simulating due to some undefined parameters.
kash
2012년 10월 22일
Sachin Ganjare
2012년 10월 25일
Some parameters used in your model are undefined, this error may be related to that.
kash
2012년 10월 25일
Azzi Abdelmalek
2012년 10월 22일
편집: Azzi Abdelmalek
2012년 10월 22일
right click on your model, then on model properties , callbacks, init fcn you will find the initialization command
load power_wind_dfig_xinit % this file contains a variable named xInitial (1x85)
If you have changed the model I think you must change xInitial
댓글 수: 16
kash
2012년 10월 22일
kash
2012년 10월 22일
Azzi Abdelmalek
2012년 10월 22일
kash, have you found the command in your model callback? If you don't, from where did you get your simulink model? because it's in matlab folder.
kash
2012년 10월 25일
Azzi Abdelmalek
2012년 10월 25일
In the callback,replace the command load power_wind_dfig_xinit by
xInitial= % put your own values
kash
2012년 10월 25일
Azzi Abdelmalek
2012년 10월 25일
편집: Azzi Abdelmalek
2012년 10월 25일
== is not an affectation, also xInitial =135, its size is one
just to don't have an error try
xInitial= zeros(1,135)
but you must know, what should be xInitial in your model
kash
2012년 10월 25일
Azzi Abdelmalek
2012년 10월 25일
kash, I dont know how your model works, I think you should change the xInitial values, I set them to zeros to avoid error message about xInitial, but you have to know what you are doing with this model, and I advise you to make your own model, the one you are trying to use, can just help you to have an idea how to do it.
kash
2012년 10월 25일
Azzi Abdelmalek
2012년 10월 25일
kash, I can't help you with turbine problems, it's not my area.
kash
2012년 10월 25일
Azzi Abdelmalek
2012년 10월 25일
Sorry, no idea
kash
2012년 10월 25일
Azzi Abdelmalek
2012년 10월 25일
Just change your working folder to a new folder, for example D:\work
kash
2012년 10월 25일
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!