|
|
@ -65,13 +65,14 @@ class Base(HasIO):
|
|
|
|
|
|
|
|
|
|
|
|
class Resistance(Base, Readable):
|
|
|
|
class Resistance(Base, Readable):
|
|
|
|
value = Parameter('resistance', datatype=FloatRange, unit='ohm')
|
|
|
|
value = Parameter('resistance', datatype=FloatRange, unit='ohm')
|
|
|
|
output_offset = Parameter('temperature deviation', datatype=FloatRange, unit='Ohm')
|
|
|
|
output_offset = Parameter('resistance deviation', datatype=FloatRange, unit='Ohm', readonly=False)
|
|
|
|
phase_hold = Parameter('phase hold', EnumType('phase hold', off=0, on=1))
|
|
|
|
phase_hold = Parameter('phase hold', EnumType('phase hold', off=0, on=1))
|
|
|
|
|
|
|
|
|
|
|
|
RES_RANGE = ['20mOhm', '200mOhm', '2Ohm', '20Ohm', '200Ohm', '2kOhm', '20kOhm', '200kOhm',
|
|
|
|
RES_RANGE = ['20mOhm', '200mOhm', '2Ohm', '20Ohm', '200Ohm', '2kOhm', '20kOhm', '200kOhm',
|
|
|
|
'2MOhm', '20MOhm']
|
|
|
|
'2MOhm', '20MOhm']
|
|
|
|
irange = Parameter('resistance range index', EnumType('resistance range index',
|
|
|
|
irange = Parameter('resistance range index', EnumType('resistance range index',
|
|
|
|
{name: idx for idx, name in enumerate(RES_RANGE)}), readonly=False)
|
|
|
|
{name: idx for idx, name in enumerate(RES_RANGE)}),
|
|
|
|
|
|
|
|
readonly=False)
|
|
|
|
range = Parameter('resistance range value', FloatRange(2e-2, 2e7), unit='Om', readonly=False)
|
|
|
|
range = Parameter('resistance range value', FloatRange(2e-2, 2e7), unit='Om', readonly=False)
|
|
|
|
|
|
|
|
|
|
|
|
TIME_CONST = ['0.3s', '1s', '3s', '10s', '30s', '100s', '300s']
|
|
|
|
TIME_CONST = ['0.3s', '1s', '3s', '10s', '30s', '100s', '300s']
|
|
|
@ -81,8 +82,9 @@ class Resistance(Base, Readable):
|
|
|
|
tc = Parameter('time constant value', FloatRange(1e-1, 3e2), unit='s', readonly=False)
|
|
|
|
tc = Parameter('time constant value', FloatRange(1e-1, 3e2), unit='s', readonly=False)
|
|
|
|
|
|
|
|
|
|
|
|
EXCT_RANGE = ['0', '3uV', '10uV', '30uV', '100uV', '300uV', '1mV', '3mV', '10mV', '30mV']
|
|
|
|
EXCT_RANGE = ['0', '3uV', '10uV', '30uV', '100uV', '300uV', '1mV', '3mV', '10mV', '30mV']
|
|
|
|
iexct = Parameter('excitation index', EnumType('excitation index range',
|
|
|
|
iexct = Parameter('excitation index',
|
|
|
|
{name: idx for idx, name in enumerate(EXCT_RANGE, start=-1)}), readonly=False)
|
|
|
|
EnumType('excitation index range', {name: idx for idx, name in enumerate(EXCT_RANGE, start=-1)}),
|
|
|
|
|
|
|
|
readonly=False)
|
|
|
|
exct = Parameter('excitation value', FloatRange(0, 3e-2), unit='s', default=300, readonly=False)
|
|
|
|
exct = Parameter('excitation value', FloatRange(0, 3e-2), unit='s', default=300, readonly=False)
|
|
|
|
|
|
|
|
|
|
|
|
autorange = Parameter('autorange_on', EnumType('autorange', off=0, on=1),
|
|
|
|
autorange = Parameter('autorange_on', EnumType('autorange', off=0, on=1),
|
|
|
|