ESG-D Series Option H98 Signal Generators Programming Information
Example Program: CreatingaWidebandCDMAWaveform
Manual Supplement 5-35
Example Program:
CreatingaWidebandCDMAWaveform
The following example program remotely performs the same tasks as“Front-Panel
Operation”on page3-4.
This program creates a wideband CDMA waveform, modulated at a carrier frequency of
2.17 GHz, at a power level of−10 dBm. The Perch2 channel is disabled, the downlink long
code is set to 50, the channel 1 short code is set to 15, and the channel 1 type is set to a
Dedicated Traffic Channel. After the setup is complete, the output is activated and the
signal is present at the signal generator’s RF output.
After executing the program, press
Mode>Wideband CDMA to review the waveform
parameters.
10 !***************************************************************
20 ! NAME: WCDMA Program
30 !
40 ! DESCRIPTION: The following HPBASIC program remotely performs the same
50 ! tasks as the procedure titled, “Front-Panel Operation” in
60 ! Chapter 3 of this guide. A WCDMA waveform is created and
70 ! and modulated at a carrier frequency of 2.17 GHz, at a -10 dBm
80 ! power level.
90 !
100 ! CLEAR and RESET the controller, input the following commands and RUN the
110 ! program.
120 !
130 !***************************************************************
140 !
150 Sig_gen=719
160 LOCAL Sig_gen
170 CLEAR Sig_gen
180 CLEAR SCREEN
190 OUTPUT Sig_gen;
"*RST"
200 OUTPUT Sig_gen;"*CLS"
210 !***************************************
220 OUTPUT Sig_gen;
"FREQ 2.17 GHZ"
230 OUTPUT Sig_gen;"POW -10 DBM"
240 OUTPUT Sig_gen;"SOUR:RAD:WCDM:BBG:DLINK:PERC2 OFF"
250 OUTPUT Sig_gen;"SOUR:RAD:WCDM:BBG:DLINK:LCOD 50"
260 OUTPUT Sig_gen;"SOUR:RAD:WCDM:BBG:DLINK:CHAN1:SCOD 15"
270 OUTPUT Sig_gen;"SOUR:RAD:WCDM:BBG:DLINK:CHAN1:TYPE DTCH"
280 OUTPUT Sig_gen;"SOUR:RAD:WCDM:BBG:STAT ON"
290 !***************************************
300 OUTPUT Sig_gen;
"OUTP ON"
310 !***************************************
320 LOCAL Sig_gen
330 WAIT 5
340 PRINT
350 PRINT
"... the signal generator waveform setup is now complete. Press [Mode],"
360 PRINT"[Wideband CDMA] to review the waveform parameters."
370 END