
// OscilloScopeDlg.h : header file
//

#pragma once


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

// Dialog Data
	enum { IDD = IDD_OSCILLOSCOPE_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 OnBnClickedButtonAutoSetup();
	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;						// 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
};
