8163A/B, 8164A/B & 8166A/B Mainframes
Programming Guide
6
VISA Programming
Examples
How to Set up a Fixed Laser Source
How to Measure Power using FETCh and READ
How to Co-ordinate Two Modules
How Power Varies with Wavelength
These programming examples are implemented using MS Developer
Studio. Regardless of the programming environment you use, keep the
following in mind:
• The resultant application is a "console application"
• Make sure the header files
visa.h
and
visatype.h
are included.
• Make sure the library path includes visa32.lib
• Ensure that the
PATH
environment variable allows loading
visa32.dll
.
The programming examples do not cover the full command set for the
instruments. They are intended only as an introduction, how to program the
instrument using VISA library calls.
The VISA calls used, are explained in detail in the VISA User’s Guide.
TIP:
Additional programming examples are provided on the Support Disk
CD-ROM 08164-90BC4
NOTE
Never use VISA calls and the Keysight 816x VXI
plug&play
Instrument Driver in
the same program.