コード例 #1
0
 public BanSpectrometer(int numberOfVirtualSpectrometers = 0)
 {
     this.NumberOfVirtualSpectrometers = numberOfVirtualSpectrometers;
     DeviceIndex        = 0;
     MaxCount           = 65000;
     OceanOpticsWrapper = new CCoWrapper();
 }
コード例 #2
0
        public bool connectSpectrometer()
        {
            showStyle            = SpectrumShowStyle;
            spectrometor         = new CCoWrapper();
            numberOfSpectrometer = spectrometor.openAllSpectrometers();
            IsConn = false;
            if (numberOfSpectrometer > 0)
            {
                IsConn      = true;
                wavelengths = spectrometor.getWavelengths(0);
                loadjie();
                // spectrometor.setCorrectForElectricalDark(spectrometerIndex, 1);
                spectrometor.setCorrectForDetectorNonlinearity(spectrometerIndex, 1);
                //oneStepWave = ProcessArray.getOneStepArrayDouble(wavelengths);

                pixelNumber           = wavelengths.Length;
                spectrum              = spectrometor.getSpectrum(0);
                showY                 = spectrum;
                showX                 = wavelengths;
                ShowWavelength_MinMax = new double[] { wavelengths[0], wavelengths[wavelengths.Length - 1] };

                getSpectrum();
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: Niphargusproject/LIBS2018
 public AcquisitionThread(ref CCoWrapper w, int spN)
 {
     this.spectroNumber   = spN;
     this.w               = w;
     this.acquisitionTime = w.getIntegrationTime(this.spectroNumber);
 }