lightlab.equipment.lab_instruments.HP_8152A_PM module

Summary

Classes:

HP_8152A_PM HP8152A power meter

Reference

class HP_8152A_PM(name='The HP power meter', address=None, **kwargs)[source]

Bases: lightlab.equipment.visa_bases.visa_driver.VISAInstrumentDriver, lightlab.equipment.abstract_drivers.power_meters.PowerMeterAbstract

HP8152A power meter

Manual

Usage: Instrument: PowerMeter

Todo

Maybe allow a rapid continuous mode that just spits out numbers (‘T0’)

instrument_category

alias of lightlab.laboratory.instruments.interfaces.PowerMeter

channelDescriptions = {1: 'A', 2: 'B', 3: 'A/B'}
doReadDoubleCheck = False
startup()[source]
open()[source]
static proccessWeirdRead(readString)[source]

The HP 8152 sometimes sends double characters. This tries to fix it based on reasonable value ranges.

We assume that the values encountered have a decimal point and have two digits before and after the decimal point

Arg:
readString (str): what is read from query(‘TRG’)
Returns:checked string
Return type:(str)
robust_query(*args, **kwargs)[source]

Conditionally check for read character doubling

powerDbm(channel=1)[source]

The detected optical power in dB on the specified channel

Parameters:channel (int) – Power Meter channel
Returns:Power in dB or dBm
Return type:(double)