How can I access the data from the LOAD FLOW Analysis tool in the Powergui from the MATLAB command (R2014a)?

4 次查看(过去 30 天)
In order to initialize my simulation model , I open the Powergui, select load flow Analysis, and press compute to show the load flow results of my model (voltage , power ....).
I would like to access this data from the MATLAB command in order to save it in to an m file or un xl file then use them for my analysis process.

采纳的回答

Sebastian Castro
Sebastian Castro 2014-10-2
Lilia,
You can use the power_loadflow command on your model to compute load flow parameters from the command line rather than from the "powergui" block.
You'll notice that the output structure contains several fields for different types of loads. There's sm for synchronous machines, asm for asynchronous machines, pqload for power-parameterized loads, etc.
You can then pick through the data in this structure and use MATLAB functions like xlswrite to write what you want to files.
- Sebastian
  1 个评论
James M
James M 2018-4-3
Hi Sebastian, I require the same as Lilia, as I am trying to automate the Load Flow for different values of loads. I do not understand how you have you can sift through the fields you mention (sm, asm etc), when all they appear to do is reference the field structure (they are not variables)? e.g this is what i obtain: LF =
model: 'LVnetworkModel802_2'
frequency: 50
basePower: 10000
tolerance: 1.0000e-04
Ybus: [45x45 double]
bus: [1x45 struct]
sm: [1x1 struct]
asm: [1x1 struct]
vsrc: [1x1 struct]
pqload: [1x1 struct]
rlcload: [1x1 struct]
Networks: [1x1 struct]
status: 1
iterations: 2
error: ''
LoadFlowSolver: 'Unbalanced'
I realise you can save the report for the load flow, but it is not in the format as the Load Flow Tool Table. I have developed a process to automate saving the Load Flow Reports for different load values but having to go through and copy and paste the data to get it into the same Load Flow Tool Table format kind of defeats its purpose. Any help would be appreciated.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Device Characteristics Assessment 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by