예제 #1
0
 public bool StopSample()
 {
     isSampled = false;
     try
     {
         MicroView.MV_OperateDevice(m_hBoard, (int)MicroView.RUNOPER.MVSTOP);            //停止当前板卡的采集和显示工作
     }
     catch
     {
         MicroView.MV_GetLastError(true);
         return(false);
     }
     return(true);
 }
예제 #2
0
 public bool StartSample()
 {
     if (isSampled)
     {
         return(true);
     }
     try
     {
         MicroView.MV_OperateDevice(m_hBoard, (int)MicroView.RUNOPER.MVRUN);//开始当前板卡的采集和显示工作
         isSampled = true;
         mv.seq    = new MicroView.CALLBACKFUNC(seqprogress);
         MicroView.MV_SetCallBack(m_hBoard, mv.seq, this.parentHwnd, (int)MicroView.CALLBACKTYPE.BEFORE_PROCESS);
     }
     catch
     {
         MicroView.MV_GetLastError(true);
         return(false);
     }
     return(true);
 }