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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| thorlabs_mc2000b-0.1.3.tar.gz | 6.9 kB | Without provenance | Details for thorlabs_mc2000b-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thorlabs_mc2000b-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for thorlabs_mc2000b-0.1.3-py3-none-any.whl |
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
|
Security for thorlabs-mc2000b 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.