Skip to content

Connecting to Ametek 7270 by Ametek in Python

Instrument Card

The model 7270 sets a new standard for general-purpose DSP lock-in amplifiers.

Ametek 7270

Device Specification: here

Manufacturer card: AMETEK

AMETEK

Since 1930, our talented and diverse workforce has been delivering differentiated technology solutions to create strong, sustainable and profitable growth.

  • Headquarters: US
  • Yearly Revenue (millions, USD): 6200
  • Vendor Website: here

Connect to the Ametek 7270 in Python

PROTOCOLS > SCPI

from pymeasure.adapters import VISAAdapter
from pymeasure.instruments.ametek import Ametek7270
# Create a connection to the instrument
adapter = VISAAdapter("GPIB::1::INSTR")
lockin = Ametek7270(adapter)
# Set the instrument to voltage control mode
lockin.set_voltage_mode()
# Set the sensitivity to 100 nV
lockin.sensitivity = 100e-9
# Set the filter slope to 12 dB/octave
lockin.slope = 12
# Read the X and Y values
x_value = lockin.x
y_value = lockin.y
# Print the X and Y values
print("X value:", x_value)
print("Y value:", y_value)
# Close the connection to the instrument
lockin.shutdown()

This script connects to the Ametek 7270 Lockin Amplifier using a VISA adapter and sets the instrument to voltage control mode. It then sets the sensitivity to 100 nV and the filter slope to 12 dB/octave. The script reads the X and Y values from the lockin amplifier and prints them. Finally, it shuts down the instrument and closes the connection.

Note: Make sure to install the necessary dependencies (pymeasure, pyvisa, and pyvisa-py) before running the script.