Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can write your own API:

 def add_load_channels(ibus,id,indx,ident):
    """ Adds a STATE channel for a bus load model
    ibus = load bus (integer)
    id = load id (string)
    indx = state index (0,1,2,3 etc) (integer)
    ident = identifier for the STATE channel (string)
    """
    ierr, k = psspy.lmodind(ibus, id, 'CHARAC', 'STATE')
    psspy.state_channel([-1,k+indx],ident)

Add a load characteristic model channel with:

add_load_channels(3005,'1',4,'SPEED IM 1 at 3005')