bool IPIZ.StopAll() { bool ret = true; string sErrMsg = string.Empty; StringBuilder sErrorMessage = new StringBuilder(1024); int iError; if (PI_GCS.STP(m_iControllerId) == 0) { iError = PI_GCS.GetError(m_iControllerId); PI_GCS.TranslateError(iError, sErrorMessage, sErrorMessage.Capacity); sErrMsg = "ERROR From STP " + iError.ToString() + ": " + sErrorMessage.ToString(); ret = false; } return(ret); }