Sets whether the function generator is outputting a voltage.

def set_output(self, state, channel=2):
        """Sets whether the function generator is outputting a voltage."""
        if state:
            self.instr.write(':OUTP{0} ON'.format(channel))
        else:
            self.instr.write(':OUTP{0} OFF'.format(channel))