修复堡盟相机软触发没有图片的问题

newClassify
bobpan 5 years ago
parent 43acfbfba8
commit f662f8aa29

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<ConfigFile VendorName="Baumer" MajorVersion="2" MinorVersion="2" SubMinorVersion="0">
<FileVersion>2.2.0.0</FileVersion>
<Resend>
<Version>1</Version>
<Version1>
<!--Set the maximum number of resend requests per image (default 500)-->
<MaxResendsPerImage>500</MaxResendsPerImage>
<!--Set the maximum number of resend requests per packet (default 3)-->
<MaxResendsPerPacket>3</MaxResendsPerPacket>
<!--Set the number of packets to wait befor sending the first resend requests (default 0)-->
<FirstResendWaitPackets>0</FirstResendWaitPackets>
<!--Set the number of packets to wait befor sending the first resend requests if the camera sends the data over two physical links (default 20)-->
<FirstResendWaitPacketsDualLink>20</FirstResendWaitPacketsDualLink>
<!--Set the time in ms to wait befor sending the first resend requests (default 150)-->
<FirstResendWaitTime>150</FirstResendWaitTime>
<!--Set the number of packets to wait befor sending the next resend requests (default 20)-->
<NextResendWaitPackets>20</NextResendWaitPackets>
<!--Set the number of packets to wait befor sending the next resend requests if the camera sends the data over two physical links (default 20)-->
<NextResendWaitPacketsDualLink>20</NextResendWaitPacketsDualLink>
<!--Set the time in ms to wait befor sending the next resend requests (default 100)-->
<NextResendWaitTime>100</NextResendWaitTime>
</Version1>
</Resend>
<GVCP>
<!--Set Timeout (in ms) and number of retrys for control channel
0 = the pending timeout register of camera is used for control channel timeout (default)
1..60000 = timeout value
-->
<ControlChannelTimeout>0</ControlChannelTimeout>
<!--The number of retries of commands on the control channel before the GigE Producer stops sending any further commands
valid values: 0..4294967295 (0xffffffff)
default value: 3
-->
<ControlChannelRetries>3</ControlChannelRetries>
<!--After a failed command the control channel is locked, that means no further commands were transmitted. This feature controls this locking mechanism.
valid values: 1 - the GigE Producer locks the control channel after a failing command. No further command were transmitted.
0 - the GigE Producer doesn't lock the control channel after a failing command. All further commands were transmitted.
default value: 1
-->
<UseControlChannelLocking>1</UseControlChannelLocking>
<!--Set Timeout(in ms) and number of retrys for asynchron messages from the camera (if supported) -->
<MessageChannelTimeout>100</MessageChannelTimeout>
<MessageChannelRetries>2</MessageChannelRetries>
</GVCP>
<GEV>
<!--Maximum packet size for GigE transmission. This value is used as upper limitation for
automatic MTU (maximum transmission unit) detection. Set this value to 0 the MTU detection
uses the preferred maximum of 9000. The smallest possible value is 576 and the higest value is 16380.
If you set a value outside this range the preferred maximum of 9000 is used. (default 9000)
-->
<DeviceStreamChannelPacketSizeMax>9000</DeviceStreamChannelPacketSizeMax>
<!--
0 means enable automatic MTU (maximum transmission unit) detection. If you specify this value the
MTU detection is disabled and the value DeviceStreamChannelPacketSizeMax is ignored.
The specified value is used directly as packet size.
The smallest possible value is 576 and the higest value is 16380. If you set a value outside the range
the minimum packet size of 576 is used.
-->
<DeviceStreamChannelPacketSizeFix>0</DeviceStreamChannelPacketSizeFix>
</GEV>
<SYSTEM>
<IncreaseThreadPriority>0</IncreaseThreadPriority>
<IncreasePriorityClass>0</IncreasePriorityClass>
</SYSTEM>
</ConfigFile>
<!-- EOF -->

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<ConfigFile VendorName="Baumer" MajorVersion="2" MinorVersion="2" SubMinorVersion="0">
<FileVersion>2.2.0.0</FileVersion>
<U3V>
<!-- image buffer size for USB transmission -->
<U3VImageBufferSize>0x10000</U3VImageBufferSize>
<U3VMaxResponseDefaultTime>500</U3VMaxResponseDefaultTime>
<U3VMaxFifoSize>1024</U3VMaxFifoSize>
</U3V>
<SYSTEM>
<IncreaseThreadPriority>0</IncreaseThreadPriority>
<IncreasePriorityClass>0</IncreasePriorityClass>
</SYSTEM>
</ConfigFile>
<!-- EOF -->

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -17,6 +17,7 @@
#include <QMenu>
#include "saveimgthread.h"
#include "lpGlobalData.h"
#include "qpulpewidget.h"
#define VERSION_HUB "3.0.0.1"
#define VERSION_ALG "3.0.0.1"
#define UPDATE_TIME "2021-02-20"
@ -215,16 +216,13 @@ lpMainWin::lpMainWin(QWidget *parent)
SendTiskTsk->start();
}
if (DetectState::instance()->m_StartAndDetect == 1)//m_sysType 表示万丰科技的
//if (DetectState::instance()->m_StartAndDetect == 1)//m_sysType 表示万丰科技的
{
// m_timerDetect.setSingleShot(true);
// connect(&m_timerDetect, SIGNAL(timeout()), m_pUi, SLOT(onStartDetect()));
// m_timerDetect.start(5000);
//QTimer::singleShot(1000, m_pUi, SLOT(onStartDetect()));
// QTimer::singleShot(3000, [&](){
// m_pState->bLockDetect = true;
// m_pCtrl->onStart();
// });
QTimer::singleShot(3000, [&](){
ui.btn_start_detect->setText(tr("停止检测"));
DetectState::instance()->IsDetect = true;
m_pCtrl->onStart();
});
}
if (DetectState::instance()->m_AutoSendTick2COM)
m_wfPulseTimer.start(1000);
@ -1208,13 +1206,13 @@ Q_SLOT void lpMainWin::onGetImg()
//展示信息
Q_SLOT void lpMainWin::onShowMsg(QString str)
{
// QPulpewidget *pw = new QPulpewidget();
QPulpewidget *pw = new QPulpewidget();
// m_pw = pw;
// QMainWindow *m_pDlgMain = nullptr;// GET_WIDGET_POINTER("MainWindow", QMainWindow);
// pw->setParent(m_pDlgMain);
// pw->showmessage(str);
// connect(pw, SIGNAL(finished()), pw, SLOT(deleteLater()));
// connect(pw, SIGNAL(finished()), this, SLOT(onInitPW()));
pw->setParent(this);
pw->showmessage(str);
connect(pw, SIGNAL(finished()), pw, SLOT(deleteLater()));
connect(pw, SIGNAL(finished()), this, SLOT(onInitPW()));
}
Q_SLOT void lpMainWin::onSendDisLib(int nIndex, QString strModel)

Loading…
Cancel
Save