
// WaveformJudgement2Dlg.h : header file
//

#pragma once

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

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

// Dialog Data
	enum { IDD = IDD_WAVEFORMJUDGEMENT2_DIALOG };
	CStatic	m_Status;
	CRichEditCtrl	m_EditData;
	CEdit	m_Info;
	CEdit	m_DeviceName;
	CStatic	m_JudgeCount;

	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 OnBnClickedButtonInfo();
	afx_msg void OnBnClickedButtonStop();
	afx_msg void OnBnClickedButtonExit();
	afx_msg void OnDestroy();

	short	m_Id;						// Device ID
	float	m_Data[MAX_SAMPLES];		// Array of retrieving data
	float	m_UpperData[MAX_SAMPLES];	// Array which the upper bound data for waveform judgment are stored in
	float	m_LowerData[MAX_SAMPLES];	// Array which the lower bound data for waveform judgment are stored in
	short	m_Judge[MAX_SAMPLES];		// Result of waveform judgment
	short	m_JudgeDetail[MAX_SAMPLES];	// Details result of waveform judgment
	long	m_Records;					// Number of retrieved record
};
