Continuous Wave (CW) Loopback Example

This example demonstrates how to generate and measure a CW signal using the GPRF analyzer and generator personalities. You can also use this example for debugging purposes or if you suspect that your instrument does not generate or receive signals correctly.

The example generates a -10 dBm CW signal at 1 GHz using the GPRF signal generator and performs a transmit power (TXP) measurement using the GPRF signal analyzer.
  1. Ensure the state of your instrument by sending the following command to reset your instrument and clear the status registers of any previous errors:
    *RST;*CLS
  2. Configure the signal analyzer for a TXP measurement of a signal at 1 GHz with a maximum input of -10 dBm received at Port 0:
    CONFigure:RFSA:GPRF:MEASurement:TXPower:ENABle ON
    CONFigure:RFSA:GPRF:FREQuency:CENTer 1E9
    CONFigure:RFSA:GPRF:POWer:MAXimum -10             
    CONFigure:RFSA:GPRF:PORTname "Port0"               
    TRIGger:RFSA:GPRF:SOURce 'RF 0'
    INITiate:RFSA:GPRF;*STB? 
    The result of the *STB? query should be a response of 0, which indicates that no errors occurred for the commands sent.
  3. Configure the generator to output a CW signal of -10 dBm on 1 GHz at Port 0 and start the generator:
    SOURce:RFSG:GPRF:MODE CW
    SOURce:RFSG:GPRF:RFSettings:LEVel -10
    SOURce:RFSG:GPRF:FREQuency:CENTer 1E9
    SOURce:RFSG:GPRF:RFSettings:PORTname "Port0" SOURce:RFSG:GPRF:STATe ON;*STB?
  4. Fetch the measured results:
    FETCh:RFSA:GPRF:RESults:TXPower:ALL?
    This should result in the response:
    <AveragePower>,<PeakToAverageRatio>,<MaxPower>,<MinPower>
    For example:
    Note The returned values will depend on the cable you use for the loop. In the example, ‘Port 0’ is used for both generation and analysis.
  5. As a best practice, turn off the generator:
    SOURce:RFSG:GPRF:STATe OFF;*STB?