from fn_gen import DG2052 if __name__ == "__main__": fg = DG2052("TCPIP::192.168.1.11::INSTR") for channel in [1, 2]: fg.set_output(channel, False)