11.07.2015 Views

Agilent 33120A User's Guide

Agilent 33120A User's Guide

Agilent 33120A User's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 6 Application ProgramsUsing the Low-Level CommandsUsing the Low-Level CommandsThis program teaches the following concepts:œ How to use the low-level commands to set up an AM waveform.œ How to use the *SAV command to store the instrument configurationin memory.BASIC / GPIB (Program 2)10 !20 ! This program uses low-level SCPI commands to configure30 ! the function generator to output an AM waveform.40 ! This program also shows how to use "state storage" to50 ! store the instrument configuration in memory.60 !70 CLEAR 7 ! Clear interface - send "device clear"80 ASSIGN @Fgen TO 710 ! Assign I/O path to address 71090 OUTPUT @Fgen;"*RST" ! Reset the function generator100 !110 OUTPUT @Fgen;"OUTP:LOAD 50" ! Output termination is 50 ohms120 OUTPUT @Fgen;"FUNC:SHAP SIN" ! Carrier waveshape is sine wave130 OUTPUT @Fgen;"FREQ 5000;VOLT 5" ! Carrier frequency is 5 kHz @ 5 Vpp140 OUTPUT @Fgen;"AM:INT:FUNC SIN" ! Modulating waveshape is sine150 OUTPUT @Fgen;"AM:INT:FREQ 200" ! Modulating frequency is 200 Hz160 OUTPUT @Fgen;"AM:DEPT 80" ! Modulation depth is 80%170 OUTPUT @Fgen;"AM:STAT ON" ! Turn AM modulation on180 !190 OUTPUT @Fgen;"*SAV 1" ! Store state in memory location 1200 !210 ! Use the "*RCL 1" command to recall the stored state220 !230 END252

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!