Agilent Technologies N9310A User Manual page 163

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

Advertisement

N9310A User's Guide
Programming Comments
Thread
Open a session on the
default resource manager
first, and then for the
device you will be using.
Preset the signal
generator
Set the frequency and
amplitude of the CW
l
signa
Enable the RF output
Close device session
Relevant code
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)
status = viWrite (inst_N9310A, "FREQ:CW 1
GHz\n", StringLength("FREQ:CW 1 GHz\n"),
&rcount);
status = viWrite (inst_N9310A, "AMPL:CW
-10
dBm\n", StringLength("AMPL:CW
n"), &rcount);
viWrite (inst_N9310A, "RFO:STAT ON\n",
StringLength("RFO:STAT ON\n"), &rcount);
viClose (inst_N9310A)
viClose (defaultRM)
Subsystem Command Reference
6
-10
dBm\
157

Advertisement

Table of Contents
loading

Table of Contents