
// LoadConfigDlg.h : header file
//

#pragma once

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

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

// Dialog Data
	enum { IDD = IDD_LOADCONFIG_DIALOG };
	CStatic	m_Status;
	CEdit	m_Info;
	CEdit	m_DeviceInfo;
	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 OnBnClickedButtonLoad();
	afx_msg void OnBnClickedButtonStart();
	afx_msg void OnBnClickedButtonInfo();
	afx_msg void OnBnClickedButtonStop();
	afx_msg void OnBnClickedButtonExit();
	afx_msg void OnDestroy();
	afx_msg void OnClose();

	void DrawGraph();					// Draw graph function

	short	m_Id;						// Device ID
	float	m_Data[MAX_SAMPLES];		// Array of retrieving data
	long	m_Records;					// Number of retrieved record
	float	m_Range;					// Input voltage range
	long	m_RecordLength;				// Record length
	short	m_TriggerChannel;			// Post-trigger channel
	short	m_Channels;					// Number of effective channels
};
