소스 검색

4DMega_Setup_v1.1.0.1

xiewenjie 3 년 전
부모
커밋
e2d7c30852
4개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. BIN
      AppCode/laser/app/laser_setup.nsi
  2. BIN
      AppCode/laser/app/ui_laser_setup.nsh
  3. BIN
      AppFile/laser/tools/MonitorPid.exe
  4. 5 3
      baseFile/MonitorPid.py

BIN
AppCode/laser/app/laser_setup.nsi


BIN
AppCode/laser/app/ui_laser_setup.nsh


BIN
AppFile/laser/tools/MonitorPid.exe


+ 5 - 3
baseFile/MonitorPid.py

@@ -65,12 +65,14 @@ class checkProces :
             while 1:
                 time.sleep(TIME)
                 flag=r.exists('build:scene:status')
-                if flag :
+                stepflag =r.exists('build:scene:step')
+                if flag and stepflag :
                     pid_counter = 0 
                     MainLoaderFlag=0
                     laserFlag=0
                     JavaPortFlag =0
-
+                    step =r.get('build:scene:step')
+                    step = int(step)
                     for procObj in psutil.process_iter(['pid','ppid', 'name', 'username']):
                         if MainLoader.lower() in procObj.name().lower():
                             MainLoaderFlag=procObj.pid      
@@ -97,7 +99,7 @@ class checkProces :
                         if JavaPortFlag > 0:
                             os.kill(JavaPortFlag,signal.SIGINT)
                         checkProces.handle(r,conn,-1,1)
-                    elif laserFlag > 1 and MainLoaderFlag == 0:
+                    elif laserFlag > 1 and MainLoaderFlag == 0 and step ==1 :
                         logging.info("** only Process laser to Run...")
                         checkProces.handle(r,conn,-1,1)
                     elif laserFlag == 0 and MainLoaderFlag > 1: