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; }
public int CloseVI(VirtualInstrument vi) { int status = -1; if (vi != null) { StopVI(vi); vi.Abort(); vi.CloseFrontPanel(); status = (int)GetVIStatus(vi); } return status; }