浏览代码

set the state to paused when set some param to a sample,so that the sample can be measured again after it has been success measured.

gsp 3 年之前
父节点
当前提交
e07ab1d2a4
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      OTSIncAMeasureApp/0-OTSModel/OTSDataType/COTSSample.cs

+ 5 - 0
OTSIncAMeasureApp/0-OTSModel/OTSDataType/COTSSample.cs

@@ -195,7 +195,12 @@ namespace OTSDataType
                     bSetFalg = false;
                     break;
             }
+            if (bSetFalg)
+            {
+                this.GetMsrStatus().SetStatus(OTS_MSR_SAMPLE_STATUS.PAUSED);//change the state so that this sample can be processed again.
+
 
+            }
 
             return bSetFalg;
         }