Three separate threads for drawing, source localization and reading signal from the device