Subsystem Command Reference
6
N9310A User’s Guide
155
Programming Comments
Thread
Relevant code
Include the visa.h header file at
the beginning of every file that
contains VTL function calls.
#include “visa.h”
Open a session on the default
resource manager first, and then
for the device you will be using.
viOpenDefaultRM (&defaultRM)
viOpen (defaultRM,
“USB0::2391::8216::0115000001::0::INSTR”,
VI_NULL, VI_NULL, &inst_N9310A)
Send a *RST command to set the
instrument to its default staus.
viWrite (inst_N9310A, “*RST\n”,
StringLength (“*RST\n”), &rcount)
Send a *IDN? query to the
instrument.
viWrite (inst_N9310A, “*IDN?\n”,
StringLength (“*IDN?\n”), &rcount)
Fetch the instrument identity
information to the buffer.
viRead (inst_N9310A, buffer, BufferSize,
&rcount)
Close device session
viClose (inst_N9310A)
viClose (defaultRM)
Summary of Contents for Keysight N9310A
Page 34: ...28 N9310A User s Guide 2 Getting Started ...
Page 58: ...52 N9310A User s Guide 3 Using Functions ...
Page 94: ...88 N9310A User s Guide 5 Programming Fundamentals 5 Select Display a list ...
Page 106: ...100 N9310A User s Guide 5 Programming Fundamentals ...
Page 168: ...162 N9310A User s Guide 6 Subsystem Command Reference ...
Page 188: ... Agilent Technologies Inc 2006 Printed in China June 2006 N9310 90001 N9310 90001 ...