First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

pssexcel not running

asked Mar 27 '15

ClaireL gravatar image

updated Mar 27 '15

I have followed all of the tutorial on this site for setting up and running load flows in PSSe 33. I have a .acc file and I'm trying to import this data to Excel 2010. `en....

ACCC file location

ACCFILE = r"""H:......\sample_N-1.acc""" import psspy, redirect, pssexcel #end imports

pssexcel accc file import

pssexcel.accc( accfile = ACCFILE, string=['s','e','b'], colabel='', stype='contingency', busmsm=0.5, sysmsm=5.0, rating='a', namesplit=True, xlsfile='Book1.xls', sheet='', overwritesheet=True, show=True, ratecon='b', baseflowvio=False, basevoltvio=False, flowlimit=100.0, flowchange=0.0, voltchange=0.0 )

The output is: File ".\pssexcel.py", line 1140, in accc File ".\pssexcel.py", line 253, in openworkbook_worksheets File ".\excelpy.py", line 1892, in workbook File ".\excelpy.py", line 194, in init TypeError: float() argument must be a string or a number`

Any suggestions? I have the win23api in the PSSE33\PSSBIN folder.

1 answer

Sort by » oldest newest most voted
0

answered Jul 8 '15

ClaireL gravatar image

updated Jul 8 '15

I figured it out, you need to Import psspy and initialize PSSe before Import pssexcel. PSSEXCEL won't run until the PSS/e is open and running in the terminal.

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Mar 27 '15

Seen: 1,580 times

Last updated: Jul 08 '15