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
Azzi Abdelmalek 2012 年 10 月 22 日
which block causes error ?
kash
kash 2012 年 10 月 22 日
This is my mdl
cannot determine which block causes error
Sachin Ganjare
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
Walter Roberson 2012 年 11 月 5 日

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

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 10 月 25 日
編集済み: Azzi Abdelmalek 2012 年 10 月 25 日

0 投票

In the home page of Matlab, on the top-middle there is a "current folder" by default it's
F:\Old\bck\Program Files\MATLAB\R2011b\bin
change it to a new folder

5 件のコメント

kash
kash 2012 年 10 月 25 日
ok thanks Azzi
kash
kash 2012 年 10 月 25 日
Azzi is it posible to get graphs like shown in simulink
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 10 月 25 日
It's possible, if you know what you want
kash
kash 2012 年 10 月 25 日
yes Azzi i need graphs like that ,please tell hoe to perform
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 10 月 25 日
kash, If the question you've previously posted was answered accept it or no, and repost another question.

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

その他の回答 (2 件)

Sachin Ganjare
Sachin Ganjare 2012 年 10 月 22 日

0 投票

Use below command & check the results:
newoptions = simset (oldoptions, 'SaveFormat', 'StructureWithTime');

10 件のコメント

kash
kash 2012 年 10 月 22 日
I get error as Undefined function or variable 'oldoptions'.
Sachin Ganjare
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
kash 2012 年 10 月 22 日
I get same error
Initial state vector "X0" must be a real vector of length 135
Sachin Ganjare
Sachin Ganjare 2012 年 10 月 22 日
編集済み: Sachin Ganjare 2012 年 10 月 22 日
Sachin Ganjare
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
kash 2012 年 10 月 22 日
again same error
Initial state vector "X0" must be a real vector of length 13
Initial state was xinitial ,i changed it,again same error ,please help
Sachin Ganjare
Sachin Ganjare 2012 年 10 月 22 日
Can you upload initialization file as well, as the model is not simulating due to some undefined parameters.
kash
kash 2012 年 10 月 22 日
Sachin can u please tell me ehat is initialization file,i have pnly that mdl file
Sachin Ganjare
Sachin Ganjare 2012 年 10 月 25 日
Some parameters used in your model are undefined, this error may be related to that.
kash
kash 2012 年 10 月 25 日
Sachin please can you tell how to modify those

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

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 10 月 22 日
編集済み: Azzi Abdelmalek 2012 年 10 月 22 日

0 投票

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
kash 2012 年 10 月 22 日
azzi i typed in command window but it is not opening .......am using 2010a,and i did not get any error ,but not openenig,plz help
kash
kash 2012 年 10 月 22 日
can u please tell what must he xinitial value
Azzi Abdelmalek
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
kash 2012 年 10 月 25 日
Azzi the command is there in specified path,but as u said please tell how to change the xInitial
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 10 月 25 日
In the callback,replace the command load power_wind_dfig_xinit by
xInitial= % put your own values
kash
kash 2012 年 10 月 25 日
Azzi i get same error Initial state vector "X0" must be a real vector of length 135
xInitial= =135 in call back
Azzi Abdelmalek
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
kash 2012 年 10 月 25 日
Azzi after rectifying that i ge another error
Derivative input 1 of 'powinju1/Wind Turbine Doubly-Fed Induction Generator (Phasor Type)1/Generator & Converters/DC bus model/Integrator' at time 0 is Inf or NaN. Stopping simulation. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances).
Azzi Abdelmalek
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
kash 2012 年 10 月 25 日
Azzi i neesd the same output power_wind_dfig.mdl,i have added extra source and wind turbine,i need output in three turbines
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 10 月 25 日
kash, I can't help you with turbine problems, it's not my area.
kash
kash 2012 年 10 月 25 日
ok Azi thanks for your help a final questio ,is there any block available for PWM current source
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 10 月 25 日
Sorry, no idea
kash
kash 2012 年 10 月 25 日
ok in trying to run PV ARRAY program taken frommatlab central
i get error
Your current working folder is: F:\Old\bck\Program Files\MATLAB\R2011b\bin Simulink does not permit you to build programs in the MATLAB installation area. Please change to a working folder that is not in the MATLAB installation area.
please tell how to solve this
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 10 月 25 日
Just change your working folder to a new folder, for example D:\work
kash
kash 2012 年 10 月 25 日
Yes Azzi how to change where i have to type these command

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

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by