Ask Your Question
0

How do I read the Impedance Correction Table data?

asked 2014-10-01 07:08:49 -0500

JDRobers gravatar image

I am using PSSE version 33.4, and there is a section in the model for Impedance Correction data. I have found the API call IMPEDANCE CORRECTION DATA (with underscores, of course), which can be used to update the table, but at the moment, I cannot find a way to merely read said data.

Does such an API call exist?

Thanks.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2014-10-03 07:36:52 -0500

JDRobers gravatar image

Well, I'll tell you what I managed to discover on my own. It's kind of a backroute way to do this, but it avoids having to import a whole other module.

The LIST API call with option 14 outputs the impedance correction table data to a report (you just need to redirect the report output to a specific file.) Then I can read the report file to gather the data.

It does still annoy me that there is no direct API call for impedance table data like there are for areas, zones, buses, branches, and so on (like aAreaInt), but at least I have some means of retrieving the data. I can only hope that the next version of PSSE cleans this up.

edit flag offensive delete link more

Comments

Well spotted. I probably missed this one because it is written as "impedance table correction data" rather than the usual "impedance correction table data".

Eli Pack gravatar imageEli Pack ( 2014-10-06 19:03:09 -0500 )edit
0

answered 2014-10-02 00:42:11 -0500

Eli Pack gravatar image

Let me start by saying that I haven't tried this before, so I'm speculating. I can't see anything in the psspy library that will help, although sometimes functions don't seem to be documented for whatever reason. There is however something in the caspy library that looks promising (refer to "C:\Program Files (x86)\PTI\PSSE33\DOCS\SC.pdf"). Now, caspy looks at a file, so you'll need to make sure that you've saved the case first. Next, import caspy, load the file into memory, then use the psstic() function (see section 2.19-"PSSTIC – Retrieve Transformer Impedance Correction Tables"). The following code may assist.

import caspy
myFile = caspy.Savecase(r"""c:\myFolder\myFile.sav""")
print myFile.pssopn
print myFile.psstic
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: 2014-10-01 07:08:49 -0500

Seen: 1,253 times

Last updated: Oct 03 '14