资源简介
利用NI的GPIB-USB-HS控制FLUKE8508A,显示加载gpib-32.dll,调用其中的函数控制FLUKE8508A(也可是其他仪器,按说明书更改指令即可),使用前需要安装NI的硬件驱动。
代码片段和文件信息
// Gpib_8508A.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Gpib_8508A.h“
#include “Gpib_8508ADlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGpib_8508AApp
BEGIN_MESSAGE_MAP(CGpib_8508AApp CWinApp)
//{{AFX_MSG_MAP(CGpib_8508AApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CGpib_8508AApp construction
CGpib_8508AApp::CGpib_8508AApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CGpib_8508AApp object
CGpib_8508AApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CGpib_8508AApp initialization
BOOL CGpib_8508AApp::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
CGpib_8508ADlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 110686 2011-06-11 12:52 Gpib_8508A\Debug\Gpib_8508A.exe
文件 237920 2011-06-11 12:52 Gpib_8508A\Debug\Gpib_8508A.ilk
文件 14176 2011-06-11 12:52 Gpib_8508A\Debug\Gpib_8508A.obj
文件 5502316 2011-06-11 12:13 Gpib_8508A\Debug\Gpib_8508A.pch
文件 386048 2011-06-11 12:52 Gpib_8508A\Debug\Gpib_8508A.pdb
文件 2956 2011-06-11 12:52 Gpib_8508A\Debug\Gpib_8508A.res
文件 39673 2011-06-11 12:52 Gpib_8508A\Debug\Gpib_8508ADlg.obj
文件 105798 2011-06-11 12:13 Gpib_8508A\Debug\StdAfx.obj
文件 205824 2011-06-11 12:52 Gpib_8508A\Debug\vc60.idb
文件 364544 2011-06-11 12:52 Gpib_8508A\Debug\vc60.pdb
文件 66624 2008-09-04 18:05 Gpib_8508A\gpib-32.dll
文件 36296 2011-06-11 12:52 Gpib_8508A\Gpib_8508A.aps
文件 1557 2011-06-11 12:53 Gpib_8508A\Gpib_8508A.clw
文件 2119 2011-06-11 12:12 Gpib_8508A\Gpib_8508A.cpp
文件 4231 2011-06-11 12:12 Gpib_8508A\Gpib_8508A.dsp
文件 528 2011-06-11 12:38 Gpib_8508A\Gpib_8508A.dsw
文件 1368 2011-06-11 12:12 Gpib_8508A\Gpib_8508A.h
文件 41984 2011-06-11 12:53 Gpib_8508A\Gpib_8508A.ncb
文件 48640 2011-06-11 12:53 Gpib_8508A\Gpib_8508A.opt
文件 1158 2011-06-11 12:52 Gpib_8508A\Gpib_8508A.plg
文件 6031 2011-06-11 12:52 Gpib_8508A\Gpib_8508A.rc
文件 11897 2011-06-11 12:52 Gpib_8508A\Gpib_8508ADlg.cpp
文件 1508 2011-06-11 12:52 Gpib_8508A\Gpib_8508ADlg.h
文件 15616 2008-09-04 10:04 Gpib_8508A\ni4882.h
文件 3651 2011-06-11 12:12 Gpib_8508A\ReadMe.txt
文件 1078 2011-06-11 12:12 Gpib_8508A\res\Gpib_8508A.ico
文件 402 2011-06-11 12:12 Gpib_8508A\res\Gpib_8508A.rc2
文件 1010 2011-06-11 12:31 Gpib_8508A\resource.h
文件 212 2011-06-11 12:12 Gpib_8508A\StdAfx.cpp
文件 1054 2011-06-11 12:12 Gpib_8508A\StdAfx.h
............此处省略6个文件信息
评论
共有 条评论