串口温度数据采集系统并实时显示曲线


这是一个串口温度采集系统,能够正确的读出串口传来的数据,并且可以根据数据来动态绘制曲线
资源截图
代码片段和文件信息
// comm.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “comm.h“
#include “commDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCommApp

BEGIN_MESSAGE_MAP(CCommApp CWinApp)
//{{AFX_MSG_MAP(CCommApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCommApp construction

CCommApp::CCommApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CCommApp object

CCommApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CCommApp initialization

BOOL CCommApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

CCommDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-04-28 11:35  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示
     文件       60611  2005-05-28 10:45  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示pic.JPG
     文件         154  2004-05-07 20:25  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示
eadme.txt
     目录           0  2011-05-04 20:15  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示src
     文件       39736  2011-05-04 11:11  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srccomm.aps
     文件        2904  2011-05-04 11:14  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srccomm.clw
     文件        2033  2004-04-30 08:18  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srccomm.cpp
     文件        4589  2011-05-04 20:15  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srccomm.dsp
     文件         577  2000-03-17 09:20  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srccomm.dsw
     文件      127121  2011-04-28 16:33  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srccomm.exe
     文件        1302  2000-03-17 08:54  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srccomm.h
     文件      287744  2011-05-04 20:15  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srccomm.ncb
     文件       51712  2011-05-04 20:15  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srccomm.opt
     文件        1882  2011-05-04 11:11  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srccomm.plg
     文件        9326  2011-05-04 11:11  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srccomm.rc
     文件       14854  2011-05-04 11:11  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srccommDlg.cpp
     文件        2048  2011-04-28 15:19  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srccommDlg.h
     目录           0  2011-05-04 11:11  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcDebug
     文件      131217  2011-05-04 11:11  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcDebugcomm.exe
     文件      299852  2011-05-04 11:11  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcDebugcomm.ilk
     文件       16678  2011-04-28 15:20  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcDebugcomm.obj
     文件     5489372  2011-04-28 15:20  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcDebugcomm.pch
     文件      451584  2011-05-04 11:11  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcDebugcomm.pdb
     文件        4440  2011-05-04 11:11  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcDebugcomm.res
     文件       76132  2011-05-04 11:11  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcDebugcommDlg.obj
     文件       18274  2011-05-04 10:08  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcDebugFDialog.obj
     文件       48425  2011-04-28 15:20  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcDebugmscomm.obj
     文件      106330  2011-04-28 15:20  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcDebugStdAfx.obj
     文件      205824  2011-05-04 11:11  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcDebugvc60.idb
     文件      364544  2011-05-04 11:11  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcDebugvc60.pdb
     文件        1530  2011-05-04 10:08  串口温度数据采集并实时显示(能正确显示数字)串口温度数据采集并实时显示srcFDialog.cpp
............此处省略18个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)