Ask Your Question
0

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

asked 2024-10-09 22:57:28 -0500

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2024-10-10 01:50:22 -0500

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

edit flag offensive delete link more

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 ( 2024-10-10 01:51:25 -0500 )edit

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 ( 2024-10-10 05:55:49 -0500 )edit

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

1 follower

Stats

Asked: 2024-10-09 22:57:28 -0500

Seen: 32 times

Last updated: Oct 10