Revision history  [back]

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

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