Connecting to PM100USB by Thorlabs in Python
Instrument Card
The PM100USB Power and Energy Meter Interface is compatible with all our C-Series photodiode, thermal, and pyroelectric sensors except for the ES408C Fast Pyroelectric Sensor. Our C-Type standard photodiode, slim photodiode, integrating sphere, and fiber sensors can collectively measure optical powers from 100 pW to 20 W. Our thermal power sensors measure optical powers from 10 µW to 200 W. Compatible C-Series pyroelectric energy sensors can measure energies from 10 µJ to 15 J and repetition rates up to 2 kHz. Note that the ES408C sensor for repetition rates up to 10 kHz, also available below, is not recommended for use with the PM100USB interface, which supports a maximum repetition rate of 3 kHz. Alternatively, other unamplified anode- or cathode-grounded photodiodes with up to 5 mA photocurrent, thermal elements with a maximum output voltage of 1 V, or energy sensors with voltage outputs from 100 mV to 100 V may be used.
This interface can be operated and powered by a PC via the mini-USB port. A readout rate of 300 samples per second allows active signal monitoring while the interface is in use.
Device Specification: here
Manufacturer card: THORLABS
Thorlabs, Inc. is an American privately held optical equipment company headquartered in Newton, New Jersey. The company was founded in 1989 by Alex Cable, who serves as its current president and CEO. As of 2018, Thorlabs has annual sales of approximately $500 million.
- Headquarters: USA
- Yearly Revenue (millions, USD): 550
- Vendor Website: here
Connect to the PM100USB in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
This script defines a class ThorlabsPM100USB
that represents the Thorlabs PM100USB power meter. It inherits from the Instrument
class provided by Pymeasure.
The class has various properties and methods to interact with the power meter. Here’s a brief explanation of each:
-
wavelength_min
andwavelength_max
are measurement properties that retrieve the minimum and maximum wavelength values supported by the power meter, respectively. -
wavelength
is a property that allows you to control the wavelength in nm. It retrieves the current wavelength value from the power meter and can also be set to a new value. -
power
is a property that measures the power in W. It retrieves the power value from the power meter. -
energy
is a property that measures the energy in J. It retrieves the energy value from the power meter. -
_set_flags
is a method that retrieves sensor information and writes flags based on the response from the power meter.
To use this script, you would need to create an instance of the ThorlabsPM100USB
class and provide the appropriate adapter for communication with the power meter.