mirror of
				http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
				synced 2025-10-25 13:59:44 +08:00 
			
		
		
		
	
		
			
	
	
		
			50 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			50 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
|  | #pragma once
 | ||
|  | #include <qthread.h>
 | ||
|  | //#include <QFileDialog>
 | ||
|  | #include <QDateTime> 
 | ||
|  | 
 | ||
|  | #include <iostream>
 | ||
|  | #include <fstream>
 | ||
|  | 
 | ||
|  | #include "library.h"
 | ||
|  | #include "FiberSpectrometerOperationBase.h"
 | ||
|  | 
 | ||
|  | class OceanOpticsFiberImager :public QObject,public FiberSpectrometerOperationBase | ||
|  | { | ||
|  | 	Q_OBJECT | ||
|  | 
 | ||
|  | public: | ||
|  | 	OceanOpticsFiberImager(); | ||
|  | 	~OceanOpticsFiberImager(); | ||
|  | 
 | ||
|  | 	OceanOptics_lib * m_FiberSpectrometer; | ||
|  | 
 | ||
|  | 	void connectFiberSpectrometer(QString& sn, QString& pixelCount, QString& wavelengthInfo); | ||
|  | 	void disconnectFiberSpectrometer(); | ||
|  | 	void getDeviceAttribute(DeviceAttribute& deviceAttribute); | ||
|  | 	void getDeviceInfo(DeviceInfo& deviceInfo); | ||
|  | 
 | ||
|  | 	void setExposureTime(int iExposureTimeInMS); | ||
|  | 
 | ||
|  | 	void getExposureTime(int &iExposureTimeInMS);//ok
 | ||
|  | 	void getDeviceTemperature(float &fTemperature);//ok
 | ||
|  | 	 | ||
|  | 	void singleShot(DataFrame &dfData); | ||
|  | 
 | ||
|  |     ZZ_S32 GetMaxValue(ZZ_S32 * dark, int number); | ||
|  | 
 | ||
|  | //	DataFrame m_IntegratingSphereData;
 | ||
|  | //	DataFrame m_DarkData;
 | ||
|  | protected: | ||
|  | private: | ||
|  | 	 | ||
|  | //	ZZ_U32 m_MaxValueOfFiberSpectrometer;
 | ||
|  | 
 | ||
|  | public slots: | ||
|  | 	void recordDark(QString path); | ||
|  | 	void recordTarget(int recordTimes, QString path); | ||
|  | 	void autoExpose(); | ||
|  | 
 | ||
|  | signals: | ||
|  | 	void sendExposureTimeSignal(int exposureTime); | ||
|  | }; |