コード例 #1
0
ファイル: mymaster.py プロジェクト: CINF/PyExpLabSys
    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():
        try:
            time.sleep(1)
        except (KeyboardInterrupt, SystemExit):
            MT.quit = True
    DGIO.quit = True
    MP.quit = True
    MT.quit = True
    MML.quit = True
    MDL.quit = True
    print("END")
コード例 #2
0
    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():
        try:
            time.sleep(1)
        except (KeyboardInterrupt, SystemExit):
            MT.quit = True
    DGIO.quit = True
    MP.quit = True
    MT.quit = True
    MML.quit = True
    MDL.quit = True
    print('END')
コード例 #3
0
ファイル: mymaster.py プロジェクト: neilanderson/PyExpLabSys
 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)
     except (KeyboardInterrupt, SystemExit):
         MT.stop()
 DGIO.stop()
 MP.stop()
 MT.stop()
 MML.stop()
 MDL.stop()
 print('END')