/// <summary> /// Add calibration values of one channel in the DGV /// </summary> /// <param name="hwcal_Chan"></param> private void AddHwCalCh_InDGV(hwcal_chan hwcal_Chan) { UInt32 gain_reverse = HwCal.BigEndianToLittleEndian(hwcal_Chan.gain); UInt32 offset_reverse = HwCal.BigEndianToLittleEndian(hwcal_Chan.offs); dgvHWCAL.Rows.Add(dgvHWCAL.Rows.Count, gain_reverse.ToString("X8"), offset_reverse.ToString("X8"), hwcal_Chan.ChannelName); }
/// <summary> /// Read the SREC input file and create the HwCal structure in RAM /// </summary> /// <param name="FileName"></param> private void ReadInputData(string FileName) { SrecFile = new SrecFile(FileName); HwCalStruct = new HwCal(SrecFile); SrecFileWasAdded = true; }