public bool StartHVCalib() { ResetForMeasurement(); bool res = false; if (ctrlHVCalib == null) { ctrlHVCalib = new HVControl(this); } if (CurState.State == DAQInstrState.HVCalib) { CurState.Cancel(); } else { res = ctrlHVCalib.HVStartCalibration((NC.App.Opstate.Measurement.AcquireState.lm.Feedback ? 1 : 0)); } return(res); }
// 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 { for (int j = 1; j <= lc; j++) { //target.Cells[r + 1, j] = row[j - 1]; } } catch (Exception e) { ctrllog.TraceException(e); } }
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; }
public static Row CreateRow(HVControl.HVCalibrationParameters h, int i) { Row row = new Row(); row.Add((int)HVCalibVals.MinHV, h.MinHV.ToString()); row.Add((int)HVCalibVals.MaxHV, h.MaxHV.ToString()); row.Add((int)HVCalibVals.DurationSeconds, h.HVDuration.ToString()); row.Add((int)HVCalibVals.StepVolts, h.Step.ToString()); row.Add((int)HVCalibVals.DelaySeconds, h.Delay.ToString()); return row; }
public bool StartHVCalib() { ResetForMeasurement(); bool res = false; if (ctrlHVCalib == null) ctrlHVCalib = new HVControl(this); if (CurState.State == DAQInstrState.HVCalib) { CurState.Cancel(); } else { res = ctrlHVCalib.HVStartCalibration((NC.App.Opstate.Measurement.AcquireState.lm.Feedback ? 1 : 0)); } return res; }