/// <summary>
 /// 移动转轮
 /// </summary>
 /// <param name="position">0 = 打开, 1 = NG4滤光玻璃, 2 = 聚苯乙烯, 3 = 过滤网</param>
 /// <returns></returns>
 public bool?MoveWheel(int position, string iniFilePath)
 {
     if (!isConnected)
     {
         errorCode = -11;
         return(false);
     }
     errorCode = instrumentObject.MoveWheel(position);
     return(errorCode == 0);
 }
Exemple #2
0
 /// <summary>
 /// 移动转轮
 /// </summary>
 /// <param name="position">0 = 打开, 1 = NG4滤光玻璃, 2 = 聚苯乙烯, 3 = 过滤网</param>
 /// <returns></returns>
 public static bool MoveWheel(int position)
 {
     lock (thisLock)
     {
         if (!isConnected)
         {
             ErrorCode = -11;
             return(false);
         }
         ErrorCode = instrumentObject.MoveWheel(position);
         return(ErrorCode == 0);
     }
 }