1

Import from excel to PSSE

I want to generate a list that include bus#, gen ID, Pgen, Pmax, Qgen, Qmax of a specific area. The list produced should be editable form and while editing it should give total MW change. Is it possible that we import the list from PSSE to excel and after changing import back to PSSE? If yes,then how to do it?

USMAN KHALID's avatar
11
USMAN KHALID
asked 2013-04-17 00:10:48 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

1

You could do this using python, but it would be overkill. Assuming you are using PSS/E ver 30 or newer, use the GUI.

  1. Create a subsystem for the area you want study
  2. Click on the "Machine" tab.
  3. Select all the rows. Copy-paste them into excel.

Hope this is clear.

jsexauer's avatar
586
jsexauer
answered 2013-04-19 07:09:37 -0500
edit flag offensive 0 remove flag delete link

Comments

Agreed, the GUI in PSSE is more than capable here. A good choice.

JervisW's avatar JervisW (2013-04-20 05:05:24 -0500) edit
add a comment see more comments
0

I am doing like this:

from win32com.client import Dispatch
xlApp = Dispatch("Excel.Application")

def XLSReadValue(xbook,xsheet,cell,x,y): #x,y - offset from cell
  value = xlApp.Workbooks(xbook).Sheets(xsheet).Range(cell).Offset(x+1,y+1).Value
return value

def XLSWriteValue(xbook,xsheet,cell,x,y,value): #x,y - offset from cell
  xlApp.Workbooks(xbook).Sheets(xsheet).Range(cell).Offset(x+1,y+1).Value=value

Than, if I want to get from excel value from cell A1:

n=XLSReadValue('book.xls','sheet1','A1',0,0)
rimux's avatar
296
rimux
answered 2013-04-19 09:35:59 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer