lantz.drivers.newport

company:Newport.
description:Test and Measurement Equipment.
website:http://www.newport.com/

copyright:2015 by Lantz Authors, see AUTHORS for more details.
license:BSD,
class lantz.drivers.newport.PowerMeter1830c(resource_name, name=None, **kwargs)[source]

Bases: lantz.messagebased.MessageBasedDriver

Newport 1830c Power Meter

Parameters:
  • resource_name (str) – The resource name
  • kwargs – keyword arguments passed to the resource during initialization.
Params name:

easy to remember identifier given to the instance for logging purposes.

autocalibration_async(*args, **kwargs)

(Async) Autocalibration of the power meter. This procedure disconnects the input signal. It should be performed at least 60 minutes after warm-up.

store_reference_async(*args, **kwargs)

(Async) Sets the current input signal power level as the power reference level. Each time the S command is sent, the current input signal becomes the new reference level.

DEFAULTS = {'ASRL': {'baud_rate': 9600, 'parity': <Parity.none: 0>, 'read_termination': '\n', 'stop_bits': <StopBits.one: 10>, 'write_termination': '\n', 'bytesize': 8, 'timeout': 2000, 'encoding': 'ascii'}}
DEFAULTS_changed
attenuator
Attenuator.
1: Attenuator present 0: Attenuator not present
Values:{False: 0, True: 1}
attenuator_changed
autocalibration = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7fe1f4b7b208>>, None)
autocalibration_changed
beeper

Checks whether the audio output is on or off.

Values:{False: 0, True: 1}
beeper_changed
data
data_changed
echo

Returns echo mode. Only applied to RS232 communication

Values:{False: 0, True: 1}
echo_changed
filter
How many measurements are averaged for the displayed reading.
slow: 16 measurements medium: 4 measurements fast: 1 measurement.
Values:{‘Fast’: 3, ‘Slow’: 1, ‘Medium’: 2}
filter_changed
go

Enable or disable the power meter from taking new measurements.

Values:{False: 0, True: 1}
go_changed
keypad

Keypad/Display backlight intensity levels.

Values:{‘High’: 2, ‘Medium’: 1, ‘Off’: 0}
keypad_changed
lockout

Enable/Disable the lockout. When the lockout is enabled, any front panel key presses would have no effect on system operation.

Values:{False: 0, True: 1}
lockout_changed
range
Set the signal range for the input signal.
0 means auto setting the range. 1 is the lowest signal range and 8 the highest.
Values:{0, 1, 2, 3, 4, 5, 6, 7, 8}
range_changed
store_reference = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7fe1f4b7b518>>, None)
store_reference_changed
units

Sets and gets the units of the measurements.

Values:{‘dB’: 2, ‘REL’: 4, ‘dBm’: 3, ‘Watts’: 1}
units_changed
wavelength

Sets and gets the wavelength of the input signal.

Limits:(1, 10000, 1)
wavelength_changed
zero

Turn the zero function on/off. Zero function is used for subtracting any background power levels in future measurements.

Values:{False: 0, True: 1}
zero_changed