|
|
|
|
|
#pragma once
|
|
|
|
|
|
//#include "GlobalDefine.h"
|
|
|
|
|
|
#include "layserDefine.h"
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
#include <thread>
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
#include <iomanip>
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
#include "Pci365CardMgr.h"
|
|
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
|
|
class CLaipuVbDllMgr;
|
|
|
|
|
|
//<2F><>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
class _declspec(dllexport) CMarkCtrl
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CMarkCtrl(void);
|
|
|
|
|
|
~CMarkCtrl(void);
|
|
|
|
|
|
void StartMarkPci(vector<vector<Dbxy2>> &vec);
|
|
|
|
|
|
void StartMarkSemiVb(vector<vector<Dbxy2>> &DataVec);
|
|
|
|
|
|
void MarkPciThreadExt();
|
|
|
|
|
|
void MarkPciSemiThread();
|
|
|
|
|
|
void SetConfigMarkParam(double su,
|
|
|
|
|
|
float ms,
|
|
|
|
|
|
float mms,
|
|
|
|
|
|
long tcf,
|
|
|
|
|
|
long tch,
|
|
|
|
|
|
long tof,
|
|
|
|
|
|
long toh,
|
|
|
|
|
|
long dr_time,
|
|
|
|
|
|
float laserfre,
|
|
|
|
|
|
float laserpower,
|
|
|
|
|
|
float maxlaserpower);
|
|
|
|
|
|
std::thread& GetThreadObj() {return m_markThread;}
|
|
|
|
|
|
|
|
|
|
|
|
void OpenLaser(bool isOpen);
|
|
|
|
|
|
private:
|
|
|
|
|
|
void SetMarkParam(CLaipuVbDllMgr &LaipuVbDll);
|
|
|
|
|
|
private:
|
|
|
|
|
|
bool m_bMarkPciThreadRunning;//mark <20>߳<EFBFBD><DFB3>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>
|
|
|
|
|
|
vector<vector<Dbxy2>> *pData;
|
|
|
|
|
|
|
|
|
|
|
|
std::thread m_markThread;
|
|
|
|
|
|
|
|
|
|
|
|
double m_su = 1.170;//<2F><EFBFBD><F1BEB5B2><EFBFBD>um
|
|
|
|
|
|
float m_ms = 100;//<2F><><EFBFBD><EFBFBD><EFBFBD>ٶ<EFBFBD>mm/s
|
|
|
|
|
|
float m_mms = 500;//<2F><><EFBFBD><EFBFBD><EFBFBD>ٶ<EFBFBD>mm/s
|
|
|
|
|
|
long m_tcf = 1;//<2F>ؼ<EFBFBD><D8BC><EFBFBD>ǰ<EFBFBD><C7B0>ʱus
|
|
|
|
|
|
long m_tch = 341;//<2F>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱus
|
|
|
|
|
|
long m_tof = 341;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0>ʱus
|
|
|
|
|
|
long m_toh = 1;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱus
|
|
|
|
|
|
long m_dr_time = 30;//<2F>յ<EFBFBD><D5B5><EFBFBD>ʱ us
|
|
|
|
|
|
float m_laserfre = 30;//<2F><><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5>khz
|
|
|
|
|
|
float m_laserpower = 10;//<2F><><EFBFBD><EFBFBD><E2B9A6>
|
|
|
|
|
|
float m_maxlaserpower = 100;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
vector<vector<Dbxy2>> m_backMarkData;
|
|
|
|
|
|
|
|
|
|
|
|
std::shared_ptr<CLaipuVbDllMgr> laipuVbDLLPtr;
|
|
|
|
|
|
public:
|
|
|
|
|
|
int m_markTimes = 1;//<2F>ӹ<EFBFBD><D3B9><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
int m_pauseDelay;
|
|
|
|
|
|
int m_pauseFirstDelay;
|
|
|
|
|
|
};
|