Connecting to Keysight N9000A by Agilent in Python
Instrument Card
N9000A CXA Signal Analyzer, 9 kHz to 26.5 GHz
Device Specification: here
Manufacturer card: 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
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a Keysight N9000A Spectrum Analyzer using Qcodes Community, you can use the following Python script:
from qcodes import Station, Instrumentfrom qcodes.instrument_drivers.Keysight.Keysight_N9000A import Keysight_N9000A
# Create a station to hold the instrumentstation = Station()
# Connect to the Keysight N9000A Spectrum Analyzern9000a = Keysight_N9000A('n9000a', 'TCPIP0::192.168.1.1::inst0::INSTR')station.add_component(n9000a)
# Print the RF center frequencyprint(n9000a.rf_center_frequency())
# Set the video bandwidth to 10 MHzn9000a.video_bandwidth(10)
# Print the powerprint(n9000a.power())
# Close the connectionn9000a.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.