def METHOD_NAME(self):
    import wx
    logger.debug('Disconnecting')
    self.pa.onFrame.disconnect(self.tick)
    self.cam.SetEMGain(self.emgain)
    time.sleep(0.5)
    logger.debug('Disconnected')
    wx.CallAfter(self.plot)