public bool StartHVCalib() { ResetForMeasurement(); bool res = false; if (ctrlHVCalib == null) { ctrlHVCalib = new HVControl(this); } if (CurState.State == DAQInstrState.HVCalib) // one already in progress { CurState.Cancel(); } else { res = ctrlHVCalib.HVStartCalibration(); } return(res); }
public bool StartHVCalib() { ResetForMeasurement(); bool res = false; if (ctrlHVCalib == null) ctrlHVCalib = new HVControl(this); if (CurState.State == DAQInstrState.HVCalib) // one already in progress { CurState.Cancel(); } else { res = ctrlHVCalib.HVStartCalibration(); } return res; }
public void AppendHVCalibration(HVControl.HVStatus hvst) { ctrlHVCalib.AddStepData(hvst); }
public static Row CreateRow(HVControl.HVStatus h, int i) { Row row = new Row(); row.Add((int)HVVals.Run, i.ToString()); row.Add((int)HVVals.Time, h.time.ToString("s")); row.Add((int)HVVals.HVRead, h.HVread.ToString()); row.Add((int)HVVals.HVSetPt, h.HVsetpt.ToString()); for (int j = (int)HVVals.C1; j <= (int)HVVals.C32; j++) { row.Add(j, h.counts[j - (int)HVVals.C1].ToString()); } return row; }
// implement incremental row addition using something like this public void AddRow(HVControl.HVStatus h, int r) { int lc = System.Enum.GetValues(typeof(SimpleHVReport.HVVals)).Length; Row row = SimpleHVReport.CreateRow(h, r); try { #if EXCEL for (int j = 1; j <= lc; j++) { target.Cells[r + 1, j] = row[j - 1]; } #endif } catch (Exception e) { ctrllog.TraceException(e); } }