The Anritsu MG3710A and MG3710E vector signal generator is controlled remotely with SCPI commands. TestFlow's instrument library holds 176 commands for it, 53 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 MG3710A on a real bench.
Describe the test; TestFlow's agent uses this command set to drive your Anritsu MG3710A or MG3710E 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 Anritsu MG3710A's VISA address
# Paste the address of your Anritsu MG3710A (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(":OUTPut:STATe ON") # Turn On RF Output
print(inst.query(":OUTPut:STATe?")) # Read RF Output State
inst.close()Describe the test; TestFlow's agent uses this command set to drive your Anritsu MG3710A or MG3710E and writes the report from the measured results.
Describe the test in a sentence, for example “turn on rf output on the MG3710A, then read rf output state 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.
176 commands in 9 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The MG3710A and MG3710E share this command set in TestFlow's library.
| Command | What it does | Arguments |
|---|---|---|
| :SOURce:FREQuency:CW <Freq> | Set Frequency. Sets the CW/fixed RF output frequency in Hz (100 kHz to 6 GHz depending on installed options). | Number |
| :SOURce:FREQuency:CW? | Read Frequency. Reads the current CW/fixed RF output frequency in Hz. | None |
| :SOURce2:FREQuency:CW <Freq> | Set Frequency SG2. Sets the CW/fixed RF frequency of the second signal generator in Hz. | Number |
| :SOURce2:FREQuency:CW? | Read Frequency SG2. Reads the CW/fixed RF frequency of the second signal generator in Hz. | None |
| :SOURce:FREQuency:MODE <Mode> | Set Frequency Mode. Sets the frequency entry mode (fixed CW value or list sweep). | Text: CW,FIXed,LIST |
| :SOURce:FREQuency:MODE? | Read Frequency Mode. Reads the current frequency entry mode. | None |
| :SOURce:FREQuency:CENTer <Freq> | Set Frequency Center. Sets the center frequency of the sweep range in Hz. | Number |
| :SOURce:FREQuency:CENTer? | Read Frequency Center. Reads the sweep center frequency in Hz. | None |
| :SOURce:FREQuency:SPAN <Freq> | Set Frequency Span. Sets the span of the sweep range in Hz. | Number |
| :SOURce:FREQuency:STARt <Freq> | Set Frequency Start. Sets the start frequency of the sweep range in Hz. | Number |
| :SOURce:FREQuency:STARt? | Read Frequency Start. Reads the sweep start frequency in Hz. | None |
| :SOURce:FREQuency:STOP <Freq> | Set Frequency Stop. Sets the stop frequency of the sweep range in Hz. | Number |
| :SOURce:FREQuency:STOP? | Read Frequency Stop. Reads the sweep stop frequency in Hz. | None |
| :SOURce:FREQuency:OFFSet <Freq> | Set Frequency Offset. Sets a frequency offset added to the displayed RF frequency. | Number |
| :SOURce:FREQuency:OFFSet? | Read Frequency Offset. Reads the current frequency offset in Hz. | None |
| :SOURce:FREQuency:OFFSet:STATe ON | Turn On Frequency Offset. Applies the configured frequency offset to the displayed frequency. | None |
| :SOURce:FREQuency:OFFSet:STATe OFF | Turn Off Frequency Offset. Removes the frequency offset from the displayed frequency. | None |
| :SOURce:FREQuency:MULTiplier <Mult> | Set Frequency Multiplier. Sets the multiplication factor applied to the displayed RF frequency. | Number |
| :SOURce:FREQuency:MULTiplier:STATe ON | Turn On Frequency Multiplier. Applies the configured frequency multiplier to the displayed frequency. | None |
| :SOURce:FREQuency:MULTiplier:STATe OFF | Turn Off Frequency Multiplier. Removes the frequency multiplier from the displayed frequency. | None |
| :SOURce:FREQuency:STEP:INCRement <Freq> | Set Frequency Step. Sets the frequency step size used by UP and DOWN increments in Hz. | Number |
| :SOURce:FREQuency:CHANnels:NUMBer <Chan> | Set Channel Number. Selects the channel number when channel-based frequency entry is used. | Number |
| :SOURce:FREQuency:CHANnels:GROup <Group> | Set Channel Group. Selects the channel group used for channel-based frequency entry. | Number |
| :SOURce:FREQuency:CHANnels:DISPlay ON | Turn On Channel Display. Displays the frequency as a channel number. | None |
| :SOURce:FREQuency:CHANnels:DISPlay OFF | Turn Off Channel Display. Displays the frequency as an absolute value in Hz. | None |
| :SOURce:FREQuency:SYNC:STATus? | Read Frequency Sync Status. Reads the frequency synchronization status between the signal generators. | None |
| :SOURce:POWer:LEVel:IMMediate:AMPLitude <Power> | Set Power Level. Sets the RF output power level in dBm. | Number |
| :SOURce:POWer:LEVel:IMMediate:AMPLitude? | Read Power Level. Reads the current RF output power level in dBm. | None |
| :SOURce2:POWer:LEVel:IMMediate:AMPLitude <Power> | Set Power Level SG2. Sets the RF output power level of the second signal generator in dBm. | Number |
| :SOURce2:POWer:LEVel:IMMediate:AMPLitude? | Read Power Level SG2. Reads the RF output power level of the second signal generator in dBm. | None |
| :SOURce:POWer:LEVel:IMMediate:OFFSet <Offset> | Set Power Offset. Sets a power offset in dB added to the displayed RF level. | Number |
| :SOURce:POWer:LEVel:IMMediate:OFFSet:STATe ON | Turn On Power Offset. Applies the configured power offset to the displayed level. | None |
| :SOURce:POWer:LEVel:IMMediate:OFFSet:STATe OFF | Turn Off Power Offset. Removes the power offset from the displayed level. | None |
| :SOURce:POWer:MODE <Mode> | Set Power Mode. Sets the RF power entry mode (fixed level or list sweep). | Text: FIXed,LIST |
| :SOURce:POWer:MODE? | Read Power Mode. Reads the current RF power entry mode. | None |
| :SOURce:POWer:STARt <Power> | Set Power Start. Sets the start level of the power sweep range in dBm. | Number |
| :SOURce:POWer:STOP <Power> | Set Power Stop. Sets the stop level of the power sweep range in dBm. | Number |
| :SOURce:POWer:CURRent? | Read Current Power. Reads the RF power currently being output in dBm. | None |
| :SOURce:POWer:ATTenuation:AUTO ON | Turn On Attenuator Auto. Couples the step attenuator to the power level setting. | None |
| :SOURce:POWer:ATTenuation:AUTO OFF | Turn Off Attenuator Auto. Fixes the step attenuator so the level is set with the ALC only. | None |
| :SOURce:POWer:ALC:SEARch ONCE | Execute ALC Search. Runs one automatic level control search to calibrate the output level. | None |
| :SOURce:POWer:REFerence:AMPLitude <Power> | Set Power Reference. Sets the power reference level in dBm used for relative level display. | Number |
| :SOURce:POWer:REFerence:STATe ON | Turn On Power Reference. Enables relative power display against the stored reference. | None |
| :SOURce:POWer:REFerence:STATe OFF | Turn Off Power Reference. Disables relative power display. | None |
| :SOURce:POWer:USER:MAX <Power> | Set User Max Power. Sets a user-defined maximum output level limit in dBm. | Number |
| :SOURce:POWer:USER:ENABle ON | Turn On User Power Limit. Enables the user-defined maximum output level limit. | None |
| :SOURce:POWer:USER:ENABle OFF | Turn Off User Power Limit. Disables the user-defined maximum output level limit. | None |
| :SOURce:POWer:NOISe:STATe ON | Turn On Power Noise. Adds the internal noise generator to the RF output. | None |
| :SOURce:POWer:NOISe:STATe OFF | Turn Off Power Noise. Removes the internal noise generator from the RF output. | None |
| :SOURce:POWer:UNLeveled:ERRor? | Read Unleveled Error. Reads whether the output level is currently unleveled. | None |
| :SOURce:PHASe:ADJust <Phase> | Set Phase. Adjusts the phase of the RF output signal in degrees. | Number |
| :SOURce:PHASe:ADJust? | Read Phase. Reads the current RF phase adjustment in degrees. | None |
| :SOURce:ROSCillator:SOURce:AUTO ON | Set Reference Oscillator Source Auto. Lets the instrument select the reference oscillator source automatically. | None |
| :SOURce:ROSCillator:SOURce:AUTO OFF | Set Reference Oscillator Source Manual. Forces manual selection of the reference oscillator source. | None |
| :SOURce:ROSCillator:FREQuency:EXTernal <Freq> | Set External Reference Frequency. Sets the expected frequency of the external reference input in Hz. | Number |
| :SOURce:ROSCillator:FREQuency:EXTernal? | Read External Reference Frequency. Reads the configured external reference input frequency in Hz. | None |
| :SOURce:SWEep:DWELl <Sec> | Set Sweep Dwell Time. Sets the dwell time per sweep point in seconds. | Number |
| :SOURce:SWEep:DWELl? | Read Sweep Dwell Time. Reads the sweep dwell time in seconds. | None |
| :SOURce:SWEep:POINts <N> | Set Sweep Points. Sets the number of points in the sweep. | Number |
| :SOURce:SWEep:POINts? | Read Sweep Points. Reads the number of sweep points. | None |
| :SOURce:SWEep:SHAPe <Shape> | Set Sweep Shape. Selects the sweep cycle shape. | Text: SAWTooth,TRIangle |
| :SOURce:SWEep:SHAPe? | Read Sweep Shape. Reads the current sweep cycle shape. | None |
| :SOURce:LIST:FREQuency:POINts? | Read List Frequency Points. Reads the number of frequency entries in the list. | None |
| :SOURce:LIST:POWer:POINts? | Read List Power Points. Reads the number of power entries in the list. | None |
| :SOURce:DM:SOURce <Source> | Set IQ Source. Selects whether the I/Q modulator is driven by the internal baseband or the external analog I/Q inputs. | Text: INTernal,AEXTernal |
| :SOURce:DM:SOURce? | Read IQ Source. Reads the currently selected I/Q modulation source. | None |
| :SOURce:DM:OUTPut <Dest> | Set IQ Output Destination. Routes the baseband signal to the RF output or to the analog I/Q output connectors. | Text: RFOut,AEXTernal |
| :SOURce:DM:OUTPut? | Read IQ Output Destination. Reads the current baseband routing destination. | None |
| :SOURce:DM:WIDeband ON | Turn On IQ Wideband. Enables the wideband I/Q modulation path. | None |
| :SOURce:DM:WIDeband OFF | Turn Off IQ Wideband. Disables the wideband I/Q modulation path. | None |
| :SOURce:DM:POLarity:ALL <Pol> | Set IQ Polarity. Sets the polarity of the I and Q signals. | Text: NORMal,INVert |
| :SOURce:DM:INTernal:CHANnel:CORRection:STATe ON | Turn On IQ Channel Correction. Enables internal I/Q channel correction. | None |
| :SOURce:DM:INTernal:CHANnel:CORRection:STATe OFF | Turn Off IQ Channel Correction. Disables internal I/Q channel correction. | None |
| :SOURce:DM:IQADjustment:GAIN <Gain> | Set IQ Gain Balance. Sets the I/Q gain balance in dB. | Number |
| :SOURce:DM:IQADjustment:GAIN? | Read IQ Gain Balance. Reads the current I/Q gain balance in dB. | None |
| :SOURce:DM:IQADjustment:IOFFset <Offset> | Set IQ I Offset. Sets the I channel DC offset as a percentage of full scale. | Number |
| :SOURce:DM:IQADjustment:QOFFset <Offset> | Set IQ Q Offset. Sets the Q channel DC offset as a percentage of full scale. | Number |
| :SOURce:DM:IQADjustment:QSKew <Skew> | Set IQ Quadrature Skew. Sets the quadrature angle error between the I and Q channels in degrees. | Number |
| :SOURce:DM:IQADjustment:PHASe <Phase> | Set IQ Phase. Sets the phase adjustment applied to the I/Q signal in degrees. | Number |
| :SOURce:DM:IQADjustment:DELay <Sec> | Set IQ Delay. Sets the delay applied to the I/Q signal in seconds. | Number |
| :SOURce:DM:IQADjustment:SKEW <Sec> | Set IQ Skew. Sets the timing skew between the I and Q channels in seconds. | Number |
| :SOURce:DM:DAC:ERRor? | Read IQ DAC Error. Reads the baseband DAC error status. | None |
| :SOURce:RADio:ARB:STATe ON | Turn On ARB. Enables the arbitrary waveform (baseband pattern) generator. | None |
| :SOURce:RADio:ARB:STATe OFF | Turn Off ARB. Disables the arbitrary waveform generator. | None |
| :SOURce:RADio:ARB:STATe? | Read ARB State. Reads whether the ARB generator is enabled. | None |
| :SOURce:RADio:ARB:WAVeform <File> | Load ARB Waveform. Selects the waveform pattern for the ARB generator to play. | Text |
| :SOURce:RADio:ARB:WAVeform? | Read ARB Waveform. Reads the name of the waveform pattern currently selected. | None |
| :SOURce:RADio:ARB:WAVeform:RESTart | Restart ARB Waveform. Restarts playback of the currently selected waveform pattern. | None |
| :SOURce:RADio:ARB:FREQuency:OFFSet <Freq> | Set ARB Frequency Offset. Sets a frequency offset applied to the ARB baseband signal in Hz. | Number |
| :SOURce:RADio:ARB:FREQuency:OFFSet? | Read ARB Frequency Offset. Reads the ARB baseband frequency offset in Hz. | None |
| :SOURce:RADio:ARB:NOISe:STATe ON | Turn On ARB Noise. Adds the internal AWGN generator to the ARB baseband signal. | None |
| :SOURce:RADio:ARB:NOISe:STATe OFF | Turn Off ARB Noise. Removes the internal AWGN generator from the ARB baseband signal. | None |
| :SOURce:RADio:ARB:NOISe:CN <Ratio> | Set ARB Carrier To Noise. Sets the carrier-to-noise ratio of the added AWGN in dB. | Number |
| :SOURce:RADio:ARB:NOISe:CN? | Read ARB Carrier To Noise. Reads the configured carrier-to-noise ratio in dB. | None |
| :SOURce:RADio:ARB:NOISe:BANDwidth? | Read ARB Noise Bandwidth. Reads the AWGN bandwidth in Hz. | None |
| :SOURce:RADio:ARB:NOISe:POWer:CARRier <Power> | Set ARB Noise Carrier Power. Sets the carrier power used by the noise generator in dBm. | Number |
| :SOURce:RADio:ARB:NOISe:POWer:NOISe <Power> | Set ARB Noise Power. Sets the noise power used by the noise generator in dBm. | Number |
| :SOURce:RADio:ARB:POWer:RATio <Ratio> | Set ARB Power Ratio. Sets the power ratio between the two memory patterns in dB. | Number |
| :SOURce:RADio:ARB:POWer:RATio:TARGet <Target> | Set ARB Power Ratio Target. Selects which memory the power ratio applies to. | Text: A,B,AB |
| :SOURce:RADio:ARB:CSIGnal <Sig> | Set ARB Combined Signal. Selects which memory pattern or combination is output. | Text: A,B,BDC |
| :SOURce:RADio:ARB:RMSTuning <Value> | Set ARB RMS Tuning. Applies an RMS level correction to the ARB waveform in dB. | Number |
| :SOURce:RADio:ARB:RFGate ON | Turn On ARB RF Gate. Enables RF gating so the RF output is muted between bursts. | None |
| :SOURce:RADio:ARB:RFGate OFF | Turn Off ARB RF Gate. Disables RF gating. | None |
| :SOURce:RADio:ARB:RETRigger ON | Turn On ARB Retrigger. Allows a new trigger to restart waveform playback while it is running. | None |
| :SOURce:RADio:ARB:RETRigger OFF | Turn Off ARB Retrigger. Ignores triggers received while waveform playback is running. | None |
| :SOURce:RADio:ARB:TRIGger:MODE <Mode> | Set ARB Trigger Mode. Selects whether a trigger starts the waveform or advances one frame. | Text: STARt,FRAMe |
| :SOURce:RADio:ARB:TRIGger:DELay <Samples> | Set ARB Trigger Delay. Sets the ARB trigger delay in samples. | Number |
| :SOURce:RADio:ARB:TRIGger:FRAMe:COUNt <N> | Set ARB Frame Count. Sets the number of frames output per trigger in frame trigger mode. | Number |
| :SOURce:RADio:ARB:CLOCk:REFerence:SOURce <Source> | Set ARB Clock Reference. Selects the reference clock source used by the baseband generator. | Text: INTernal,EXTernal |
| :SOURce:RADio:ARB:REGister:STATus? | Read ARB Register Status. Reads the ARB status register indicating waveform load and playback state. | None |
| :SOURce:RADio:ALL:OFF | Turn Off All Modulation. Turns off all modulation functions of the selected signal generator. | None |
| :SOURce:AM:STATe ON | Turn On AM. Enables amplitude modulation. | None |
| :SOURce:AM:STATe OFF | Turn Off AM. Disables amplitude modulation. | None |
| :SOURce:AM:STATe? | Read AM State. Reads whether amplitude modulation is enabled. | None |
| :SOURce:AM:DEPTh:LINear <Percent> | Set AM Depth. Sets the linear AM depth as a percentage. | Number |
| :SOURce:AM:DEPTh:LINear? | Read AM Depth. Reads the linear AM depth percentage. | None |
| :SOURce:AM:DEPTh:EXPonential <Value> | Set AM Depth Exponential. Sets the exponential AM depth in dB per volt. | Number |
| :SOURce:AM:TYPE <Type> | Set AM Type. Selects linear or exponential amplitude modulation. | Text: LINear,EXPonential |
| :SOURce:AM:SOURce <Source> | Set AM Source. Selects the amplitude modulation source. | Text: INT,INT1,INT2,EXT |
| :SOURce:AM:INTernal:FREQuency <Freq> | Set AM Internal Frequency. Sets the internal AM modulating frequency in Hz. | Number |
| :SOURce:AM:INTernal:FREQuency? | Read AM Internal Frequency. Reads the internal AM modulating frequency in Hz. | None |
| :SOURce:FM:STATe ON | Turn On FM. Enables frequency modulation. | None |
| :SOURce:FM:STATe OFF | Turn Off FM. Disables frequency modulation. | None |
| :SOURce:FM:STATe? | Read FM State. Reads whether frequency modulation is enabled. | None |
| :SOURce:FM:DEViation <Freq> | Set FM Deviation. Sets the FM peak frequency deviation in Hz. | Number |
| :SOURce:FM:DEViation? | Read FM Deviation. Reads the FM peak frequency deviation in Hz. | None |
| :SOURce:FM:INTernal:FREQuency <Freq> | Set FM Internal Frequency. Sets the internal FM modulating frequency in Hz. | Number |
| :SOURce:FM:INTernal:FREQuency? | Read FM Internal Frequency. Reads the internal FM modulating frequency in Hz. | None |
| :SOURce:PM:STATe ON | Turn On PM. Enables phase modulation. | None |
| :SOURce:PM:STATe OFF | Turn Off PM. Disables phase modulation. | None |
| :SOURce:PM:STATe? | Read PM State. Reads whether phase modulation is enabled. | None |
| :SOURce:PM:DEViation <Dev> | Set PM Deviation. Sets the PM peak phase deviation in radians. | Number |
| :SOURce:PM:INTernal:FREQuency <Freq> | Set PM Internal Frequency. Sets the internal PM modulating frequency in Hz. | Number |
| :SOURce:PULM:STATe ON | Turn On Pulse Modulation. Enables pulse modulation. | None |
| :SOURce:PULM:STATe OFF | Turn Off Pulse Modulation. Disables pulse modulation. | None |
| :SOURce:PULM:STATe? | Read Pulse Modulation State. Reads whether pulse modulation is enabled. | None |
| :SOURce:PULM:INTernal:FREQuency <Freq> | Set Pulse Internal Frequency. Sets the internal pulse repetition frequency in Hz. | Number |
| :SOURce:PULM:INTernal:FREQuency? | Read Pulse Internal Frequency. Reads the internal pulse repetition frequency in Hz. | None |
| Command | What it does | Arguments |
|---|---|---|
| :OUTPut:STATe ON | Turn On RF Output. Enables the RF output of the selected signal generator. | None |
| :OUTPut:STATe OFF | Turn Off RF Output. Disables the RF output of the selected signal generator. | None |
| :OUTPut:STATe? | Read RF Output State. Reads whether the RF output is currently ON or OFF. | None |
| :OUTPut2:STATe ON | Turn On RF Output SG2. Enables the RF output of the second signal generator (requires the 2nd SG option). | None |
| :OUTPut2:STATe OFF | Turn Off RF Output SG2. Disables the RF output of the second signal generator (requires the 2nd SG option). | None |
| :OUTPut2:STATe? | Read RF Output State SG2. Reads the RF output state of the second signal generator. | None |
| :OUTPut:MODulation:STATe ON | Turn On Modulation. Enables modulation of the RF output signal. | None |
| :OUTPut:MODulation:STATe OFF | Turn Off Modulation. Disables modulation of the RF output signal. | None |
| :OUTPut:MODulation:STATe? | Read Modulation State. Reads whether RF modulation is enabled. | None |
| :OUTPut:PROTection:COUNt? | Read Output Protection Count. Reads how many times the reverse power protection has tripped. | None |
| :OUTPut:PROTection:ERRor? | Read Output Protection Error. Reads the reverse power protection error status. | None |
| Command | What it does | Arguments |
|---|---|---|
| :MMEMory:STORe:STATe <File> | Save State. Stores the current instrument state to the named file. | Text |
| :MMEMory:LOAD:STATe <File> | Load State. Recalls an instrument state from the named file. | Text |
| :MMEMory:LOAD:LIST <File> | Load List. Loads a frequency/level list from the named file. | Text |
| :MMEMory:LOAD:WFM:ALL | Load All Waveforms. Loads all waveform patterns from storage into waveform memory. | None |
| :MMEMory:DELete:WAVeform:NAME <File> | Delete Waveform. Deletes the named waveform pattern from waveform memory. | Text |
| :MMEMory:COPY:WAVeform:ALL | Copy All Waveforms. Copies all waveform patterns to waveform memory. | None |
| :MMEMory:WAVeform:SINGle:VERSion? | Read Waveform Version. Reads the version of the currently selected waveform pattern. | None |
| Command | What it does | Arguments |
|---|---|---|
| :SYSTem:ERRor:NEXT? | Read Error. Reads and removes the next entry from the error queue. | None |
| :SYSTem:ERRor:CODE:NEXT? | Read Error Code. Reads the numeric code of the next error queue entry. | None |
| :SYSTem:BEEPer ON | Turn On Beeper. Enables the system beeper. | None |
| :SYSTem:BEEPer OFF | Turn Off Beeper. Disables the system beeper. | None |
| :SYSTem:LANGuage <Mode> | Set Language Mode. Selects the remote command language mode used by the instrument. | Text: SCPI,MG3700,MS269X,MS2830,MG364X |
| :SYSTem:FPReset | Factory Preset. Restores the instrument to its factory preset state. | None |
| :SYSTem:HARDware:OPTion:CATalog? | Read Hardware Options. Lists the hardware options installed in the instrument. | None |
| Command | What it does | Arguments |
|---|---|---|
| :UNIT:POWer <Unit> | Set Power Unit. Sets the unit used for RF level entry and display. | Text: DBM,DBUV,DBUVEMF |
| :UNIT:POWer? | Read Power Unit. Reads the unit currently used for RF level display. | 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 |
|---|---|---|
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). | None |
| *RST | Reset. Resets the instrument to its default state. | None |
| *CLS | Clear Status. Clears all event registers and the error queue. | None |
| *TST? | Self Test. Runs the self-test and returns 0 for pass or 1 for failure. | None |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. | None |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. | None |
| *TRG | Trigger Bus. Generates a bus trigger when the instrument is in wait-for-trigger state. | None |
| *OPT? | Read Options. Returns the list of options installed in the instrument. | None |
This reference is generated from TestFlow's instrument library, which is drafted from Anritsu's programming documentation for the MG3710A and MG3710E and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Anritsu's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.
Yes. The Anritsu MG3710A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 176 SCPI commands for it: 53 queries that read values or state, and 123 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?, :OUTPut:STATe ON and :OUTPut:STATe?.
:OUTPut:STATe? (read rf output state). Reads whether the RF output is currently ON or OFF. 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 Anritsu MG3710A 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.