예제 #1
0
def disable(element):
    """This parameter allows to disable an element of the active circuit, the element must be specified by name. As a result, this parameter will deliver the string “Ok”."""
    return dsslib.CircuitS(ctypes.c_int32(1),
                           element.encode('ascii')).decode('ascii')
예제 #2
0
def name():
    """This parameter returns the name of the active circuit."""
    return dsslib.CircuitS(ctypes.c_int32(0),
                           ''.encode('ascii')).decode('ascii')
예제 #3
0
def set_active_bus(bus):
    """This parameter allows to activate a bus of the active circuit, the bus must be specified by name. As a result, this parameter will deliver a string with the index of the active Bus."""
    return dsslib.CircuitS(ctypes.c_int32(4),
                           bus.encode('ascii')).decode('ascii')
예제 #4
0
def set_active_class(class_name):
    """This parameter allows to activate a Class of the active circuit, the Class must be specified by name. As a result, this parameter will deliver a string with the index of the active Class."""
    return dsslib.CircuitS(ctypes.c_int32(5),
                           class_name.encode('ascii')).decode('ascii')
예제 #5
0
def set_active_element(element):
    """This parameter allows to activate an element of the active circuit, the element must be specified by name. As a result, this parameter will deliver a string with the index of the active element."""
    return dsslib.CircuitS(ctypes.c_int32(3),
                           element.encode('ascii')).decode('ascii')