Files
Depression_TMS/algorithm_V0/datacollect/start_parse.py

18 lines
390 B
Python
Raw Normal View History

2026-06-01 13:18:36 +08:00
import time
from eegParser import Parser_main
from RunOnce import is_program_running
if __name__ == "__main__":
if not is_program_running():
parser_ = Parser_main()
parser_.connect()
try:
parser_.start()
while not parser_.zmqServer.IsExitApp:
time.sleep(1)
except KeyboardInterrupt:
parser_.stop()