mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-18 19:39:43 +08:00
64 lines
1.5 KiB
C++
64 lines
1.5 KiB
C++
#pragma once
|
|
#pragma execution_character_set("utf-8")
|
|
#include "SensorBase.h"
|
|
enum EMQEType
|
|
{
|
|
QEPRO_QE=1,
|
|
QE65PRO_QE=2,
|
|
USB2000PLUS_QE =3,
|
|
QE65000_QE = 4,
|
|
NONQE=-1
|
|
};
|
|
class SensorQExPRO : public SensorBase
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SensorQExPRO(EMQEType qetype);
|
|
~SensorQExPRO();
|
|
bool initSensor(int id=0);
|
|
void Settingshuttertime(float msc);
|
|
//************************************
|
|
// Method: SettingTemprature ÉèÖÃζÈ
|
|
// FullName: SensorBase::SettingTemprature
|
|
// Access: virtual public
|
|
// Returns: void
|
|
// Qualifier:
|
|
// Parameter: float temp
|
|
//************************************
|
|
void SettingTemprature(float temp);
|
|
STRSensorInfo GetSensorInfo() ;
|
|
void SettingShutterOpen(bool isopen);
|
|
//************************************
|
|
// Method: SettingSwitchShutter skyΪright
|
|
// FullName: SensorQExPRO::SettingSwitchShutter
|
|
// Access: public
|
|
// Returns: void
|
|
// Qualifier:
|
|
// Parameter: bool isright skyΪright
|
|
//************************************
|
|
void SettingSwitchShutter(bool isright);
|
|
void GetOnePlot(STROnePlot &OnePlot, bool Dark=false);
|
|
float GettingTempratrue();
|
|
void CloseSensor();
|
|
void GetOneDark(STROnePlot &darkplot);
|
|
EMQEType QEType;
|
|
private:
|
|
|
|
long *Device_ids;
|
|
long DeviceId;
|
|
int ERR = 0;
|
|
int FLAG = 0;
|
|
unsigned char *OutputMod, *Shuteroncom, *Shuteroffcom;
|
|
long Numberoftempratrue;
|
|
long *TemPratrueId;
|
|
long *SpecMetersId;
|
|
EMQEType getEMUbyQstring(QString str);
|
|
|
|
void SetQEProShutter(bool isopen);
|
|
float shuttertime;
|
|
;
|
|
|
|
|
|
};
|