Skip to main content

Interface to the ThorLabs MC2000B optical chopper.

Project description

This is an interface to the Thorlabs MC2000B optical chopper unit, communicating over the USB serial port.

Usage is quite straightforward. For example:

from thorlabs_mc2000b import MC2000B, Blade
# Initialise the first detected device
chopper = MC2000B()
# We'll assume the default MC1F10HP is installed
print(chopper.get_blade_string())
# Set up to use external reference source and the inner part of the blade
chopper.set_inref_string("external-inner")
# Apply a 1/2 divider to the input frequency
chopper.nharmonic = 1
chopper.dharmonic = 2
# Start it up!
chopper.enable = True

# If a different chopper blade is installed, it can be configured by
# using the Blade enum, for example for the MC1F60 model:
chopper.blade = Blade.MC1F60
# This may change the available input and/or output reference sources.
# To check which are available for a blade model:
print(Blade.MC1F60.inrefs)
print(Blade.MC1F60.outrefs)

Information about the unit can be found on the product webpage, and details of the commands and how they apply to the different models of chopper blades can be found in the user manual.

Support

Documentation can be found online at https://thorlabs-mc2000b.readthedocs.io/en/latest/.

Bug reports, feature requests and suggestions can be submitted to the issue tracker.

License

All original work is free and open source, licensed under the GNU Public License. See the LICENSE.txt for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thorlabs_mc2000b-0.1.3.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

thorlabs_mc2000b-0.1.3-py3-none-any.whl (19.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page