QCoDeS Example with Gentec Maestro¶
[1]:
from qcodes_contrib_drivers.drivers.Gentec.Gentec_Maestro import Gentec_Maestro
Initialize the instrument using its ASRL address¶
[2]:
gentec = Gentec_Maestro(name="Gentec", address='ASRL16::INSTR')
Connected to: Gentec Maestro (serial:None, firmware:1.04.16) in 0.09s
Set the wavelength to get the right calibration¶
First, we read the currently set wavelength.
[3]:
print(gentec.wavelength.label, ': ', gentec.wavelength.get(), gentec.wavelength.unit)
Wavelength : 1024 nm
Now let’s set the wavelength of our laser source and confirm that it was set.
[4]:
gentec.wavelength.set(660)
[5]:
print(gentec.wavelength.label, ': ', gentec.wavelength.get(), gentec.wavelength.unit)
Wavelength : 660 nm
Read the laser power¶
Let’s read the laser power detected by the Gentec.
[6]:
print(gentec.power.label, ': ', gentec.power.get(), gentec.power.unit)
Power : 0.634878 W
We can also set an offset in order to remove any background from the measurement.
[7]:
print(gentec.zero_offset_enabled.label, ': ', gentec.zero_offset_enabled.get(), gentec.zero_offset_enabled.unit)
Zero offset enabled : 0
[8]:
gentec.set_zero_offset()
[9]:
print(gentec.zero_offset_enabled.label, ': ', gentec.zero_offset_enabled.get(), gentec.zero_offset_enabled.unit)
Zero offset enabled : 1
Let’s now repeat the power measurement.
[10]:
print(gentec.power.label, ': ', gentec.power.get(), gentec.power.unit)
Power : -0.000390634 W
Finally let’s clear the offset.
[11]:
gentec.clear_zero_offset()
Close instrument¶
[12]:
gentec.close()