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

Ask Your Question
0

Python API data retrieval of voltage and current related to dummy bus after in-line fault of SCMU

asked Oct 10 '4

anonymous user

Anonymous

The PSSE I am using is ver.34. I have tried the code psspy.scbus2(999999,"VPOS") and psspy.scbrn2(ibus,999999,ickt,"IPOS"). Both show the ierr = 2 which the bus 999999 is not found. I have also tried the bus code 99999, it does not work either.

Please let me know your thought and solution. Thank you.

1 answer

Sort by ยป oldest newest most voted
0

answered Oct 10 '4

I have came across similar error before, Before calling scbus2 or scbrn2, you need to initialize the short-circuit data retrieval APIs using scinit()

If this was already taken care of, then the error maybe because of syntax error or the bus may not be part of the system

link

Comments

Syntax for V35 is : This API routine was first introduced in release 28.0.0. Python command syntax: ierr = scinit() Please crosscheck manual for V34 version

Sandeepnair08 gravatar imageSandeepnair08 (Oct 10 '4)

Thank you for your reply! Yes, I have already used the scinit, and it works fine for other buses with scbus2 and scbrn2. However, when it comes to the dummy bus (i.e. bus id 999999), error was raised and stated that the bus does not exist.

Wai gravatar imageWai (Oct 10 '4)

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: Oct 10 '4

Seen: 138 times

Last updated: Oct 10 '24