Agilent Technologies N9310A User Manual page 161

Rf signal generator
Hide thumbs Also See for N9310A:
Table of Contents

Advertisement

Thread
Include the visa.h header file at
the beginning of every file that
contains VTL function calls.
Open a session on the default
resource manager first, and then
for the device you will be using.
Send a *RST command to set the
instrument to its default staus.
Send a *IDN? query to the
instrument.
Fetch the instrument identity
information to the buffer.
Close device session
N9310A User's Guide
Programming Comments
Relevant code
#include "visa.h"
viOpenDefaultRM (&defaultRM)
viOpen (defaultRM,
"USB0::2391::8216::0115000001::0::INSTR",
VI_NULL, VI_NULL, &inst_N9310A)
viWrite (inst_N9310A, "*RST\n",
StringLength ("*RST\n"), &rcount)
viWrite (inst_N9310A, "*IDN?\n",
StringLength ("*IDN?\n"), &rcount)
viRead (inst_N9310A, buffer, BufferSize,
&rcount)
viClose (inst_N9310A)
viClose (defaultRM)
Subsystem Command Reference
6
155

Advertisement

Table of Contents
loading

Table of Contents