from syslab import SwitchBoard name = '319-2' SB_connection = SwitchBoard(name) print("Let's look at what is going on in the switchboard {}.".format(name)) for bay in range(SB_connection.getNumBays()): print(SB_connection.getBayName(bay),' : ',SB_connection.getActivePower(bay))