Example #1
0
 private void chuLiTimer_Elapsed(object sender, ElapsedEventArgs e)
 {
     MMA_Timer.Stop();
     if (MMA_PlateDetect)
     {
         int    b = 0;
         String s;
         for (int i = 0; i < MMA_TestRowIndex; i++)
         {
             s = MultiTunnelDeviceMessageCreator.createJianCeZhiReport(b, MMA_DetectValues[i]);
             SendMsg(s);
             b += MMA_TestColumnIndex;
         }
         //s = MultiTunnelDeviceMessageCreator.createKongBanReport(youKongBan,currentTiaoMaHao);
         //SendMsg(s);
         MMA_PlateDetect    = false;
         MMA_currentBarCode = null;
     }
     MMA_Timer = null;
 }
Example #2
0
        private void startTimer()
        {
            if (MMA_PlateDetect)
            {
                MMA_currentBarCode = BarCodeGenerator.generateBarCode();
            }
            String s = MultiTunnelDeviceMessageCreator.createKongBanReport(MMA_PlateDetect, MMA_currentBarCode);

            SendMsg(s);
            if (MMA_PlateDetect)
            {
                if (MMA_Timer != null)
                {
                    MMA_Timer.Stop();
                }
                MMA_Timer          = new System.Timers.Timer();
                MMA_Timer.Interval = MMA_MeasureTime * 1000;
                MMA_Timer.Elapsed += new System.Timers.ElapsedEventHandler(chuLiTimer_Elapsed);
                MMA_Timer.Start();
            }
        }
Example #3
0
        public void send_cmd(String cmd)
        {
            String msg = MultiTunnelDeviceMessageCreator.createCmd(cmd);

            SendMsg(msg);
        }
Example #4
0
        public void send_moshi()
        {
            String msg = MultiTunnelDeviceMessageCreator.createSetMode(jianCeMoShiToString(MMA_TestMode));

            SendMsg(msg);
        }