Including The Visa Declarations File - Keysight N9320B Programmer's Manual

Spectrum analyzer
Hide thumbs Also See for N9320B:
Table of Contents

Advertisement

Programming Example
Programming in C using the VTL
printf("Instrument identification string: %s\n",
buf);
/* Close the sessions */
viClose(viN9320B);
viClose(defaultRM);
}

Including the VISA Declarations File

For C and C++ programs, you must include the visa.h header file at
the beginning of every file that contains VTL function calls:
#include "visa.h"
This header file contains the VISA function prototypes and the
definitions for all VISA constants and error codes. The visa.h
header file includes the visatype.h header file.
The visatype.h header file defines most of the VISA types. The VISA
types are used throughout VTL to specify data types used in the
functions. For example, the viOpenDefaultRM function requires a
pointer to a parameter of type ViSession. If you find ViSession in
the visatype.h header file, you will find that ViSession is eventually
typed as an unsigned long.
43

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents