Agilent Technologies N9310A User Manual page 167

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

Advertisement

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 start frequency
and the stop frequency
Set the number of points
and dwell time for each
point
Enable RF output
Enable RF sweep
Close device session
N9310A User's Guide
status = viWrite (inst_N9310A, "SWE:RF:STAT ON\n",
StringLength("SWE:RF:STAT ON\n"), &rcount);
/* Close session. */
status = viClose (inst_N9310A);
status = viClose (defaultRM);
return 1;
}
Programming Comments
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)
viWrite (inst_N9310A, "SWE:RF:STAR 1 GHz\n",
StringLength("SWE:RF:STAR 1 GHz\n"), &rcount)
viWrite (inst_N9310A, "SWE:RF:STOP 2 GHz\n",
StringLength("SWE:RF:STOP 2 GHz\n"), &rcount)
viWrite (inst_N9310A, "SWE:STEP:POIN 90\n",
StringLength("SWE:STEP:POIN 90\n"), &rcount)
viWrite (inst_N9310A, "SWE:STEP:DWEL 20 ms\n",
StringLength("SWE:STEP:DWEL 20 ms\n"), &rcount)
viWrite (inst_N9310A, "RFO:STAT ON\n",
StringLength("RFO:STAT ON\n"), &rcount)
viWrite (inst_N9310A, "SWE:RF:STAT ON\n",
StringLength("SWE:RF:STAT ON\n"), &rcount)
viClose (inst_N9310A)
viClose (defaultRM)
After presetting the signal generator, the Sweep Repeat is set to CONT,
NO TE
Sweep Direction is set to UP and Sweep trigger and Point trigger is set to
IMMediate by default. The commands to set the Sweep Repeat, Sweep
Direction, Sweep trigger and Point trigger are omitted in this example.
Subsystem Command Reference
6
161

Advertisement

Table of Contents
loading

Table of Contents