Copper Mountain instrument command references

Remote-control command sets for 23 Copper Mountain instruments from TestFlow's instrument library, each with its arguments and a working PyVISA example.

The library covers 23 vector network analyzers from Copper Mountain: 168 commands in total, 40 of them queries that read a value or a setting back. These are the commands TestFlow's agent sends when it automates a test on Copper Mountain hardware, so every entry is one that drives a real instrument.

Copper Mountain vector network analyzers

Commands shared across Copper Mountain instruments

These commands appear on more than one Copper Mountain instrument in the library, so a script that uses them carries over between models.

CommandWhat it doesModels
*CLSClears all event registers and the error queue.3 of 3
*IDN?Returns the instrument identification string (manufacturer, model, serial, firmware).3 of 3
*OPC?Returns 1 when all pending operations are complete.3 of 3
*RSTResets the instrument to its default state.3 of 3
*TRGGenerates a bus trigger when the instrument is in wait-for-trigger state.3 of 3
*WAIWaits until all pending operations are complete before continuing.3 of 3
CALCulate:DATA:FDATa?Returns the formatted trace data array for the selected measurement.3 of 3
CALCulate:DATA:SDATa?Returns the corrected complex (real/imag) trace data array.3 of 3

Control a Copper Mountain instrument from Python

The pattern is the same for every Copper Mountain instrument here: open it through VISA, identify it, then write settings and query values. This example uses the Copper Mountain C1209; the full C1209 reference has every command.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find the Copper Mountain C1209's VISA address

# Paste the address of your Copper Mountain C1209 (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")  # RF Power On
print(inst.query("SENSe:FREQuency:STARt?"))  # Read Start Freq

inst.close()

Related guides

Frequently asked questions

Which Copper Mountain instruments have a command reference here?

23 Copper Mountain models (vector network analyzer): C1209, C1220, C2209, C2220, C4209, C4220, M5045, M5065, M5090, S5048, S5065, S5085, S5180, S5180B, S5243, SC5065, SC5090, R140, R180, R60, TR1300_1, TR5048, TR7530. Each page lists every remote-control command TestFlow's agent uses for that instrument, with its arguments.

Do Copper Mountain instruments use SCPI?

Yes. Every Copper Mountain model in TestFlow's library is programmed with SCPI commands over its remote interfaces, including the IEEE 488.2 common commands such as *IDN? and *RST.

How do I control a Copper Mountain instrument from Python?

Install PyVISA and a VISA backend, list the connected instruments with ResourceManager().list_resources(), open the Copper Mountain instrument by its VISA address (USB, LAN or GPIB), then send commands with write() and read values with query(). Each model page has a working example.

Can I automate Copper Mountain instruments without writing code?

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 your Copper Mountain instruments through the TestFlow desktop app, and writes the report from the measured results.

Your next test, automated today

Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.