Table Of Contents

Previous topic

terapy.hardware.axes package

Next topic

terapy.icons package

This Page

terapy.hardware.input package

Submodules

terapy.hardware.input.ADwin_config module

ADWin Lock-in settings dialog.

class terapy.hardware.input.ADwin_config.ADWinLockInConfig(dev)

Bases: wx._windows.Dialog

ADWin Lock-in settings dialog.

enableIntControls()
get_configuration(dev)
onAvgTime(event)
onCH1Frequency(event)
onCH2Amplitude(event)
onCH2Frequency(event)
onHoldoff(event)
onMode(event)
onPhase(event)
onRefTrigger(event)

terapy.hardware.input.base module

Generic input device driver

class terapy.hardware.input.base.AntennaWidget(parent=None, units='V', title='', amp='0', device=None, min=None, max=None)

Bases: wx._windows.ScrolledWindow

Antenna device widget class

OnGo(event=None)

Actions triggered when Go button is pressed.

Parameters:
event - wx.Event
OnSet(event=None)

Actions triggered when widget value is changed.

Parameters:
event - wx.Event
RefreshDisplay(event=None)

Refresh display.

Parameters:
event - wx.Event
class terapy.hardware.input.base.InputDevice

Bases: terapy.hardware.device.Device

Generic input device driver

assign(address, ID, name)

Configure device driver prior to initialization.

Parameters:
address - physical address as required by communication interface driver ID - device short name (str) name - device long name (str)
configure()

Call device configuration dialog.

get_units(idx=0)

Return infos and units on meaningful quantity

Output:
(description (str), units (quantities))
initialize()

Initialize device.

read()

Return values read by device.

Output:
Device values (list of floats)
state()

Return extended snapshot of device.

Output:
list of tuples, each qty as (name, value, units)
widget(parent=None)

Return widget for graphical device control.

Parameters:
parent - parent window (wx.Window)
Output:
widget (wx.Frame)
class terapy.hardware.input.base.InputWidget(parent=None, units=['V'], qtynames=['X'], title='', input=None, min=None, max=None)

Bases: wx._windows.ScrolledWindow

Input device widget class

OnReset(event=None)

Actions triggered when Reset button is pressed.

Parameters:
event - wx.Event
RefreshDisplay(event=None)

Refresh display.

Parameters:
event - wx.Event

terapy.hardware.input.hp34401a module

Driver for HP Agilent Multimeter 34401A

class terapy.hardware.input.hp34401a.HP34401A

Bases: terapy.hardware.input.base.InputDevice

Driver for HP Agilent Multimeter 34401A

configure()
detect()
get_error()
initialize()
read()
reset()

terapy.hardware.input.inp_adwin module

Device driver for ADwin data acquisition hardware

terapy.hardware.input.inp_ophir module

Device driver for Ophir USB interface adapter

class terapy.hardware.input.inp_ophir.OphirConfig(device)

Bases: wx._windows.Dialog

class terapy.hardware.input.inp_ophir.OphirDevice

Bases: terapy.hardware.input.base.InputDevice

Device driver for Ophir USB interface adapter

configure()
detect()
get_error()
initialize()
read()
reset()

terapy.hardware.input.ophir module

Device driver for Ophir USB interface adapter

This class provides access to the OphirUSBI ActiveX interface The ActiveX control is included by early-binding. It is necessary to run the Com - Makepy Utility found in the PythonWinIDE - Tools - Menu
class terapy.hardware.input.ophir.OphirUSBI

Python interface to the Ophir USBI device.

ask(cmd)
connect(devID=0)
disconnect()
get_data()
get_measurement_mode()
get_pulse_length()
get_range()
get_wavelength()
read_data(num_samples)
reset()
scanUSBI()
set_default_mode()
set_immediate_mode()
set_measurement_mode(newmode)
set_pulse_length(newmode)
set_range(newmode)
set_turbo_mode(freq)
set_wavelength(newmode)
start()
stop()

terapy.hardware.input.pxi5122 module

Device driver for National Instruments PXI-5122 DAQ card

terapy.hardware.input.pxi5122.besselfilter(X, Fg)

terapy.hardware.input.pxi5122_config module

Device driver configuration dialog for National Instruments PXI-5122 DAQ card

class terapy.hardware.input.pxi5122_config.PXI5122LockInConfig(config)

Bases: wx._windows.Dialog

enableChannelOffsetControl(id)
get_configuration()
onAvgTime(event)
onChannel0Impedance(event)
onChannel0Offset(event)
onChannel0Range(event)
onChannel1Impedance(event)
onChannel1Offset(event)
onChannel1Range(event)
onHoldoff(event)
onPhase(event)
class terapy.hardware.input.pxi5122_config.PXI5122config(config)

Bases: wx._windows.Dialog

enableAvgTimeControl()
enableCH1UsageControl()
enableChannelOffsetControl(id)
get_configuration()
onAvgMode(event)
onAvgTime(event)
onCH1Mode(event)
onChannel0Impedance(event)
onChannel0Offset(event)
onChannel0Range(event)
onChannel1Impedance(event)
onChannel1Offset(event)
onChannel1Range(event)
onHoldoff(event)
onHorizontalRecords(event)
onHorizontalReference(event)
onTriggerDelay(event)
onTriggerLevel(event)
onTriggerSlope(event)

terapy.hardware.input.sr830 module

Device driver for Stanford Research Systems SR830 Lock-In Amplifier

class terapy.hardware.input.sr830.SR830

Bases: terapy.hardware.input.base.InputDevice

Device driver for Stanford Research Systems SR830 Lock-In Amplifier

configure()
detect()
get_error()
get_time_const()

Get time constant.

Output:
Time constant (float)
initialize()
read()
reset()
set_time_const(tc)

Set time constant.

Parameters:
tc - Time constant (float)
update_holdoff()

Update hold off time.

class terapy.hardware.input.sr830.SR830config(device)

Bases: wx._windows.Dialog

SR830 configuration dialog

check_box(event=None)

Module contents

Functions and classes to handle input devices.

Properties:
modules - list of available device drivers

Each device driver must be implemented as a InputDevice class (see base.py). InputDevice classes contained in Python scripts within this folder will be automatically recognized and added to input device driver list.