Skip to content

Connecting to Keysight N9000A by Agilent in Python

Instrument Card

N9000A CXA Signal Analyzer, 9 kHz to 26.5 GHz

Keysight N9000A

Device Specification: here

Manufacturer card: AGILENT

AGILENT

Keysight Technologies, or Keysight, is an American company that manufactures electronics test and measurement equipment and software

  • Headquarters: USA
  • Yearly Revenue (millions, USD): 5420
  • Vendor Website: here

Connect to the Keysight N9000A in Python

PROTOCOLS > SCPI

To connect to a Keysight N9000A Spectrum Analyzer using Qcodes Community, you can use the following Python script:

from qcodes import Station, Instrument
from qcodes.instrument_drivers.Keysight.Keysight_N9000A import Keysight_N9000A
# Create a station to hold the instrument
station = Station()
# Connect to the Keysight N9000A Spectrum Analyzer
n9000a = Keysight_N9000A('n9000a', 'TCPIP0::192.168.1.1::inst0::INSTR')
station.add_component(n9000a)
# Print the RF center frequency
print(n9000a.rf_center_frequency())
# Set the video bandwidth to 10 MHz
n9000a.video_bandwidth(10)
# Print the power
print(n9000a.power())
# Close the connection
n9000a.close()

Note: Replace 'TCPIP0::192.168.1.1::inst0::INSTR' with the actual IP address or VISA resource string of your Keysight N9000A Spectrum Analyzer.