Connecting to Keysight J7211/A/B/C-Series by Keysight in Python
Instrument Card
Device Specification: here
Manufacturer card: 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 J7211/A/B/C-Series in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a Keysight J7211/A/B/C-Series Lockin Amplifier using Qcodes, you can use the following Python script:
This script defines a class Keysight_J7211
that inherits from VisaInstrument
in the qcodes.instrument.visa
module. The class represents the Keysight J7211 Attenuation Control Unit.
To connect to the instrument, you can create an instance of the Keysight_J7211
class by providing the necessary arguments:
Here, name
is the name of the instrument, address
is the address or VISA alias of the instrument, and attenuation
is an optional parameter to set the attenuation level in dB on startup.
Once the instrument is created, you can access and control its parameters. For example, to get the current attenuation level, you can use:
To set a new attenuation level, you can use:
Remember to replace 'GPIB0::1::INSTR'
with the actual address of your instrument.