User`s manual

5. Select the Function
[SOURce:]FUNCtion[:SHAPe] SINusoid
This command selects the sinusoid function. (Although *RST
automatically selects this function, it is selected here for good
programming practice.)
6. Set the Amplitude
[SOURce:]VOLTage[:LEVel][IMMediate][:AMPLitude] <amplitude>
This command specifies the amplitude. Refer to the section called
“Setting the Amplitude Levels and Output Units” on page 72 for
more information.
7. Set the Phase Modulation Deviation
[SOURce:]PM:DEViation <phase>
This command sets the deviation angle. The angle can either be in
radians or degrees. The values can be from – 3.14159265 to
+ 3.14159265 radians (– Π to + Π) or –180° to +180°. (See
“Selecting the Deviation Units for Phase Modulation” on page 80 to
select the different units).
8. Initiate the Waveform
INITiate[:IMMediate]
This command generates an immediate output with the arm source set
to
IMMediate. Refer to Chapter 5 for triggering information.
BASIC Program Example (PHS_MOD)
1 !RE-STORE“PHS_MOD”
2 !The following program shifts the phase of the output sine wave
3 !from 0 degrees to 180 degrees.
4 !
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 Phase_mod
150 !
160 WAIT .1 !allow interrupt to be serviced
170 OFF INTR 7
180 END
Continued on Next Page
76 Generating Standard Waveforms Chapter 2