﻿
// CollectionConditionsDlg.h : ヘッダー ファイル
//

#pragma once

//----------------------------------------------------------------------------------------------
//	入出力レンジ																				
//----------------------------------------------------------------------------------------------
//#define	PM10						0	//±10V
//#define	PM5							1	//±5V
//#define	PM25						2	//±2.5V
//#define	PM125						3	//±1.25V
//#define	PM1							4	//±1V
//#define	PM0625						5	//±0.625V
//#define	PM05						6	//±0.5V
//#define	PM03125						7	//±0.3125V
//#define	PM025						8	//±0.25V
//#define	PM0125						9	//±0.125V
//#define	PM01						10	//±0.1V
//#define	PM005						11	//±0.05V
//#define	PM0025						12	//±0.025V
//#define	PM00125						13	//±0.0125V
//#define	PM001						14	//±0.01V
//#define	P10							50	//0～10V
//#define	P5							51	//0～5V
//#define	P4095						52	//0～4.095V
//#define	P25							53	//0～2.5V
//#define	P125						54	//0～1.25V
//#define	P1							55	//0～1V
//#define	P05							56	//0～0.5V
//#define	P025						57	//0～0.25V
//#define	P01							58	//0～0.1V
//#define	P005						59	//0～0.05V
//#define	P0025						60	//0～0.025V
//#define	P00125						61	//0～0.0125V
//#define	P001						62	//0～0.01V
//#define	P20MA						100	//0～20mA
//#define	P4TO20MA					101	//4～20mA
//#define PM20MA						102 //±20mA
//#define	P1TO5						150	//1～5V

// CCollectionConditionsDlg ダイアログ
class CCollectionConditionsDlg : public CDialogEx
{
// コンストラクション
public:
	CCollectionConditionsDlg(CWnd* pParent = nullptr);	// 標準コンストラクター

// ダイアログ データ
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_COLLECTIONCONDITIONS_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV サポート


// 実装
protected:
	HICON m_hIcon;

	// 生成された、メッセージ割り当て関数
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButtonLoggeropenapplication();
	afx_msg void OnBnClickedButtonLoggersetdevicename();
	afx_msg void OnBnClickedButtonLoggergetdevicename();
	afx_msg void OnBnClickedButtonChannel();
	afx_msg void OnBnClickedButtonClock();
	afx_msg void OnBnClickedButtonLoggersetmemoryoption();
	afx_msg void OnBnClickedButtonLoggersetautosave();
	afx_msg void OnBnClickedButtonLoggerexportsettingfile();
	afx_msg void OnBnClickedButtonLoggerimportsettingfile();
	afx_msg void OnBnClickedButtonLoggerstartoperation();
	afx_msg void OnBnClickedButtonLoggergetapplicationstatus();
	afx_msg void OnBnClickedButtonLoggerstopoperation();
	afx_msg void OnBnClickedButtonLoggercloseapplication();
	afx_msg void OnBnClickedCclose();
	CComboBox m_combo_filetype;
	CComboBox m_combo_openmode;
	CEdit m_edit_devicename;
	CEdit m_edit_memorysize;
	CEdit m_edit_returnnum;
	CEdit m_edit_status;
	CMFCEditBrowseCtrl m_edit_datafile;
	CMFCEditBrowseCtrl m_edit_importfile;
	CEdit m_edit_samplingcount;
	static long _stdcall CallBackProc(short Id, long AiEvent, WPARAM wParam, LPARAM lParam, void *Param);
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	UINT_PTR m_TimerID;
};
