Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

CHSB maximum allowed channel reached

Hi,

Im running a model which has approx 400 buses, 100 generators and 200 loads. The goal is to run dynamic simulation and simulate some scenarios and store results for particular set of buses.

The code I am using below:

import psspy # python bindings for the PSSE API

# redirect output to console
import redirect
redirect.psse2py()

# define psse types
_i = psspy._i
_f = psspy._f

#Load case file 
psspy.psseinit(2000)
   # Simulation scenarios
psspy.read(0,r"""C:\Users\x\Desktop\Raw_HWHL_merged.raw""")
    psspy.fnsl([0,0,0,1,0,0,99,0])
    psspy.dyre_new([1,1,1,1],r"""DYN_FILE.dyr""","","","")

# Convert genrators using ZSOURCE
psspy.cong(0)
# Convert loads to 100% impedance for Active and Reactive power
psspy.conl(0,1,1,[0,0],[0.0, 100.0,0.0, 100.0])
psspy.conl(0,1,2,[0,0],[0.0, 100.0,0.0, 100.0])
psspy.conl(0,1,3,[0,0],[0.0, 100.0,0.0, 100.0])
#Dynamic solution parameters and out file determiantion
psspy.dynamics_solution_param_2([_i,_i,_i,_i,_i,_i,_i,_i],[_f,_f,_f,_f,_f,_f,_f,_f])
#psspy.change_channel_out_file(r"""HWHL_noPSS.out""")
# Channel record for selected buses
psspy.bsys(1,0,[0.0,0.0],0,[],12,[67,101,102,173,177,3359,6701,31152,31151,33001,370110,8500],0,[],0,[])
# Signal selection
psspy.chsb(1,0,[-1,-1,-1,1,1,0])
psspy.chsb(1,0,[-1,-1,-1,1,2,0])
psspy.chsb(1,0,[-1,-1,-1,1,3,0])
psspy.chsb(1,0,[-1,-1,-1,1,4,0])
psspy.chsb(1,0,[-1,-1,-1,1,5,0])
psspy.chsb(1,0,[-1,-1,-1,1,6,0])
psspy.chsb(1,0,[-1,-1,-1,1,7,0])
psspy.chsb(1,0,[-1,-1,-1,1,25,0])
psspy.chsb(1,0,[-1,-1,-1,1,26,0])
psspy.chsb(1,0,[-1,-1,-1,1,12,0])
psspy.chsb(1,0,[-1,-1,-1,1,14,0])
psspy.chsb(1,0,[-1,-1,-1,1,16,0])

When I run the simulation, before initialization of system I do gen an error

Next Channel 1501 is greater than the maximum allowed channel number 1500 (002318)

The Out file created in this way records all synchronous machines buses and not he ones specified in BSYS command.

Intrestingly, I ran the same process in PSSE and recorded everything. The code seems to be the same as I am using and providing, but out file contains only channels of buses specified.

Is there something I am missing in my code or what?