![HP E4401B Programmer'S Manual Download Page 68](http://html.mh-extra.com/html/hp/e4401b/e4401b_programmers-manual_161548068.webp)
3-4
Chapter 3
Programming Examples
C Programming Examples using VTL
device identification (
*IDN?
). The
viScanf
call is then
used to read the results.
NOTE: Refer to Chapter 5, Language Reference, for an
explanation of the full use of commands *RST and
*IDN?
viClose
This function must be used to close each session. When
you close a device session, all data structures that had
been allocated for the session will be deallocated. When
you close the default manager session, all sessions
opened using the default manager session will be
closed.
Linking to VTL Libraries
Your application must link to one of the VTL import libraries:
32-bit Version:
C:\VXIPNP\WIN95\LIB\MSC\VISA32.LIB
for Microsoft compilers
C:\VXIPNP\WIN95\LIB\BC\VISA32.LIB
for Borland compilers
16-bit Version:
C:\VXIPNP\WIN\LIB\MSC\VISA.LIB
for Microsoft compilers
C:\VXIPNP\WIN\LIB\BC\VISA.LIB
for Borland compilers
See the following section for information on how to use the VTL
run-time libraries.
Compiling and Linking a VTL Program
32-bit Applications
The following is a summary of important compiler-specific
considerations for several C/C++ compiler products when developing
WIN32 applications.
For Microsoft Visual C++ version 2.0 compilers:
• Select
Project | Update All Dependencies
from the menu.
• Select
Project | Settings
from the menu. Click on the
C/C++
button. Select
Code Generation
from the
Use Run-Time
Libraries
list box. VTL requires these definitions for WIN32. Click
on
OK
to close the dialog boxes.
• Select
Project | Settings
from the menu. Click on the
Link
button and add
visa32.lib
to the
Object / Library Modules
list box. Optionally, you may add the library directly to your project
file. Click on
OK
to close the dialog boxes.
Summary of Contents for E4401B
Page 6: ...vi ...
Page 14: ...xiv Contents ...
Page 64: ...2 34 Chapter2 HP ESA Status Registers Using the Analyzer Status Registers ...
Page 65: ...3 1 3 Programming Examples ...
Page 151: ...4 1 4 Programming Command Cross References ...
Page 286: ...5 132 Chapter5 Language Reference UNIT Subsystem ...
Page 287: ...6 1 6 HP 8590 HP ESA Spectrum Analyzers Programming Conversion Guide ...
Page 292: ...1 HP 8590 HP ESA Spectrum Analyzers Conversion Guide ...
Page 368: ...7 1 7 Error Messages ...
Page 393: ...7 26 Chapter7 Error Messages 201 to 799 Device Specific Errors ...