
Chapter 6 Application Programs
Example Program for Excel 97
147
6
Declaration for Windows 3.1
'************************************************************************************
' This routine requires the file VISA.dll. It typically resides in the
' c:\windows\system directory. Additional declations for VISA.DLL are usally in file
' visa.bas under c:\vxipnp\win31\include directory on your PC. This routine uses the
' VTL Library to send commands to an instrument. A description of these and additional
' VTL commands are contained in the Agilent Technologies Visa Transition Library book
' Agilent Part Number E2094-90002.
'************************************************************************************
Declare Function viOpenDefaultRM Lib "VISA.DLL" Alias "#141" (viDefaultRM As Long) As Long
Declare Function viOpen Lib "VISA.DLL" Alias "#131" (ByVal viDefaultRM As Long, ByVal viDesc
As String, ByVal mode As Long, ByVal timeout As Long, vi As Long) As Long
Declare Function viClose Lib "VISA.DLL" Alias "#132" (ByVal vi As Long) As Long
Declare Function viRead Lib "VISA.DLL" Alias "#256" (ByVal vi As Long, ByVal Buffer As
String, ByVal count As Long, retCount As Long) As Long
Declare Function viWrite Lib "VISA.DLL" Alias "#257" (ByVal vi As Long, ByVal Buffer As
String, ByVal count As Long, retCount As Long) As Long
Declare Function viClear Lib "VISA.DLL" Alias "#260" (ByVal vi As Long) As Long
Declaration for Windows 95/NT 4.0
'************************************************************************************
' Additional declations for VISA32.DLL are usally in file visa32.bas under
' c:\vxipnp\win95(or winNT)\include directory on your PC. Also see the VISA manual
'************************************************************************************
Declare Function viOpenDefaultRM Lib "visa32.dll" (instrumentHandle As Long) As Long
Declare Function viOpen Lib "visa32.dll" (ByVal instrumentHandle As Long, _
ByVal viDesc As String, ByVal mode As Long, ByVal timeout As Long, _
vi As Long) As Long
Declare Function viClose Lib "visa32.dll" (ByVal vi As Long) As Long
Declare Function viWrite Lib "visa32.dll" (ByVal vi As Long, ByVal Buffer As String, _
ByVal count As Long, retCount As Long) As Long
Declare Function viRead Lib "visa32.dll" (ByVal vi As Long, ByVal Buffer As String, _
ByVal count As Long, retCount As Long) As Long
Содержание E3646A
Страница 2: ...2...
Страница 16: ...16 Contents Contents...
Страница 17: ...1 Quick Start...
Страница 27: ...2 General Information...
Страница 39: ...3 Front Panel Operation and Features...
Страница 72: ...Chapter 3 Front Panel Operation and Features Calibration Overview 72...
Страница 73: ...4 Remote Interface Reference...
Страница 125: ...5 Error Messages...
Страница 136: ...Chapter 5 Error Messages Calibration Errors 136...
Страница 137: ...6 Application Programs...
Страница 148: ...Chapter 6 Application Programs Example Program for Excel 97 148...
Страница 149: ...7 Tutorial...
Страница 160: ...Chapter 7 Tutorial Remote Programming 160...
Страница 161: ...8 Specifications...
Страница 168: ...Chapter 8 Specifications Supplemental Characteristics 168 Figure 8 2 Dimensions for Rack mounting...
Страница 169: ...Appendix Service Information...
Страница 178: ...Appendix Service Information General Disassembly 178 General Disassembly...
Страница 210: ......