Weeroc Lab Devices Package
This is an attempt to make a single python package containing all the tools for controlling the lab equipment as simply as possible.
Install
PyPI
To install the package use pip install WeeLab
Currently available devices
-
CAEN A7585 SiPM power supply (device tested)
from WeeLab import SerialConnection, CAEN_A7585 caen = CAEN_A7585( conn=SerialConnection(port="COM6", baudrate=115200)) caen.set_voltage(30) # Set voltage to 30V caen.wait_setpoint_reached() # Wait until the setpoint is reached caen.get_IV() # Get the current and voltage values
-
Lecroy WaveRunner (device tested)
from WeeLab import Vxi11Connection, LeCroyWaveRunner lecroy = LeCroyWaveRunner(conn=Vxi11Connection(ip="192.168.2.21")) p1_mean = lecroy.getMeasure(1, "MEAN") # Returns mean value of P1 measurement lecroy.clear_sweeps() # Clear sweeps
-
NKT Pilas Laser (device tested)
from WeeLab import SerialConnection, NktPilasLaser laser = NktPilasLaser( conn=SerialConnection(port="COM6", baudrate=19200)) laser.set_tune(500) # Sets tune 50% laser.set_frequency(20_000_00) # Sets frequency 20 MHz laser.enable() # Enables radiation
-
Keithley 2100 digital multimeter (device tested)
from WeeLab import KeithleyMultimetre, VisaConnection keithley = KeithleyMultimetre( conn=VisaConnection(resource_name='USB0::0x05E6::0x2100::8012509::INSTR')) keithley.configure_voltage(0.001, 0.001) # Configures voltage measurement with 1 mV range and 1 mV resolution keithley.configure_current(0.001, 0.001) # Configures current measurement with 1 mA range and 1 mA resolution keithley.set_sample_count(100) # Collect 100 samples per measurement current = keithley.get_current() # Get an average current from samples voltage = keithley.get_voltage() # Get an average voltage from samples
-
Tektronix AWG generator (test TODO)
from WeeLab import VisaConnection, Tektronix_AFG3252 afg = Tektronix_AFG3252( conn=VisaConnection("USB0::0x0699::0x0345::C010630::INSTR")) afg.do_set_voltage_ch1(5) # Sets voltage on ch1 to 5 V afg.set_frequency_ch1(10_000) # Sets frequency 10 kHz afg.do_set_status_ch1("on") # Enables generation in ch1
-
WeeMove translation stage (test TODO)
from WeeLab import SerialConnection, Stage stage = Stage( conn=SerialConnection(port="COM4", baudrate=9600)) stage.move(10, 20) # Moves to x=10cm, y=20cm stage.wait_arrived() # Waits until the stage is no longer moving stage.ask_position() # Prints current position
-
VT4002 temperature chamber (test TODO)
from WeeLab import SerialConnection, VT4002 chamber = VT4002( conn=SerialConnection(port="COM4", baudrate=9600)) chamber.set_temperature(25.0) # Sets temperature to 25°C chamber.turn_on() # Turns on the chamber chamber.wait_reached(period_s=20) # Waits until the chamber reaches the set temperature (checks every 20 seconds) print(chamber.get_temperature()) # Prints the current temperature of the chamber chamber.turn_off() # Turns off the chamber
Metadata
Release files for WeeLab 0.1.6
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 |
|---|---|---|---|---|
| weelab-0.1.6.tar.gz | 33.1 kB | Without provenance | Details for weelab-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| weelab-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for weelab-0.1.6-py3-none-any.whl |
Total release size: 76.3 kB
Release files / weelab-0.1.6.tar.gz
| Download URL | weelab-0.1.6.tar.gz |
|---|---|
| Size | 33.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
594a3227f2202f00d33d69cbbc3cc9950f210a5dc26ccf070fcdc0f88c6933c5
|
|
BLAKE2b-256 checksum How to use checksums |
6813f6783a68ad1c1569a0d43a91559abb6dd8a93ea363f95ca23252c172ee66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.13
|
Release files / weelab-0.1.6-py3-none-any.whl
| Download URL | weelab-0.1.6-py3-none-any.whl |
|---|---|
| Size | 43.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad30a229e85d8590a312bbd6cbbc669d5b6f6d736fd428a4c90ae05489482722
|
|
BLAKE2b-256 checksum How to use checksums |
5bf69123a1d1d6e1205c703b2733ec51bb215d26259558b3a9d069c279533030
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.13
|
Security for WeeLab 0.1.6
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.