class TestInstrument(SCPIInstrument): frequency = FloatCommand(get_string="frequency?", set_string="frequency {:g}", value_range=(0.1, 10)) serial_number = IntCommand(get_string="serial?") mode = StringCommand(name="enumerated mode", scpi_string=":mode", allowed_values=["A", "B", "C"])
class TestInstrument3(SCPIInstrument): power = FloatCommand(get_string="power?") serial_number = IntCommand(get_string="serial?") mode = StringCommand(scpi_string=":mode", allowed_values=["A", "B", "C"])