public BanSpectrometer(int numberOfVirtualSpectrometers = 0) { this.NumberOfVirtualSpectrometers = numberOfVirtualSpectrometers; DeviceIndex = 0; MaxCount = 65000; OceanOpticsWrapper = new CCoWrapper(); }
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); } }
public AcquisitionThread(ref CCoWrapper w, int spN) { this.spectroNumber = spN; this.w = w; this.acquisitionTime = w.getIntegrationTime(this.spectroNumber); }