Agilent Technologies Multiple Channel Controller 85330A User Manual

Page 105

Advertising
background image

85330A Multiple Channel Controller

6-31

Programming

Programming Examples

1094 !

1095 OUTPUT @Rf;”SYST:LANG SCPI;”

1096 OUTPUT @Lo;”SYST:LANG SCPI;”

1097 !

1098 ! Place the source in STEP mode (or LIST mode).

1099 !

1100 OUTPUT @Rf;”FREQ:MODE SWE;”

1101 OUTPUT @Rf;”SWE:GEN STEP;”

1102 OUTPUT @Lo;”FREQ:MODE SWE;”

1103 OUTPUT @Lo;”SWE:GEN STEP;”

1104 !

1105 ! Set the Start, Stop, and number of points. Ths LO source must be offset

1106 ! by 20 MHz from the RF source.

1107 !

1108 OUTPUT @Rf;”FREQ:STAR “;Freq_start;” GHZ;”

1109 OUTPUT @Rf;”FREQ:STOP “;Freq_stop;” GHZ;”

1110 OUTPUT @Rf;”SWE:POIN “;Freq_pts;”;”

1111 OUTPUT @Lo;”FREQ:STAR “;Freq_start+Freq_offset;” GHZ;” ! The LO source is

1112 OUTPUT @Lo;”FREQ:STOP “;Freq_stop+Freq_offset;” GHZ;” ! offset by 20 MHz.

1113 OUTPUT @Lo;”SWE:POIN “;Freq_pts;”;”

1114 !

1115 ! The step sweep points triggering is external so that the HP 85330A can

1116 ! trigger the sources.

1117 !

1118 OUTPUT @Rf;”SWE:TRIG:SOUR EXT;”

1119 OUTPUT @Lo;”SWE:TRIG:SOUR EXT;”

1120 !

1121 ! The start sweep trigger is AUTO.

1122 !

1123 OUTPUT @Rf;”TRIG:SOUR IMM;”

1124 OUTPUT @Lo;”TRIG:SOUR IMM;”

1125 !

1126 ! Set the power level and turn the power on.

1127 !

1128 OUTPUT @Rf;”POW:LEV -5;”

1129 OUTPUT @Lo;”POW:LEV 10;”

1130 OUTPUT @Rf;”POW:STAT ON;”

1131 OUTPUT @Lo;”POW:STAT ON;”

1132 !

1133 ! Don’t initiate the sweep yet...

1134 !

1135 !

1136 Set_85330a:!

1137 !

1138 OUTPUT @Hp85330a;”*RST;” ! SOFT RESET

1139 !

1140 OUTPUT @Hp85330a;”RUNT:EVEN:TRIG TTL;” ! Set the triggering.

1141 OUTPUT @Hp85330a;”RUNT:EVEN:COUN “;Angle_pts;”;” ! No of angle increments

1142 !

Advertising