def _do_generate_cs(self, ip, line, numbers): self.net = BciNetwork(ip, bcinetwork.FC_PORT) self.signal = BciSignal(None, None, bcixml.CONTROL_SIGNAL) self.stopping = False self.t = threading.Thread(target=self._cs_loop, args=(numbers,)) self.t.start() print("Enter: stop_cs to stop the signal.")