User`s manual
Generating DC Voltages
The DCVOLTS program outputs a +5 Vdc voltage. The commands are:
1. Reset the AFG
*RST
This command aborts any waveform output and selects the sinusoid
function, output impedance, and output load to 50 Ω.
2. Select the Function
[SOURce:]FUNCtion[:SHAPe] DC
This command selects the DC function.
3. Set the Amplitude
[SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] <amplitude>
This command specifies the amplitude. Refer to the section called
“Selecting the Amplitude Levels and Output Units” on page 72 for
more information.
BASIC Program Example (DCVOLTS)
1 !RE-STORE“DCVOLTS”
2 !This program outputs a +5V DC voltage.
3 !
10 !Assign I/O path between the computer and E1445A.
20 ASSIGN @Afg TO 70910
30 COM @Afg
40 !
50 !Set up error checking
60 ON INTR 7 CALL Errmsg
70 ENABLE INTR 7;2
80 OUTPUT @Afg;“*CLS”
90 OUTPUT @Afg;“*SRE 32”
100 OUTPUT @Afg;“*ESE 60”
110 !
120 !Call the subprograms
130 CALL Rst
140 CALL Dc_volts
150 !
160 WAIT .1 !allow interrupt to be serviced
170 OFF INTR 7
180 END
190 !
200 SUB Dc_volts
210 Dc_volts: !subprogram which outputs a dc voltage
220 COM @Afg
230 OUTPUT @Afg;“SOUR:FUNC:SHAP DC;”; !function
240 OUTPUT @Afg;“:SOUR:VOLT:LEV:IMM:AMPL 5V” !amplitude
Continued on Next Page
56 Generating Standard Waveforms Chapter 2