Ask Your Question
1

Import from excel to PSSE

asked 2013-04-17 00:10:48 -0500

USMAN KHALID gravatar image

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?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2013-04-19 07:09:37 -0500

jsexauer gravatar image

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.

edit flag offensive delete link more

Comments

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

JervisW gravatar imageJervisW ( 2013-04-20 05:05:24 -0500 )edit
0

answered 2013-04-19 09:35:59 -0500

rimux gravatar image

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)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2013-04-17 00:10:48 -0500

Seen: 1,379 times

Last updated: Apr 19 '13