The Keysight E6621A radio test set is controlled remotely with SCPI commands. TestFlow's instrument library holds 230 commands for it, 113 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the E6621A on a real bench.
Describe the test; TestFlow's agent uses this command set to drive your Keysight E6621A and writes the report from the measured results.
With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.
import pyvisa
rm = pyvisa.ResourceManager()
print(rm.list_resources()) # find the Keysight E6621A's VISA address
# Paste the address of your Keysight E6621A (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000 # ms
print(inst.query("*IDN?")) # identify the instrument
inst.write("SA:LTE:AUToconfig ON") # Turn On SA LTE Auto Config
print(inst.query("LTE:CHPower:MEASure:POWer?")) # Measure LTE Channel Power
inst.close()Describe the test; TestFlow's agent uses this command set to drive your Keysight E6621A and writes the report from the measured results.
Describe the test in a sentence, for example “turn on sa lte auto config on the E6621A, then measure lte channel power and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.
230 commands in 28 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.
| Command | What it does | Arguments |
|---|---|---|
| BSE:SIMULator RUN | Run Simulator. Starts the base station emulator (configure BSE settings first). | None |
| BSE:SIMULator STOP | Stop Simulator. Stops the base station emulator. | None |
| BSE:MEASure:VIEW <View> | Set BSE Measurement View. Sets the BSE measurement view shown on the front panel. | Text: MESSAge,L1L2Status,ERThroughput,INFOrmation,CHANnelstate,RLC,PDCP |
| BSE:MEASure:VIEW? | Read BSE Measurement View. Reads the BSE measurement view shown on the front panel. | None |
| BSE:STATus:ACELL? | Read Cell A Status. Reads the connection status of cell A. | None |
| BSE:STATus:BCELL? | Read Cell B Status. Reads the connection status of cell B. | None |
| BSE:CELL:SELection <Cell> | Set Selected Cell. Selects which cell (A or B) subsequent cell-specific parameters apply to. | Text: A,B |
| BSE:CELL:SELection? | Read Selected Cell. Reads which cell (A or B) subsequent cell-specific parameters apply to. | None |
| BSE:CONFig:PROFile <Bandwidth> | Set Channel Bandwidth Profile. Sets the BSE LTE channel bandwidth profile (e.g. 20MHz). | Text |
| BSE:CONFig:PROFile? | Read Channel Bandwidth Profile. Reads the BSE LTE channel bandwidth profile (e.g. 20MHz). | None |
| BSE:CONFig:PHY:CELL:ID <ID> | Set Physical Cell ID. Sets the physical cell ID of the selected cell (0 to 503). | Number |
| BSE:CONFig:PHY:CELL:ID? | Read Physical Cell ID. Reads the physical cell ID of the selected cell (0 to 503). | None |
| BSE:CONFig:PHY:CELL:NCTantennas <Antennas> | Set Cell Antennas. Sets the number of cell transmit antennas. | Number: 1,2 |
| BSE:CONFig:PHY:CELL:NCTantennas? | Read Cell Antennas. Reads the number of cell transmit antennas. | None |
| BSE:CONFig:RRC:TMode <TM> | Set Transmission Mode. Sets the DL transmission mode (TM2-TM7 require 2 antennas; TM7 TDD only). | Text: TM1,TM2,TM3,TM4,TM6,TM7,IMPLicit |
| BSE:CONFig:RRC:TMode? | Read Transmission Mode. Reads the DL transmission mode (TM2-TM7 require 2 antennas. | None |
| BSE:CONFig:UE:CATEGory <Category> | Set UE Category. Sets the expected UE category (1 to 5). | Number: 1,2,3,4,5 |
| BSE:CONFig:UE:CATEGory? | Read UE Category. Reads the expected UE category (1 to 5). | None |
| BSE:CONFig:CRNTI <RNTI> | Set C RNTI. Sets the C-RNTI assigned to the UE (10 to 65522). | Number |
| BSE:CONFig:CRNTI? | Read C RNTI. Reads the C-RNTI assigned to the UE (10 to 65522). | None |
| BSE:CONFig:NAS:MCC <MCC> | Set MCC. Sets the Mobile Country Code (0 to 999). | Number |
| BSE:CONFig:NAS:MCC? | Read MCC. Reads the Mobile Country Code (0 to 999). | None |
| BSE:CONFig:NAS:MNC <MNC> | Set MNC. Sets the Mobile Network Code (range depends on MNC digits). | Number |
| BSE:CONFig:NAS:MNC? | Read MNC. Reads the Mobile Network Code (range depends on MNC digits). | None |
| BSE:CONFig:NAS:MNCDigits <Digits> | Set MNC Digits. Sets the number of MNC digits. | Number: 2,3 |
| BSE:CONFig:NAS:MNCDigits? | Read MNC Digits. Reads the number of MNC digits. | None |
| BSE:CONFig:PHY:MAC:HARQMAXTrans:DL <Count> | Set DL HARQ Max Transmissions. Sets the maximum number of DL HARQ transmissions. | Number |
| BSE:CONFig:PHY:MAC:HARQMAXTrans:DL? | Read DL HARQ Max Transmissions. Reads the maximum number of DL HARQ transmissions. | None |
| BSE:CONFig:PHY:MAC:HARQMAXTrans:UL <Count> | Set UL HARQ Max Transmissions. Sets the maximum number of UL HARQ transmissions. | Number |
| BSE:CONFig:PHY:MAC:HARQMAXTrans:UL? | Read UL HARQ Max Transmissions. Reads the maximum number of UL HARQ transmissions. | None |
| BSE:CONFig:PHY:DL:RESOUrce:ALLOc:GRANt:MODE <Mode> | Set DL Grant Mode. Sets the DL resource allocation grant mode. | Text: AUTO,FIXEDMACpadding |
| BSE:CONFig:PHY:DL:RESOUrce:ALLOc:GRANt:MODE? | Read DL Grant Mode. Reads the DL resource allocation grant mode. | None |
| BSE:CONFig:PHY:DL:RESOUrce:ALLOc:MCS ON | Turn On DL MCS From CQI. Bases the DL MCS on the CQI reported by the UE. | None |
| BSE:CONFig:PHY:DL:RESOUrce:ALLOc:MCS OFF | Turn Off DL MCS From CQI. Uses the fixed DL I_MCS value. | None |
| BSE:CONFig:PHY:DL:RESOUrce:ALLOc:MCS? | Read DL MCS From CQI State. Reads the on/off state set by Turn_On_DL_MCS_From_CQI / Turn_Off_DL_MCS_From_CQI. | None |
| BSE:CONFig:PHY:DL:RESOUrce:ALLOc:IMCS <MCS> | Set DL IMCS. Sets the DL resource allocation I_MCS (0 to 28). | Number |
| BSE:CONFig:PHY:DL:RESOUrce:ALLOc:IMCS? | Read DL IMCS. Reads the DL resource allocation I_MCS (0 to 28). | None |
| BSE:CONFig:PHY:DL:RESOUrce:ALLOc:RB:SIZE <RBs> | Set DL RB Size. Sets the number of DL resource blocks allocated (range depends on bandwidth). | Number |
| BSE:CONFig:PHY:DL:RESOUrce:ALLOc:RB:SIZE? | Read DL RB Size. Reads the number of DL resource blocks allocated (range depends on bandwidth). | None |
| BSE:CONFig:PHY:DL:RESOUrce:ALLOc:RB:STARt <RB> | Set DL RB Start. Sets the starting DL resource block. | Number |
| BSE:CONFig:PHY:DL:RESOUrce:ALLOc:RB:STARt? | Read DL RB Start. Reads the starting DL resource block. | None |
| BSE:CONFig:PHY:UL:GRANt:MODE <Mode> | Set UL Grant Mode. Sets the UL grant mode (e.g. AUTO or FIXEDMAC). | Text |
| BSE:CONFig:PHY:UL:GRANt:MODE? | Read UL Grant Mode. Reads the UL grant mode (e.g. AUTO or FIXEDMAC). | None |
| BSE:CONFig:PHY:UL:GRANt:IMCS <MCS> | Set UL IMCS. Sets the UL grant I_MCS (FDD 0 to 23 and 29, TDD 0 to 20 and 29). | Number |
| BSE:CONFig:PHY:UL:GRANt:IMCS? | Read UL IMCS. Reads the UL grant I_MCS (FDD 0 to 23 and 29, TDD 0 to 20 and 29). | None |
| BSE:CONFig:PHY:UL:GRANt:RB:SIZE <RBs> | Set UL RB Size. Sets the number of UL resource blocks granted. | Number |
| BSE:CONFig:PHY:UL:GRANt:RB:SIZE? | Read UL RB Size. Reads the number of UL resource blocks granted. | None |
| BSE:CONFig:PHY:UL:GRANt:RB:STARt <RB> | Set UL RB Start. Sets the starting UL resource block. | Number |
| BSE:CONFig:PHY:UL:GRANt:RB:STARt? | Read UL RB Start. Reads the starting UL resource block. | None |
| BSE:CONFig:PHY:MIMO:NUMCodewords <Codewords> | Set MIMO Codewords. Sets the number of MIMO codewords. | Number: 1,2 |
| BSE:CONFig:PHY:MIMO:NUMCodewords? | Read MIMO Codewords. Reads the number of MIMO codewords. | None |
| BSE:FUNCtion:UE:POWer:CONTrol:MODE <Mode> | Set UE Power Control Mode. Sets the UE power control mode (e.g. Manual or CLPControl closed loop). | Text |
| BSE:FUNCtion:UE:POWer:CONTrol:MODE? | Read UE Power Control Mode. Reads the UE power control mode (e.g. Manual or CLPControl closed loop). | None |
| BSE:FUNCtion:UE:POWer:CONTrol:TARGet:PUSCh <Level> | Set UE PUSCH Target Power. Sets the closed-loop PUSCH target power in dBm. | Number |
| BSE:FUNCtion:UE:POWer:CONTrol:TARGet:PUSCh? | Read UE PUSCH Target Power. Reads the closed-loop PUSCH target power in dBm. | None |
| BSE:FUNCtion:UE:POWer:CONTrol:TARGet:PUCCh <Level> | Set UE PUCCH Target Power. Sets the closed-loop PUCCH target power in dBm. | Number |
| BSE:FUNCtion:UE:POWer:CONTrol:TARGet:PUCCh? | Read UE PUCCH Target Power. Reads the closed-loop PUCCH target power in dBm. | None |
| BSE:FUNCtion:UE:POWer:CONTrol:TARGet:TOLerance <dB> | Set UE Target Tolerance. Sets the closed-loop power control target tolerance in dB (1 to 20). | Number |
| BSE:FUNCtion:UE:POWer:CONTrol:TARGet:TOLerance? | Read UE Target Tolerance. Reads the closed-loop power control target tolerance in dB (1 to 20). | None |
| BSE:FUNCtion:UE:POWer:CONtrol:ALLUp ON | Turn On UE Power All Up. Sends all-up TPC commands to the UE. | None |
| BSE:FUNCtion:UE:POWer:CONtrol:ALLUp OFF | Turn Off UE Power All Up. Stops all-up TPC commands. | None |
| BSE:FUNCtion:UE:POWer:CONtrol:ALLUp? | Read UE Power All Up State. Reads the on/off state set by Turn_On_UE_Power_All_Up / Turn_Off_UE_Power_All_Up. | None |
| BSE:FUNCtion:UE:POWer:CONtrol:ALLDown ON | Turn On UE Power All Down. Sends all-down TPC commands to the UE. | None |
| BSE:FUNCtion:UE:POWer:CONtrol:ALLDown OFF | Turn Off UE Power All Down. Stops all-down TPC commands. | None |
| BSE:FUNCtion:UE:POWer:CONtrol:ALLDown? | Read UE Power All Down State. Reads the on/off state set by Turn_On_UE_Power_All_Down / Turn_Off_UE_Power_All_Down. | None |
| BSE:FUNCtion:UE:POWer:CONtrol:SEND:MESSAge | Send UE Power Control. Sends the configured UE power control message. | None |
| BSE:FUNCtion:OCNG1 ON | Turn On OCNG OP1. Enables OCNG pattern OP.1 (FDD). | None |
| BSE:FUNCtion:OCNG1 OFF | Turn Off OCNG OP1. Disables OCNG pattern OP.1. | None |
| BSE:FUNCtion:OCNG1? | Read OCNG OP1 State. Reads the on/off state set by Turn_On_OCNG_OP1 / Turn_Off_OCNG_OP1. | None |
| BSE:FUNCtion:HANDover:TYPE <Type> | Set Handover Type. Sets the handover type. | Text: DEFault,BLINd |
| BSE:FUNCtion:HANDover:TYPE? | Read Handover Type. Reads the handover type. | None |
| BSE:FUNCtion:HANDover:DESTination:DEARfcn <EARFCN> | Set Handover DL EARFCN. Sets the handover destination DL carrier EARFCN (0 to 65535). | Number |
| BSE:FUNCtion:HANDover:DESTination:DEARfcn? | Read Handover DL EARFCN. Reads the handover destination DL carrier EARFCN (0 to 65535). | None |
| BSE:FUNCtion:HANDover:DESTination:UEARfcn <EARFCN> | Set Handover UL EARFCN. Sets the handover destination UL carrier EARFCN (0 to 65535). | Number |
| BSE:FUNCtion:HANDover:DESTination:UEARfcn? | Read Handover UL EARFCN. Reads the handover destination UL carrier EARFCN (0 to 65535). | None |
| BSE:FUNCtion:HANDover:DESTination:PCELlid <ID> | Set Handover Cell ID. Sets the handover target physical cell ID (0 to 503). | Number |
| BSE:FUNCtion:HANDover:DESTination:PCELlid? | Read Handover Cell ID. Reads the handover target physical cell ID (0 to 503). | None |
| BSE:FUNCtion:HANDOver:STARt | Start Handover. Initiates the handover. | None |
| BSE:FUNCtion:MAC:TADVance:VALue <TA> | Set Timing Advance Value. Sets the timing advance value sent in the MAC control element (0 to 63). | Number |
| BSE:FUNCtion:MAC:TADVance:SEND | Send Timing Advance. Sends a single timing advance MAC control element to the UE. | None |
| BSE:FUNCtion:PAGing:MESSAge:COUNt? | Read Paging Message Count. Returns the number of paging messages available. | None |
| BSE:FUNCtion:PAGing:MESSAge<Index>:SEND | Send Paging Message. Sends the paging message with the given index (1 to 8). | Number: 1,2,3,4,5,6,7,8 |
| BSE:FUNCtion:UEDETach:MESSAge:COUNt? | Read Detach Message Count. Returns the number of detach messages available. | None |
| BSE:FUNCtion:UEDETach:MESSAge<Index>:SEND | Send Detach Message. Sends the detach message with the given index (1 to 8). | Number: 1,2,3,4,5,6,7,8 |
| BSE:FUNCtion:DTCH:TRANSfer ON | Turn On DTCH Transfer. Starts the DTCH transfer test (UE connected). | None |
| BSE:FUNCtion:DTCH:TRANSfer OFF | Turn Off DTCH Transfer. Stops the DTCH transfer test. | None |
| BSE:FUNCtion:DTCH:TRANSfer? | Read DTCH Transfer State. Reads the on/off state set by Turn_On_DTCH_Transfer / Turn_Off_DTCH_Transfer. | None |
| BSE:FUNCtion:STATistical:MAXFramesize <Frames> | Set Statistical Max Frames. Sets the statistical throughput test maximum frame count. | Number |
| BSE:FUNCtion:STATistical:MAXFramesize? | Read Statistical Max Frames. Reads the statistical throughput test maximum frame count. | None |
| BSE:FUNCtion:STATistical:TESTRun ON | Turn On Statistical Test Run. Starts the statistical throughput test. | None |
| BSE:FUNCtion:STATistical:TESTRun OFF | Turn Off Statistical Test Run. Stops the statistical throughput test. | None |
| BSE:FUNCtion:STATistical:TESTRun? | Read Statistical Test Run State. Reads the on/off state set by Turn_On_Statistical_Test_Run / Turn_Off_Statistical_Test_Run. | None |
| BSE:FUNCtion:STATistical:FETCh:ECERror? | Fetch Statistical Throughput. Fetches the extended statistical throughput results. | None |
| BSE:MAC:INFOrmation:MEASure:TABLe? | Read MAC Information. Returns the BSE MAC information results (BSR, PHR, ...). | None |
| BSE:ER:THROUghput:MEASure:TABLe? | Read Error Throughput. Returns the BSE DL BLER/throughput results. | None |
| BSE:ER:THROUghput:UL:MEASure:TABLe? | Read UL Error Throughput. Returns the BSE UL BLER/throughput results. | None |
| BSE:ER:THROUghput:MEASure:TABLe:CLEar | Clear Error Throughput. Clears the BSE error/throughput results. | None |
| BSE:L1:INFOrmation:MEASure:TABLe? | Read L1 Information. Returns the BSE L1 information results (CQI, PMI, RI). | None |
| BSE:RLC:INFOrmation:MEASure:TABLe? | Read RLC Information. Returns the BSE RLC information results. | None |
| BSE:PDCP:INFOrmation:MEASure:TABLe? | Read PDCP Information. Returns the BSE PDCP information results. | None |
| BSE:MEAS:RRC:UECategory? | Read UE Category Report. Returns the UE category reported in RRC signalling. | None |
| Command | What it does | Arguments |
|---|---|---|
| AMPLitude:ALL <Level> | Set Output Level All. Sets the DL output amplitude of all RF outputs in dBm (-120 to +10 dBm). | Number |
| AMPLitude:ALL? | Read Output Level All. Reads the DL output amplitude of all RF outputs in dBm (-120 to +10 dBm). | None |
| AMPLitude:RF1 <Level> | Set RF1 Output Level. Sets the RF1 output amplitude in dBm (-120 to +10 dBm). | Number |
| AMPLitude:RF1? | Read RF1 Output Level. Reads the RF1 output amplitude in dBm (-120 to +10 dBm). | None |
| AMPLitude:RF2 <Level> | Set RF2 Output Level. Sets the RF2 output amplitude in dBm (-120 to +10 dBm). | Number |
| AMPLitude:RF2? | Read RF2 Output Level. Reads the RF2 output amplitude in dBm (-120 to +10 dBm). | None |
| AMPLitude:RF1:RSTP? | Read RF1 RSTP. Returns the RF1 amplitude expressed as an RSTP power level in dBm. | None |
| AMPLitude:POWer:CORRection:STATe ON | Turn On Amplitude Correction. Turns the amplitude offset table on. | None |
| AMPLitude:POWer:CORRection:STATe OFF | Turn Off Amplitude Correction. Turns the amplitude offset table off. | None |
| AMPLitude:POWer:CORRection:STATe? | Read Amplitude Correction State. Reads the on/off state set by Turn_On_Amplitude_Correction / Turn_Off_Amplitude_Correction. | None |
| AMPLitude:POWer:CORRection:SFRequency <Freq_List> | Set Amplitude Correction Frequencies. Sets the amplitude offset table frequency list (1 to 60 comma-separated values). | Text |
| AMPLitude:POWer:CORRection:SFRequency? | Read Amplitude Correction Frequencies. Reads the amplitude offset table frequency list (1 to 60 comma-separated values). | None |
| AMPLitude:POWer:CORRection:SGAin <Gain_List> | Set Amplitude Correction Gains. Sets the amplitude offset table gain/loss list in dB matching the frequency list. | Text |
| AMPLitude:POWer:CORRection:SGAin? | Read Amplitude Correction Gains. Reads the amplitude offset table gain/loss list in dB matching the frequency list. | None |
| AMPLitude:AWGN:STATe ON | Turn On AWGN. Turns the AWGN generator on. | None |
| AMPLitude:AWGN:STATe OFF | Turn Off AWGN. Turns the AWGN generator off. | None |
| AMPLitude:AWGN:STATe? | Read AWGN State. Reads the on/off state set by Turn_On_AWGN / Turn_Off_AWGN. | None |
| AMPLitude:AWGN:RF1 <dB> | Set RF1 AWGN SNR. Sets the RF1 AWGN signal-to-noise ratio in dB (-10 to 30). | Number |
| AMPLitude:AWGN:RF1? | Read RF1 AWGN SNR. Reads the RF1 AWGN signal-to-noise ratio in dB (-10 to 30). | None |
| AMPLitude:AWGN:RF2 <dB> | Set RF2 AWGN SNR. Sets the RF2 AWGN signal-to-noise ratio in dB (-10 to 30). | Number |
| AMPLitude:AWGN:RF2? | Read RF2 AWGN SNR. Reads the RF2 AWGN signal-to-noise ratio in dB (-10 to 30). | None |
| AMPLitude:AWGN:CHANnelmode <Mode> | Set AWGN Channel Mode. Sets the AWGN channel mode. | Text: NORMal,MIMO |
| AMPLitude:AWGN:CHANnelmode? | Read AWGN Channel Mode. Reads the AWGN channel mode. | None |
| Command | What it does | Arguments |
|---|---|---|
| FREQuency:SMEThod <Method> | Set Frequency Setting Method. Selects whether frequency is set by band/EARFCN or by frequency. | Text: EARFcn,FREQ |
| FREQuency:SMEThod? | Read Frequency Setting Method. Reads whether frequency is set by band/EARFCN or by frequency. | None |
| FREQuency:BAND <Band> | Set Band. Sets the E-UTRA operating band (FDD 1 to 32, TDD 33 to 63). | Number |
| FREQuency:BAND? | Read Band. Reads the E-UTRA operating band (FDD 1 to 32, TDD 33 to 63). | None |
| FREQuency:EARFcn:DL <EARFCN> | Set DL EARFCN. Sets the DL EARFCN (FDD only). | Number |
| FREQuency:EARFcn:DL? | Read DL EARFCN. Reads the DL EARFCN (FDD only). | None |
| FREQuency:EARFcn:UL <EARFCN> | Set UL EARFCN. Sets the UL EARFCN (FDD only). | Number |
| FREQuency:EARFcn:UL? | Read UL EARFCN. Reads the UL EARFCN (FDD only). | None |
| FREQuency:EARFcn <EARFCN> | Set TDD EARFCN. Sets the EARFCN (TDD only). | Number |
| FREQuency:EARFcn? | Read TDD EARFCN. Reads the EARFCN (TDD only). | None |
| FREQuency:CENTer:DL <Freq> | Set DL Frequency. Sets the DL center frequency (350 MHz to 6 GHz, FDD only). | Number |
| FREQuency:CENTer:DL? | Read DL Frequency. Reads the DL center frequency (350 MHz to 6 GHz, FDD only). | None |
| FREQuency:CENTer:UL <Freq> | Set UL Frequency. Sets the UL center frequency (350 MHz to 6 GHz, FDD only). | Number |
| FREQuency:CENTer:UL? | Read UL Frequency. Reads the UL center frequency (350 MHz to 6 GHz, FDD only). | None |
| FREQuency:CENTer <Freq> | Set TDD Center Frequency. Sets the center frequency used for UL and DL (TDD only). | Number |
| FREQuency:CENTer? | Read TDD Center Frequency. Reads the center frequency used for UL and DL (TDD only). | None |
| Command | What it does | Arguments |
|---|---|---|
| LTE:RADio:STANdard:PROFile <Bandwidth> | Set LTE Analysis Bandwidth. Sets the LTE analyzer channel bandwidth. | Text: 5MHz,10MHz,20MHz |
| LTE:RADio:STANdard:PROFile? | Read LTE Analysis Bandwidth. Reads the LTE analyzer channel bandwidth. | None |
| LTE:CHPower:AVERage ON | Turn On LTE Channel Power Averaging. Turns LTE channel power averaging on. | None |
| LTE:CHPower:AVERage OFF | Turn Off LTE Channel Power Averaging. Turns LTE channel power averaging off. | None |
| LTE:CHPower:AVERage? | Read LTE Channel Power Averaging State. Reads the on/off state set by Turn_On_LTE_Channel_Power_Averaging / Turn_Off_LTE_Channel_Power_Averaging. | None |
| LTE:CHPower:AVERage:NUMber <Count> | Set LTE Channel Power Average Count. Sets the LTE channel power average count. | Number |
| LTE:CHPower:AVERage:NUMber? | Read LTE Channel Power Average Count. Reads the LTE channel power average count. | None |
| LTE:CHPower:MEASure:POWer? | Measure LTE Channel Power. Returns the LTE channel power result in dBm. | None |
| LTE:OBWidth:POWer <Percent> | Set LTE OBW Power Percent. Sets the occupied bandwidth power percentage (10 to 99 %). | Number |
| LTE:OBWidth:POWer? | Read LTE OBW Power Percent. Reads the occupied bandwidth power percentage (10 to 99 %). | None |
| LTE:OBWidth:MEASure? | Measure LTE OBW. Returns the LTE occupied bandwidth results. | None |
| LTE:ACLR:MEASure:TABLe? | Measure LTE ACLR. Returns the LTE ACLR results table. | None |
| Command | What it does | Arguments |
|---|---|---|
| SYSTem:ERRor? | Read Error. Reads the next entry in the error queue. | None |
| SYSTem:VERSion? | Read System Version. Returns the system version. | None |
| SYSTem:ROSCillator:TIMebase? | Read Timebase Source. Returns the 10 MHz reference in use (INT or EXT). | None |
| SYSTem:COMMunicate:GPIB:ADDRess <Address> | Set GPIB Address. Sets the GPIB address (0 to 30). | Number |
| SYSTem:COMMunicate:GPIB:ADDRess? | Read GPIB Address. Reads the GPIB address (0 to 30). | None |
| SYSTem:COMMunicate:LAN:ADDRess "<IP>" | Set LAN Address. Sets the PXT IPv4 address. | Text |
| SYSTem:COMMunicate:LAN:ADDRess? | Read LAN Address. Returns the PXT IPv4 address. | None |
| SYSTem:COMMunicate:TCPip:PORT <Port> | Set SCPI TCP Port. Sets the TCP port used for SCPI over LAN (1 to 65535). | Number |
| SYSTem:COMMunicate:TCPip:PORT? | Read SCPI TCP Port. Reads the TCP port used for SCPI over LAN (1 to 65535). | None |
| SYSTem:COMMunicate:RUI:CONTrol <Type> | Set Remote Control Type. Sets the remote user interface control type. | Text: TCPip,GPIB,NONE |
| SYSTem:COMMunicate:RUI:CONTrol? | Read Remote Control Type. Reads the remote user interface control type. | None |
| Command | What it does | Arguments |
|---|---|---|
| RFConfig:OUTPUt:FRONt:RF1 <Port> | Set RF1 Front Output. Selects the RF1 front-panel output connector (TRX or TX). | Text: TRX,TX |
| RFConfig:OUTPUt:FRONt:RF1? | Read RF1 Front Output. Reads the RF1 front-panel output connector (TRX or TX). | None |
| RFConfig:OUTPUt:FRONt:RF2 <Port> | Set RF2 Front Output. Selects the RF2 front-panel output connector (TRX or TX). | Text: TRX,TX |
| RFConfig:OUTPUt:FRONt:RF2? | Read RF2 Front Output. Reads the RF2 front-panel output connector (TRX or TX). | None |
| RFConfig:INPUt:SELect <Input> | Set RF Input Select. Selects the RF input (RF1 or RF2). | Text: RF1,RF2 |
| RFConfig:INPUt:SELect? | Read RF Input Select. Reads the RF input (RF1 or RF2). | None |
| RFConfig:RCLock:SOURce <Source> | Set Reference Clock Source. Selects the reference clock source. | Text: AUTO,INTernal |
| RFConfig:RCLock:SOURce? | Read Reference Clock Source. Reads the reference clock source. | None |
| Command | What it does | Arguments |
|---|---|---|
| SA:MODE <Mode> | Set SA Mode. Selects the signal analyzer sub-mode (Spectrum, LTE or VSA for the 89600 VSA). | Text: SPECtrum,LTE,VSA |
| SA:MODE? | Read SA Mode. Reads the signal analyzer sub-mode (Spectrum, LTE or VSA for the 89600 VSA). | None |
| SA:LTE:MODE <Meas> | Set SA LTE Measurement. Selects the LTE signal analysis measurement (load a scenario first; do not run the simulator). | Text: CHPower,OBWidth,PVTime,SEMask,ACLR,ULCONStellation,ULPSPECtrum,ULIQRECeive,ULMAPINformation,ULERRVector,ULDECINformation,ULFLATness,ULMODSummary |
| SA:LTE:MODE? | Read SA LTE Measurement. Reads the LTE signal analysis measurement (load a scenario first. | None |
| SA:LTE:AUToconfig ON | Turn On SA LTE Auto Config. Synchronizes the LTE analyzer parameters with the BSE parameters. | None |
| SA:LTE:AUToconfig OFF | Turn Off SA LTE Auto Config. Stops synchronizing the LTE analyzer parameters with the BSE. | None |
| SA:LTE:AUToconfig? | Read SA LTE Auto Config State. Reads the on/off state set by Turn_On_SA_LTE_Auto_Config / Turn_Off_SA_LTE_Auto_Config. | None |
| Command | What it does | Arguments |
|---|---|---|
| ATTenuation:REFerence:LEVel:ALL <Level> | Set Reference Level All. Sets the analyzer reference level for all inputs in dBm (-120 to +50 dBm). | Number |
| ATTenuation:REFerence:LEVel:ALL? | Read Reference Level All. Reads the analyzer reference level for all inputs in dBm (-120 to +50 dBm). | None |
| ATTenuation:ALL <dB> | Set Input Attenuation. Sets the input attenuation for all inputs in dB. | Number |
| ATTenuation:ALL? | Read Input Attenuation. Reads the input attenuation for all inputs in dB. | None |
| ATTenuation:ALL:MODE <Mode> | Set Attenuation Mode. Sets the attenuation mode (adaptive adjusts attenuation on overflow). | Text: AUTO,MANUal,ADAPtive |
| ATTenuation:ALL:MODE? | Read Attenuation Mode. Reads the attenuation mode (adaptive adjusts attenuation on overflow). | None |
| ATTenuation:OVF? | Read Overflow State. Returns whether an input overflow (OVF) is detected. | None |
| Command | What it does | Arguments |
|---|---|---|
| RFOutput1:STATe ON | Turn On RF1 Output. Turns the RF1 output on. | None |
| RFOutput1:STATe OFF | Turn Off RF1 Output. Turns the RF1 output off. | None |
| RFOutput1:STATe? | Read RF1 Output State. Reads the on/off state set by Turn_On_RF1_Output / Turn_Off_RF1_Output. | None |
| RFOutput2:STATe ON | Turn On RF2 Output. Turns the RF2 output on. | None |
| RFOutput2:STATe OFF | Turn Off RF2 Output. Turns the RF2 output off. | None |
| RFOutput2:STATe? | Read RF2 Output State. Reads the on/off state set by Turn_On_RF2_Output / Turn_Off_RF2_Output. | None |
| Command | What it does | Arguments |
|---|---|---|
| MODulation1:STATe ON | Turn On RF1 Modulation. Turns RF1 modulation on. | None |
| MODulation1:STATe OFF | Turn Off RF1 Modulation. Turns RF1 modulation off. | None |
| MODulation1:STATe? | Read RF1 Modulation State. Reads the on/off state set by Turn_On_RF1_Modulation / Turn_Off_RF1_Modulation. | None |
| MODulation2:STATe ON | Turn On RF2 Modulation. Turns RF2 modulation on. | None |
| MODulation2:STATe OFF | Turn Off RF2 Modulation. Turns RF2 modulation off. | None |
| MODulation2:STATe? | Read RF2 Modulation State. Reads the on/off state set by Turn_On_RF2_Modulation / Turn_Off_RF2_Modulation. | None |
| Command | What it does | Arguments |
|---|---|---|
| SPECtrum:CHPower:FREQuency:SPAN <Span> | Set Spectrum Channel Power Span. Sets the spectrum channel power frequency span in Hz. | Number |
| SPECtrum:CHPower:FREQuency:SPAN? | Read Spectrum Channel Power Span. Reads the spectrum channel power frequency span in Hz. | None |
| SPECtrum:CHPower:MEASure:POWer? | Measure Spectrum Channel Power. Returns the spectrum-mode channel power in dBm. | None |
| SPECtrum:OBWidth:MEASure? | Measure Spectrum OBW. Returns the spectrum-mode occupied bandwidth results. | None |
| SPECtrum:CCDF:MEASure? | Measure CCDF. Returns the CCDF measurement results. | None |
| Command | What it does | Arguments |
|---|---|---|
| TRIGger:SOURce <Source> | Set Trigger Source. Selects the analyzer trigger source. | Text: FREERun,EXTernal,INTernal |
| TRIGger:SOURce? | Read Trigger Source. Reads the analyzer trigger source. | None |
| TRIGger:EXTernal:SLOPe <Slope> | Set External Trigger Slope. Sets the external trigger slope. | Text: POSitive,NEGative |
| TRIGger:EXTernal:SLOPe? | Read External Trigger Slope. Reads the external trigger slope. | None |
| Command | What it does | Arguments |
|---|---|---|
| SIGNal:MODE <Mode> | Set Signal Mode. Selects the main operating mode: base station emulator (BSE) or signal analyzer (SA). | Text: SA,BSE |
| SIGNal:MODE? | Read Signal Mode. Reads the main operating mode: base station emulator (BSE) or signal analyzer (SA). | None |
| Command | What it does | Arguments |
|---|---|---|
| ULMODulation:SLOTs:SUMMary? | Read UL Slot Summary. Returns per-slot UL modulation results (frequency error, IQ offset, EVM). | None |
| ULMODulation:OVERall:SUMMary? | Read UL Overall Summary. Returns the overall UL modulation quality (frequency error, IQ offset, PUSCH/PUCCH EVM). | None |
| Command | What it does | Arguments |
|---|---|---|
| SWEep:TIME <us> | Set Sweep Time. Sets the analyzer sweep time in microseconds. | Number |
| SWEep:TIME? | Read Sweep Time. Reads the analyzer sweep time in microseconds. | None |
| Command | What it does | Arguments |
|---|---|---|
| REGister:SAVE:INDex <Register> | Save Register. Saves the instrument settings to a register (1 to 7). | Number: 1,2,3,4,5,6,7 |
| REGister:RECall:INDex <Register> | Recall Register. Recalls the instrument settings from a register (1 to 7). | Number: 1,2,3,4,5,6,7 |
| Command | What it does | Arguments |
|---|---|---|
| SCENArio:LOAD "<File>" | Load Scenario. Loads a PXT configuration scenario file. | Text |
| Command | What it does | Arguments |
|---|---|---|
| PVTime:MEASure:TABLe? | Measure LTE PVT. Returns the LTE power versus time results table. | None |
| Command | What it does | Arguments |
|---|---|---|
| SEMask:MEASure:MAIN:TABLe? | Measure LTE SEM. Returns the LTE spectrum emission mask main results table. | None |
| Command | What it does | Arguments |
|---|---|---|
| CONTinue:MODE | Continuous Mode. Sets the analyzer to continuous measurement mode. | None |
| Command | What it does | Arguments |
|---|---|---|
| SINGle:MODE | Single Mode. Performs a single measurement. | None |
| Command | What it does | Arguments |
|---|---|---|
| STATus:PRESet | Status Preset. Presets the status registers. | None |
| Command | What it does | Arguments |
|---|---|---|
| REBOot | Reboot. Reboots the PXT instrument. | None |
| Command | What it does | Arguments |
|---|---|---|
| SHUTDown | Shutdown. Shuts down the PXT instrument. | None |
| Command | What it does | Arguments |
|---|---|---|
| <Output Variable>=<Equation> | Math. Variable equals an equation like (${Var_name}= ${Var_name}/2) | Number; Text |
| Command | What it does | Arguments |
|---|---|---|
| wait(<ms>) | Wait. Waits for number of milliseconds | Number |
| Command | What it does | Arguments |
|---|---|---|
| save2var <Variable_name> | Save2Variable. Saves last measurement to a variable | Text |
| Command | What it does | Arguments |
|---|---|---|
| *VER? | Read Firmware Version. Returns the firmware version (prefer *IDN?). | None |
| *IDN? | Identify. Returns the instrument identification string. | None |
| *CLS | Clear Status. Clears the error queue. | None |
| *OPT? | Read Options. Returns the application option and license information. | None |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. | None |
This reference is generated from TestFlow's instrument library, which is drafted from Keysight's programming documentation for the E6621A and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Keysight's programming manual: check it before you rely on an edge case. Last updated September 27, 2026.
Yes. The Keysight E6621A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 230 SCPI commands for it: 113 queries that read values or state, and 117 settings and actions.
Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, SA:LTE:AUToconfig ON and LTE:CHPower:MEASure:POWer?.
LTE:CHPower:MEASure:POWer? (measure lte channel power). Returns the LTE channel power result in dBm. The full list of queries is in the command reference on this page, grouped by subsystem.
Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Keysight E6621A through the TestFlow desktop app, and writes the report from the measured results.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.