⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 daview.h

📁 AD 数据采集卡基本的采集界面
💻 H
字号:
#if !defined(AFX_DAVIEW_H__1B642A43_5DB5_11D4_97F2_B3B7BB652C2B__INCLUDED_)
#define AFX_DAVIEW_H__1B642A43_5DB5_11D4_97F2_B3B7BB652C2B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DAView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDAView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

typedef struct _THREAD_PARA
{
	HANDLE m_hDevice;
	WORD m_pWaveValue[16384];
	WORD m_DigitValue;
	BOOL m_bDeviceRun;
	BOOL m_bConstant;
	int DeviceID;
	int DAChannelNum;
	int m_nWriteDADataPointCount;
} THREAD_PARA, *PTHREAD_PARA;

class CDAView : public CFormView
{
protected:
	CDAView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CDAView)
public:
	void OnDrawPicture(WPARAM wParam,LPARAM lParam);
	CWinThread* m_WriteDAThread0;  // 第0通道子线程句柄
	CWinThread* m_WriteDAThread1;  // 第0通道子线程句柄
	THREAD_PARA m_Para[2];			   // 第0通道子线程参数
	int m_Cycle;					//波形周期
	WORD m_Value;
	HANDLE hDevice;
	int DeviceID;

	BOOL bStart;

	WORD m_WaveValue0[4096];   // 存放波形数据

// Form Data
public:
	//{{AFX_DATA(CDAView)
	enum { IDD = IDD_DIALOG_DA };
	//}}AFX_DATA

// Attributes
public:
// Operations
public:
	void OnCheckWave(int nNum);
	void OnEditValue(int nNum);
	void OnEditCycle(int nNum);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDAView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CDAView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CDAView)
	afx_msg void OnBUTTONStartWriteDA0();
	afx_msg void OnChangeEDITCycle0();
	afx_msg void OnBUTTONStopWriteDA0();
	afx_msg void OnChangeEDITValue0();
	afx_msg void OnPaint();
	afx_msg void OnCHECKWave0();
	afx_msg void OnCHECKWave1();
	afx_msg void OnChangeEDITCycle1();
	afx_msg void OnChangeEDITValue1();
	afx_msg void OnBUTTONStartWriteDA1();
	afx_msg void OnBUTTONStopWriteDA1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DAVIEW_H__1B642A43_5DB5_11D4_97F2_B3B7BB652C2B__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -