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

📄 6000demodlg.h

📁 NewPort ESP DAQ控制范例(ESP300-6000)
💻 H
字号:
// 6000DemoDlg.h : header file
//
//{{AFX_INCLUDES()
#include "commondialog.h"
//}}AFX_INCLUDES
#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>


#if !defined(AFX_6000DEMODLG_H__B5F1B968_1512_4DD9_9308_E67D9D99BA52__INCLUDED_)
#define AFX_6000DEMODLG_H__B5F1B968_1512_4DD9_9308_E67D9D99BA52__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMy6000DemoDlg dialog

class CMy6000DemoDlg : public CDialog
{
// Construction
public:
	CMy6000DemoDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMy6000DemoDlg)
	enum { IDD = IDD_MY6000DEMO_DIALOG };
	CSliderCtrl	m_ctlSliderTimerValue;
	CSliderCtrl	m_ctlSliderBufferSize;
	CCommonDialog1	m_ctlCommonDialog;
	CString	m_StringErrorString;
	int		m_intTimerValue;
	int		m_intBufferAmount;
	CString	m_StringStatusDisplay;
	int		m_intAxis;
	int		m_intFeedback;
	int		m_intMode;
	int		m_intRate;
	int		m_intSamples;
	int		m_intADCS;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMy6000DemoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL
private:
	long *lDaqData;
	long lNumChannels;
	BOOL FOpen;
	BOOL bTimerEnabled;
	ofstream OutputFile;

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMy6000DemoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonInit();
	afx_msg void OnButtonOpen();
	afx_msg void OnButtonErrors();
	afx_msg void OnButtonSetMode();
	afx_msg void OnButtonDaqEnable();
	afx_msg void OnButtonDaqDisable();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_6000DEMODLG_H__B5F1B968_1512_4DD9_9308_E67D9D99BA52__INCLUDED_)

⌨️ 快捷键说明

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