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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file thorlabs_mc2000b-0.1.3.tar.gz.

File metadata

  • Download URL: thorlabs_mc2000b-0.1.3.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

File hashes

Hashes for thorlabs_mc2000b-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3c1a8357abe8f223162762fb6112962d1b84369543fd52eb2b11cd8cd0f54dfa
MD5 afe0d5d32273082a43855f8b1d39ec56
BLAKE2b-256 af8ccfe615b86499c1022b34b9975949ef12d57eb7d03fc2c9c4e62cf105233d

See more details on using hashes here.

File details

Details for the file thorlabs_mc2000b-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: thorlabs_mc2000b-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

File hashes

Hashes for thorlabs_mc2000b-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a3fa5ef22814ec96e9bf3ad4e8b8858d989d691e71ff6e1478e2dfdcd5974b8e
MD5 7a2a30f22b88007bdfc75b2f785d0fca
BLAKE2b-256 9fa0e7725bd8d2d1da163efa9dfbe7e345c0b963ca46c849a8580154661a0a47

See more details on using hashes here.

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