添加linux 打开标定程序
This commit is contained in:
parent
edc5e4d793
commit
894a563ff8
@ -566,7 +566,12 @@ void MainWindow::leftConfigClick4()
|
||||
pOtherConfig = NULL;
|
||||
}
|
||||
QProcess process(this);
|
||||
#ifdef Q_OS_WIN32
|
||||
process.startDetached(".\\Calibration\\NARI3500Calibration.exe");
|
||||
#endif
|
||||
#ifdef Q_OS_LINUX
|
||||
process.startDetached("./Calibration/NARI3500Calibration");
|
||||
#endif
|
||||
}else if(name == "其他配置"){
|
||||
|
||||
if(pDIOBoard){
|
||||
|
||||
@ -1159,6 +1159,7 @@ void CRealTimeForm::UpdateCharacteristic(QVector<_Charateristic> &m_vecCharateri
|
||||
}
|
||||
}
|
||||
sigRPM(RPM);
|
||||
m_RPM = RPM;
|
||||
pGraphicTextItem->setPlainText(str);
|
||||
}
|
||||
}
|
||||
@ -1275,7 +1276,7 @@ void CRealTimeForm::disConnect() {
|
||||
QString str = strTrgStatus + "," + strWCStatus + "," + strinvalid_ch;
|
||||
sigWCStatus(str);
|
||||
sigDOStatus(arrayValueDIs, arrayValueDOs);
|
||||
if (strWCStatus.contains("停机")) {
|
||||
if (m_RPM.toDouble() < 5) {
|
||||
if (m_MachineStatus == 1) {
|
||||
LoadGraphicsConfig(2);
|
||||
}
|
||||
@ -1286,6 +1287,17 @@ void CRealTimeForm::disConnect() {
|
||||
}
|
||||
m_MachineStatus = 1;
|
||||
}
|
||||
// if (strWCStatus.contains("停机")) {
|
||||
// if (m_MachineStatus == 1) {
|
||||
// LoadGraphicsConfig(2);
|
||||
// }
|
||||
// m_MachineStatus = 0;
|
||||
// } else {
|
||||
// if (m_MachineStatus == 0) {
|
||||
// LoadGraphicsConfig(0);
|
||||
// }
|
||||
// m_MachineStatus = 1;
|
||||
// }
|
||||
}
|
||||
}
|
||||
m_arrayReady = "";
|
||||
|
||||
@ -169,6 +169,7 @@ private:
|
||||
|
||||
NetMgr *m_pNetMgr; //HTTP消息类对象
|
||||
QVector<_Charateristic> m_vecCharateristic;
|
||||
QString m_RPM;
|
||||
//重写定时器的事件 虚函数 子类重写父类的虚函数
|
||||
virtual void timerEvent(QTimerEvent *);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user