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

Ask Your Question
1

Exporting branch R,X values to Excel

asked Jan 30 '15

kdlewis95 gravatar image

updated Jan 30 '15

I have not been able to figure out how to extract the R & X values from the complex array created by using psspy.abrncplx and exporting the values to excel.

The snippet from the script:


ierr, branchrx = psspy.abrncplx(-1, string='RX')

xl.set_range(2, 'd', zip(*branchrx))


the script fails due to the zip function being unable to process the complex array.

Any help would be appreciated.

2 answers

Sort by » oldest newest most voted
0

answered May 9 '19

drsgao gravatar image

Just to expand rimux's answer a bit. The RX in PSSE is in complex format, that's why you need to get the real and imag and that's why the function has "cplx" in it. Again, read the API manual, Chapter 8 I think.

link
0

answered Feb 6 '15

rimux gravatar image

updated Feb 6 '15

R = branchrx.real
X = branchrx.imag
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

Stats

Asked: Jan 30 '15

Seen: 912 times

Last updated: May 09 '19