Пример #1
0
        public void GetParamtersFromDevice(int idx)
        {
            switch (SpecList[idx].specType)
            {
            case SpectType.Avantes:
                AvantesObj.GetParamters(SpecList[idx].Idx, ref SpecList[idx].StartPixel, ref SpecList[idx].EndPixel,
                                        ref SpecList[idx].IntegrationTime, ref SpecList[idx].NumOfAvg, ref SpecList[idx].SmoothingPixel);
                break;

            case SpectType.Maya:
                MayaObj.GetParamters(SpecList[idx].Idx, ref SpecList[idx].StartPixel, ref SpecList[idx].EndPixel,
                                     ref SpecList[idx].IntegrationTime, ref SpecList[idx].NumOfAvg, ref SpecList[idx].SmoothingPixel);
                break;

            case SpectType.CAS140:
                CASObj.GetParamters(SpecList[idx].Idx, ref SpecList[idx].StartPixel, ref SpecList[idx].EndPixel,
                                    ref SpecList[idx].IntegrationTime, ref SpecList[idx].NumOfAvg, ref SpecList[idx].SmoothingPixel);
                break;
            }
        }