在服务器上第一次调试

This commit is contained in:
2021-12-03 12:55:05 +08:00
parent 8d73aba000
commit bebef6bef6
24 changed files with 2040 additions and 8 deletions

View File

@ -0,0 +1,63 @@
#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 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
// 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;
;
};