//光谱仪信息 private void SetFormInfoDisplay() { try { //加载通道零 if (this.ComboBoxChannel.Items.Count == 0) { return; } int SelId = m_ChanelIDList[m_InnerQualitySelectIndex]; int m_InnerQualitySubsysindex = Commonfunction.GetSubsysIndex(SelId); //子系统索引 int m_InnerQualityChannelIndex = Commonfunction.GetChannelIndex(SelId); //子系统通道 int dataIndex = m_InnerQualitySubsysindex * ConstPreDefine.MAX_CHANNEL_NUM + m_InnerQualityChannelIndex; this.EditInfoProductID.Text = Commonfunction.ByteArrayToString(temp_SysDevInfoData[dataIndex].ProductID.buf); this.EditInfoProductSerial.Text = Commonfunction.ByteArrayToString(temp_SysDevInfoData[dataIndex].ProductSerial.buf); this.EditInfoSpectoroSerial.Text = System.Text.Encoding.Default.GetString(temp_SysDevInfoData[dataIndex].SpectraSerial.buf); this.EditCcdInfoCoeffA0.Text = string.Format("{0:0.0000000E+00}", temp_SysDevInfoData[dataIndex].unitDblAr.DblArray[0]); this.EditCcdInfoCoeffA1.Text = string.Format("{0:0.0000000E+00}", temp_SysDevInfoData[dataIndex].unitDblAr.DblArray[1]); this.EditCcdInfoCoeffA2.Text = string.Format("{0:0.0000000E+00}", temp_SysDevInfoData[dataIndex].unitDblAr.DblArray[2]); this.EditCcdInfoCoeffA3.Text = string.Format("{0:0.0000000E+00}", temp_SysDevInfoData[dataIndex].unitDblAr.DblArray[3]); this.EditCcdInfoCoeffA4.Text = string.Format("{0:0.0000000E+00}", temp_SysDevInfoData[dataIndex].unitDblAr.DblArray[4]); this.EditCcdInfoCoeffA5.Text = string.Format("{0:0.0000000E+00}", temp_SysDevInfoData[dataIndex].unitDblAr.DblArray[5]); } catch (Exception ex) { Trace.WriteLine("ProjectSetForm-InnerQuality中函数SetFormInfoDisplay出错" + ex); #if REALEASE GlobalDataInterface.WriteErrorInfo("ProjectSetForm-InnerQuality中函数SetFormInfoDisplay出错" + ex); #endif } }