code: def set_output(self, state):
          
          freq = float(self.instr.query('FREQ?'))
          if freq > 4.05e9:
              if state:
                  self.instr.write('ENBH 1') #enable output
              else:
                  self.instr.write('ENBH 0')
          elif freq < 62.5e6:
              if state:
                  self.instr.write('ENBL 1') #enable output
              else:
                  self.instr.write('ENBL 0')
docs: Sets whether the function generator is outputting a voltage.