
// WaveformJudgement1Dlg.h : header file
//

#pragma once

//--------------------------------------
// The definition of the maximum number of acquiring samples  : 512
//--------------------------------------
#define	MAX_SAMPLES		512

// CWaveformJudgement1Dlg dialog
class CWaveformJudgement1Dlg : public CDialogEx
{
// Construction
public:
	CWaveformJudgement1Dlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_WAVEFORMJUDGEMENT1_DIALOG };
	CStatic	m_Status;
	CStatic	m_NGCount;
	CEdit	m_Info;
	CEdit	m_DeviceName;

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButtonInit();
	afx_msg void OnBnClickedButtonSetting();
	afx_msg void OnBnClickedButtonStart();
	afx_msg void OnBnClickedButtonStatus();
	afx_msg void OnBnClickedButtonStop();
	afx_msg void OnBnClickedButtonExit();

	void DrawGraph();					// Draw graph function

	short	m_Id;						// Device ID
	long	m_Data[MAX_SAMPLES];		// Array of retrieving data
	long	m_UpperData[MAX_SAMPLES];	// Array which the upper bound data for waveform judgment are stored in
	long	m_LowerData[MAX_SAMPLES];	// Array which the lower bound data for waveform judgment are stored in
	long	m_Records;					// Number of retrieved record
	long	m_Resolution;				// Resolution of device
};
