You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
#pragma once
|
|
#include "GlobalDefine.h"
|
|
#include "module.h"
|
|
#include "CommPortMgr.h"
|
|
|
|
//红光激光器
|
|
class CLaserDeviceRed:public CModule
|
|
{
|
|
public:
|
|
CLaserDeviceRed(void);
|
|
virtual ~CLaserDeviceRed(void);
|
|
virtual MODULE GetModuleType(){return _LASER_RED_DEVICE_PROP;};
|
|
virtual CString GetParDirName(){return "LaserDeviceRed";};
|
|
virtual void ReadLaserDeviceState(){};
|
|
virtual bool IsLddOn(){return false;};
|
|
virtual void OperateLdd(bool bOpen){};
|
|
virtual bool SetParToDevice(){return true;};
|
|
virtual bool SetSpotMeterMaxCurr();//设置电流值为CCD 观察的限定值
|
|
virtual void OpenSetParDlg(){};//打开设置参数的对话框
|
|
virtual void CtrlLaserGate(bool bOn){};//特殊控制激光gate 的功能
|
|
|
|
double GetSpotMeterMaxCurr(){return m_SpotMeterMaxCurr;};
|
|
int GetGateOpenDelay(){return m_GateOpenDelay;};
|
|
private:
|
|
|
|
protected:
|
|
int m_ComPort;//串口号
|
|
int m_ComBaudReate;//串口波特率
|
|
int m_ComPortDelay;//串口延时ms
|
|
int m_bCommErrorTimes;//通信异常次数(累计多次才算异常)
|
|
|
|
double m_SpotMeterMaxCurr;//在光束分析仪观察时最大的电流值
|
|
int m_GateOpenDelay;//红光gate 打开延时ms
|
|
bool m_PusleMode;//true 脉冲模式,false 连续模式
|
|
|
|
};
|
|
|
|
extern CLaserDeviceRed *gLaserDeviceRed; |