|
|
@ -1972,7 +1972,6 @@ void Cigarette::on_pushButton_clear_released()//
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//flag = false;
|
|
|
|
//flag = false;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
//·¢ËÍ»»°àÏûÏ¢¸øPLC
|
|
|
|
//·¢ËÍ»»°àÏûÏ¢¸øPLC
|
|
|
|
if (g_modbus_conf.shift > 0)
|
|
|
|
if (g_modbus_conf.shift > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -3356,6 +3355,7 @@ void Cigarette::EnumerateCameras(SingleCamInfoStruct *TempSingleCamInfoStruct,bo
|
|
|
|
for (int i = 0; i < min(unfiltered, NumberOfSupportedCameras); i++)
|
|
|
|
for (int i = 0; i < min(unfiltered, NumberOfSupportedCameras); i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Device* pDev = BalluffCamera::devMgr[i];
|
|
|
|
Device* pDev = BalluffCamera::devMgr[i];
|
|
|
|
|
|
|
|
if (!pDev->isInUse()) {
|
|
|
|
std::string manufacture = pDev->manufacturer.read();
|
|
|
|
std::string manufacture = pDev->manufacturer.read();
|
|
|
|
if (showinfo)std::cout << "Camera:" << i << ",vendor = " << manufacture << std::endl;
|
|
|
|
if (showinfo)std::cout << "Camera:" << i << ",vendor = " << manufacture << std::endl;
|
|
|
|
transform(manufacture.begin(), manufacture.end(), manufacture.begin(), ::toupper);
|
|
|
|
transform(manufacture.begin(), manufacture.end(), manufacture.begin(), ::toupper);
|
|
|
@ -3376,6 +3376,7 @@ void Cigarette::EnumerateCameras(SingleCamInfoStruct *TempSingleCamInfoStruct,bo
|
|
|
|
balluff_cnt++;
|
|
|
|
balluff_cnt++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (showinfo) {
|
|
|
|
if (showinfo) {
|
|
|
|
std::cout << "Camera Count:\t" << TempSingleCamInfo.size() << std::endl;
|
|
|
|
std::cout << "Camera Count:\t" << TempSingleCamInfo.size() << std::endl;
|
|
|
@ -3555,9 +3556,10 @@ void Cigarette::record_output_statistic(qint64 quantity, int Kick[NumberOfSuppor
|
|
|
|
memset(buf, 0, 256);
|
|
|
|
memset(buf, 0, 256);
|
|
|
|
sprintf(buf, "\n\n**************************************************************************************\n");
|
|
|
|
sprintf(buf, "\n\n**************************************************************************************\n");
|
|
|
|
cfg_file.write(buf, strlen(buf));
|
|
|
|
cfg_file.write(buf, strlen(buf));
|
|
|
|
QDate date = QDate::currentDate();
|
|
|
|
//QDate date = QDate::currentDate();
|
|
|
|
|
|
|
|
QDateTime date = QDateTime::currentDateTime();
|
|
|
|
memset(buf, 0, 256);
|
|
|
|
memset(buf, 0, 256);
|
|
|
|
sprintf(buf, "%s:\n", date.toString("yyyy-MM-dd ").toStdString().c_str());
|
|
|
|
sprintf(buf, "%s:\n", date.toString("yyyy-MM-dd_HH-mm-ss").toStdString().c_str());
|
|
|
|
cfg_file.write(buf, strlen(buf));
|
|
|
|
cfg_file.write(buf, strlen(buf));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
memset(buf, 0, 256);
|
|
|
|
memset(buf, 0, 256);
|
|
|
|