Skip to content

Connecting to Keysight P9374A by Keysight in Python

Instrument Card

P9374A Keysight Streamline USB Vector Network Analyzer, 20 GHz. Compact, faceless, USB vector network analyzer (VNA). Affordable full two-port VNA which dramatically reduces your size of test. Up to 20 GHz.

Keysight P9374A

Device Specification: here

Manufacturer card: KEYSIGHT

KEYSIGHT

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 P9374A in Python

PROTOCOLS > SCPI

import qcodes as qc
from qcodes.instrument_drivers.Keysight.Keysight_P9374A import KeysightP9374A
# Create an instance of the KeysightP9374A instrument
pna = KeysightP9374A('pna', 'TCPIP0::192.168.1.1::inst0::INSTR')
# Connect to the instrument
pna.connect()
# Perform operations with the instrument
pna.get_options()
# Disconnect from the instrument
pna.disconnect()

Explanation:

  1. Import the necessary modules: qcodes and the KeysightP9374A instrument driver.
  2. Create an instance of the KeysightP9374A instrument with a name (‘pna’) and the instrument’s address (‘TCPIP0::192.168.1.1::inst0::INSTR’).
  3. Connect to the instrument using the connect() method.
  4. Perform operations with the instrument, in this case, calling the get_options() method.
  5. Disconnect from the instrument using the disconnect() method.