Skip to main content

thorlabs_mc2000b

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.

Metadata

Release files for thorlabs-mc2000b 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thorlabs-mc2000b 0.1.3
File Size Uploaded
thorlabs_mc2000b-0.1.3.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for thorlabs-mc2000b 0.1.3
File Interpreter ABI Platform
thorlabs_mc2000b-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 26.0 kB

Release files / thorlabs_mc2000b-0.1.3.tar.gz

Download URL thorlabs_mc2000b-0.1.3.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3c1a8357abe8f223162762fb6112962d1b84369543fd52eb2b11cd8cd0f54dfa
BLAKE2b-256 checksum
How to use checksums
af8ccfe615b86499c1022b34b9975949ef12d57eb7d03fc2c9c4e62cf105233d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / thorlabs_mc2000b-0.1.3-py3-none-any.whl

Download URL thorlabs_mc2000b-0.1.3-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3fa5ef22814ec96e9bf3ad4e8b8858d989d691e71ff6e1478e2dfdcd5974b8e
BLAKE2b-256 checksum
How to use checksums
9fa0e7725bd8d2d1da163efa9dfbe7e345c0b963ca46c849a8580154661a0a47
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page