The following example sets up a VVM measurement.
Note: In the following example: "-p" indicates a user prompt. "#" indicates a comment This example can be copied into a text editor, saved as a *.txt file, and run using the free Keysight Instrument Console program. Learn more. |
# Preset Instrument SYST:PRESet;*OPC? #Select USB Power Meter inst "Power Meter" #Set the max number of ps readings and tolerance settings? TOL 0.1 POINt:READ:MAX 2 #Select FOPS SWE:TYPE SWEPt #Set frequencies SOUR:FREQ:STAR .5e9 SOUR:FREQ:STOP 1.5e9 SOUR:REC:OFFS .05e9 FREQ:STEP 50e6 #Set Forward sweep SWE:RX FORWARD #Set Power Level SOUR:POW 0 #Set dwell time POIN:DWEL .05 #Measure Source Power -p "Connect the power sensor" INIT:CONT 0 INITiate:IMMediate;*OPC? SOURce:POWer:MEMorize;*OPC? TRACe:MEASurement Gain
|