⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 set5view.h

📁 一套故障诊断监测系统
💻 H
字号:
// Set5View.h : interface of the CSet5View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SET5VIEW_H__DF8A6F06_4D2C_4483_9C08_1B3158227BCB__INCLUDED_)
#define AFX_SET5VIEW_H__DF8A6F06_4D2C_4483_9C08_1B3158227BCB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "MainFrm.h"
#include "Set5Doc.h"
#include "Label.h"
#include "CaculateView.h"

class CSet5View : public CFormView
{
protected: // create from serialization only
	CSet5View();
	DECLARE_DYNCREATE(CSet5View)

public:
	//{{AFX_DATA(CSet5View)
	enum { IDD = IDD_SET5 };
	CLabel	m_cMP9;
	CLabel	m_cMP12;
	CLabel	m_cMP8;
	CLabel	m_cMP7;
	CLabel	m_cMP6;
	CLabel	m_cMP11;
	CLabel	m_cMP10;
	CLabel	m_cMP5;
	CLabel	m_cMP4;
	CLabel	m_cMP3;
	CLabel	m_cMP2;
	CLabel	m_cMP1;
	//}}AFX_DATA

// Attributes
public:
	CSet5Doc* GetDocument();

// Operations
public:



	BOOL m_bStart;
	void SetStaticValue();
	void DecideAlarmStatus(int i);
	void SetBackColor(int i);
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSet5View)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
public:
	int m_nSampleFrenquence;	//采样频率
	double m_dRPM;			//机组转速,转/分

	void InitCobArray();


	void DrawTimeDomainWave();	//画时域波形
//	void DrawHistoGram();		//画柱状图
	void DrawNarrowbandAlarm();	//画窄带报警
	void DrawTrendCurve();		//画趋势曲线
	void DrawLeftAxesTrack();	//画左轴心轨迹
	void DrawRightAxesTrack();	//画右轴心轨迹
	void SaveTrendData();

	virtual ~CSet5View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	double m_nData[12][1024];
	//--------特征数据--------//
	double m_dCharacterValue[12];	//位移传感器:峰峰值,加速度传感器:真峰值(绝对值最大的)
	double m_dChaValArray[12][3600];	//特征值数组
	int m_nChaDataTimer;		//特征数据计数器
	//--------特征数据--------//
	CMainFrame* m_pMainFrame;	//主框架指针
	CCaculateView m_calculate;	//算法成员变量
	int m_nCount;				//视图循环计数器
	CObArray m_staticArray;		//静态控件数组	

	int m_nCurMP;				//当前显示的测点

// Generated message map functions
protected:
	//{{AFX_MSG(CSet5View)
	afx_msg void OnPaint();
	afx_msg void OnDestroy();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in Set5View.cpp
inline CSet5Doc* CSet5View::GetDocument()
   { return (CSet5Doc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SET5VIEW_H__DF8A6F06_4D2C_4483_9C08_1B3158227BCB__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -