Skip to content

Connecting to Shamrock 750 by Andor in Python

Instrument Card

The Andor Shamrock SR-750 is based on Czerny-Turner optical design. The Shamrock is available as a pre-aligned detector/spectrometer option allowing for seamless integration of software, electronics, optics and detector. There is also a fast and interactive graphical software interface allowing full control of all the spectrograph functions.

Device Specification: here

Manufacturer card: ANDOR

Leaders In The Development & Manufacture of Cameras, Microscopy and Spectroscopy Systems.

  • Headquarters: UK
  • Yearly Revenue (millions, USD): 230
  • Vendor Website: here

Connect to the Shamrock 750 in Python

PROTOCOLS > SCPI

Here is a Python script that uses Qcodes Community to connect to a Shamrock 750 Spectrometer:

from qcodes import Station, Instrument
from qcodes.utils.validators import Ints, Numbers
from qcodes.instrument_drivers.Andor.Shamrock import Shamrock_SR750
# Create a station to hold the instruments
station = Station()
# Create an instance of the Shamrock_SR750 instrument
shamrock = Shamrock_SR750('shamrock', dll_path='C:\\Program Files\\Andor SDK\\Shamrock64\\ShamrockCIF.dll', device_id=0)
# Add the Shamrock instrument to the station
station.add_component(shamrock)
# Connect to the Shamrock instrument
shamrock.connect()
# Print the instrument ID
print(shamrock.get_idn())
# Set the grating to 1
shamrock.grating(1)
# Set the wavelength to 500 nm
shamrock.wavelength(500)
# Close the connection to the Shamrock instrument
shamrock.close()

Note: Make sure to replace the dll_path argument with the correct path to the ShamrockCIF.dll file on your system.