code: def set_reference_channel(self, chname):
          
          # change the GUI control to match
          idx = self.chnames.index(str(chname))
          self.w.ref_channel.set_index(idx)
          return self._set_reference_channel(chname)
docs: This is the API call to set the reference channel.