87 lines
1.7 KiB
C++
87 lines
1.7 KiB
C++
#ifndef IPGLASER_H
|
|
#define IPGLASER_H
|
|
#include "SerialPort.h"
|
|
|
|
|
|
#define IPGLASER IPGLaser::instance()
|
|
class IPGLaser:public Comm
|
|
{
|
|
private:
|
|
char revData[4096];
|
|
int revDataLen;
|
|
|
|
|
|
static IPGLaser* uniqueInstance;
|
|
|
|
public:
|
|
int UpdateIPGPara();
|
|
|
|
QString PP_Enable;
|
|
|
|
QString Power1;
|
|
QString Prepump1;
|
|
QString PulseDuration1;
|
|
QString PulseRepetition1;
|
|
double dstPower1;
|
|
QString Power1_set;
|
|
|
|
QString Power2;
|
|
QString Prepump2;
|
|
QString PulseDuration2;
|
|
QString PulseRepetition2;
|
|
double dstPower2;
|
|
QString Power2_set;
|
|
|
|
|
|
QString Power3;
|
|
QString Prepump3;
|
|
QString PulseDuration3;
|
|
QString PulseRepetition3;
|
|
double dstPower3;
|
|
|
|
QString Power4;
|
|
QString Prepump4;
|
|
QString PulseDuration4;
|
|
QString PulseRepetition4;
|
|
double dstPower4;
|
|
|
|
QString Power5;
|
|
QString Prepump5;
|
|
QString PulseDuration5;
|
|
QString PulseRepetition5;
|
|
double dstPower5;
|
|
|
|
QString Power6;
|
|
QString Prepump6;
|
|
QString PulseDuration6;
|
|
QString PulseRepetition6;
|
|
double dstPower6;
|
|
|
|
QString Power7;
|
|
QString Prepump7;
|
|
QString PulseDuration7;
|
|
QString PulseRepetition7;
|
|
double dstPower7;
|
|
|
|
QString Power8;
|
|
QString Prepump8;
|
|
QString PulseDuration8;
|
|
QString PulseRepetition8;
|
|
double dstPower8;
|
|
|
|
|
|
static IPGLaser* instance();
|
|
IPGLaser();
|
|
~IPGLaser();
|
|
int SetSingleParam(QString strCmd,QString Strvalue);
|
|
int SetParam(int index);
|
|
int GetLaserSts();
|
|
int LaserOpen();
|
|
int LaserClose();
|
|
int SwitchMode(bool flag);
|
|
int getIPGLaerPara(QString DevName);
|
|
QString getValueFromList(QString strDecode,QString strName);
|
|
// int SendCmd(char *data, unsigned short data_len ,unsigned char * revData, int * revData_len);
|
|
};
|
|
#endif
|