![]() | 1 | initial version |
You can use the psspy.nxtbus function to find the next bus. Here's some code that may help:
ierr = psspy.inibus(startbus)
if ierr < 1:
while 1 == 1:
ierr, foundbus, longbusname = psspy.nxtbus(startbus)
if ierr < 1:
buslist.append(foundbus)
else:
break
![]() | 2 | No.2 Revision |
You can use the psspy.nxtbus function to find the next bus. Here's some code that may help:
help:
ierr = psspy.inibus(startbus)
if ierr < 1:
while 1 == 1:
ierr, foundbus, longbusname = psspy.nxtbus(startbus)
if ierr < 1:
buslist.append(foundbus)
else:
break