<jupyter_start><jupyter_text>Qcodes example with Gentec Maestro<jupyter_code>from qcodes.instrument_drivers.Gentec.Gentec_Maestro import Gentec_Maestro<jupyter_output><empty_output><jupyter_text>Initialize the instrument using its ASRL address<jupyter_code>gentec = Gentec_Maestro(name="Gentec", address='ASRL16::INSTR')<jupyter_output>Connected to: Gentec Maestro (serial:None, firmware:1.04.16) in 0.09s<jupyter_text>Set the wavelength to get the right calibrationFirst, we read the currently set wavelength.<jupyter_code>print(gentec.wavelength.label, ': ', gentec.wavelength.get(), gentec.wavelength.unit)<jupyter_output>Wavelength :  1024 nm<jupyter_text>Now let's set the wavelength of our laser source and confirm that it was set.<jupyter_code>gentec.wavelength.set(660)
print(gentec.wavelength.label, ': ', gentec.wavelength.get(), gentec.wavelength.unit)<jupyter_output>Wavelength :  660 nm<jupyter_text>Read the laser powerLet's read the laser power detected by the Gentec.<jupyter_code>print(gentec.power.label, ': ', gentec.power.get(), gentec.power.unit)<jupyter_output>Power :  0.634878 W<jupyter_text>We can also set an offset in order to remove any background from the measurement.<jupyter_code>print(gentec.zero_offset_enabled.label, ': ', gentec.zero_offset_enabled.get(), gentec.zero_offset_enabled.unit)
gentec.set_zero_offset()
print(gentec.zero_offset_enabled.label, ': ', gentec.zero_offset_enabled.get(), gentec.zero_offset_enabled.unit)<jupyter_output>Zero offset enabled :  1<jupyter_text>Let's now repeat the power measurement.<jupyter_code>print(gentec.power.label, ': ', gentec.power.get(), gentec.power.unit)<jupyter_output>Power :  -0.000390634 W<jupyter_text>Finally let's clear the offset.<jupyter_code>gentec.clear_zero_offset()<jupyter_output><empty_output><jupyter_text>Close instrument<jupyter_code>gentec.close()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11382978723404255, 'fraction_numerical': 0.02021276595744681, 'mean_word_length': 8.9, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '9', 'dir': 'jupyter-structured-clean-dedup', 'id': '80196', 'license': 'MIT', 'n_tokens_mistral': 696, 'n_tokens_neox': 656, 'n_words': 111, 'path': 'docs/examples/driver_examples/Qcodes example with Gentec Maestro.ipynb', 'repo_name': '4mokie/Qcodes', 'size': '1880'}