Beispiel #1
0
        public int RemoveVI(VirtualInstrument vi)
		{
			int status = -1;
			if(vi != null)
			{
				string message = "Trying to remove " + vi.Name;
				
				//vi.SetLockState(LabVIEW.VILockStateEnum.eLockedNoPwdState,false,"",false);
				vi.Abort();
				vi.CloseFrontPanel();
				vi = null;
			}
			return status;
		}
Beispiel #2
0
 public int CloseVI(VirtualInstrument vi)
 {
     int status = -1;
     if (vi != null)
     {
         StopVI(vi);
         
         vi.Abort();
         vi.CloseFrontPanel();
         status = (int)GetVIStatus(vi);
     }
     return status;
 }