MDL = MainDatalogger() MDL.daemon = True MDL.start() # time.sleep(4) from mymultiplexer import MainMultilogger MML = MainMultilogger() MML.daemon = True MML.start() # time.sleep(4) from mytui import MainTui MT = MainTui() MT.start() time.sleep(4) from mypid import MainPID MP = MainPID() MP.daemon = True MP.start() time.sleep(4) from mydigitalinout import MainDGIO DGIO = MainDGIO() DGIO.daemon = True DGIO.start()
if __name__ == '__main__': from mydatalogger import MainDatalogger MDL = MainDatalogger() MDL.daemon = True MDL.start() #time.sleep(4) from mymultiplexer import MainMultilogger MML = MainMultilogger() MML.daemon = True MML.start() #time.sleep(4) from mytui import MainTui MT = MainTui() MT.start() time.sleep(4) from mypid import MainPID MP = MainPID() MP.daemon = True MP.start() time.sleep(4) from mydigitalinout import MainDGIO DGIO = MainDGIO() DGIO.daemon = True DGIO.start() while MT.isAlive():
if __name__ == '__main__': from mydatalogger import MainDatalogger MDL = MainDatalogger() MDL.start() #time.sleep(4) from mymultiplexer import MainMultilogger MML = MainMultilogger() MML.start() #time.sleep(4) from mytui import MainTui MT = MainTui() MT.start() time.sleep(4) from mypid import MainPID MP = MainPID() MP.start() time.sleep(4) from mydigitalinout import MainDGIO DGIO = MainDGIO() DGIO.start() while MT.isAlive(): try: time.sleep(1)