Connecting to PM100D by Thorlabs in Python
Instrument Card
The PM100D Handheld Optical Power and Energy Meter is designed to measure the optical power of laser light or other monochromatic or near monochromatic light sources and the energy of pulsed light sources.
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 PM100D in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
Hereโs a Python script that uses Instrumental to connect to a PM100D Power Meter:
This script first lists all available instruments using list_instruments()
function. Then, it connects to the PM100D Power Meter using the instrument()
function and assigns it to the pm100d
variable.
The script then demonstrates various operations with the power meter. It retrieves the current power reading using the power()
method, sets the input signal wavelength to 1550 nm using the wavelength
attribute, and retrieves the current wavelength setting.
Finally, it makes a multi-sample power measurement using the measure()
method and prints the average power and standard deviation.
The script ends by closing the connection to the power meter using the close()
method.