1

Single Line Diagram using Python routine

Thank you JervisW... My problem didn'tsolve yet.I wrote the similar code as u suggest i.e; DrawBusSLD but when i run it on PSSE it didn't create the single line diagram.Then i tried to create a single bus by writing this code

import os
import sys
PSSE_PATH=r'C:/program files/pti/psseuniversity32/pssbin'
sys.path.append(PSSE_PATH)
os.environ['PATH']+=';'+PSSE_PATH
import psspy
growbus(101,0,-3.2)

Again no SLD created there. Please me where is the problem.. ?

Amir's avatar
21
Amir
asked 2013-03-19 10:28:54 -0500
JervisW's avatar
1.3k
JervisW
updated 2013-03-19 17:47:11 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

Hi Whitely , in the code you suggested to Amir befor we grow bus we have to open new sld file using the instruction PSSPY.NEWDIAGFILE() but even then the grown sld is too messy to read ,the question how to draw neat and clean single line sld is still unanswered :(

The Bull's avatar
1
The Bull
answered 2013-04-28 00:10:32 -0500
edit flag offensive 0 remove flag delete link

Comments

Correct. I've started a project that will auto-draw buses that are displayed nicely. But it isn't ready yet.

JervisW's avatar JervisW (2013-05-08 04:46:58 -0500) edit
add a comment see more comments
0

Amir, you've done a fantastic job importing the psspy library. What you must do next is to initialise PSSE and open a saved case.

import os
import sys
PSSE_PATH=r'C:/program files/pti/psseuniversity32/pssbin'
sys.path.append(PSSE_PATH)
os.environ['PATH']+=';'+PSSE_PATH
import psspy

# initialise psse
psspy.psseinit(10000)
# load a saved case.
psspy.case(r'c:/program files/pti/psseuniversity32/example/savnw.sav')

# now you can grow a bus
psspy.growbus(101,0,-3.2)

But unless you save the slider diagram file, you'll never see the result of growbus, because Python will exit.

JervisW's avatar
1.3k
JervisW
answered 2013-03-19 17:50:48 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer