Ejemplo n.º 1
0
def parent_pd_element():
    """This parameter sets parent PD Element, if any, to be the active circuit element and returns index > 0 if it fails or not applicable."""
    return dsslib.CircuitI(ctypes.c_int32(13), ctypes.c_int32(0))
Ejemplo n.º 2
0
def end_of_time_step_update():
    """This parameter calls end of time step cleanup routine in solutionalgs.pas. Returns 0."""
    return dsslib.CircuitI(ctypes.c_int32(14), ctypes.c_int32(0))
Ejemplo n.º 3
0
def next_element():
    """This parameter sets the next Element of the active class to be the active Element, as a result, this parameter will deliver the index of the active Element (0 if none)."""
    return dsslib.CircuitI(ctypes.c_int32(11), ctypes.c_int32(0))
Ejemplo n.º 4
0
def update_storage():
    """This parameter forces all storage classes to update. Typically done after a solution."""
    return dsslib.CircuitI(ctypes.c_int32(12), ctypes.c_int32(0))
Ejemplo n.º 5
0
def save_sample():
    """This parameter forces all meters and monitors to save their sample buffers, returns 0."""
    return dsslib.CircuitI(ctypes.c_int32(8), ctypes.c_int32(0))
Ejemplo n.º 6
0
def set_active_nbus(index):
    """This parameter sets active the bus specified by index, which is compatible with the index delivered by AllBusNames, returns 0 it everything ok."""
    return dsslib.CircuitI(ctypes.c_int32(9), ctypes.c_int32(index))
Ejemplo n.º 7
0
def sample():
    """This parameter forces all meters and monitors to take a sample, returns 0."""
    return dsslib.CircuitI(ctypes.c_int32(7), ctypes.c_int32(0))
Ejemplo n.º 8
0
def next_pd_element():
    """This parameter sets the next PDElement to be the active PDElement, as a result, this parameter will deliver the index of the active PDElement (if there is no more it will return a 0)."""
    return dsslib.CircuitI(ctypes.c_int32(6), ctypes.c_int32(0))
Ejemplo n.º 9
0
def first_pd_element():
    """This parameter sets the first PDElement to be the active PDElement, as a result, this parameter will deliver the index of the active PDElement (ideally 1)."""
    return dsslib.CircuitI(ctypes.c_int32(5), ctypes.c_int32(0))
Ejemplo n.º 10
0
def num_nodes():
    """This parameter will deliver the number of nodes included in the active circuit."""
    return dsslib.CircuitI(ctypes.c_int32(2), ctypes.c_int32(0))
Ejemplo n.º 11
0
def num_ckt_elements():
    """This parameter will deliver the number of CktElements included in the active circuit."""
    return dsslib.CircuitI(ctypes.c_int32(0), ctypes.c_int32(0))