lantz.drivers.examples¶
company: | Lantz Examples. |
---|---|
description: | Example drivers for simulated instruments. |
website: |
copyright: | 2015 by Lantz Authors, see AUTHORS for more details. |
---|---|
license: | BSD, see LICENSE for more details. |
-
class
lantz.drivers.examples.
LantzSignalGenerator
(resource_name, name=None, **kwargs)[source]¶ Bases:
lantz.messagebased.MessageBasedDriver
Lantz Signal Generator
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.
-
calibrate_async
(*args, **kwargs)¶ (Async) Calibrate.
-
self_test_async
(*args, **kwargs)¶ (Async) Reset to .
-
DEFAULTS
= {'COMMON': {'write_termination': '\n', 'read_termination': '\n'}}¶
-
DEFAULTS_changed
¶
-
amplitude
¶ Amplitude.
Units: V Limits: (10,)
-
amplitude_changed
¶
-
calibrate
= functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7fe1f4cf7320>>, None)¶
-
calibrate_changed
¶
-
din
¶ Keys: [1, 2, 3, 4, 5, 6, 7, 8] Digital input state.
Values: {False: ‘0’, True: ‘1’}
-
din_changed
¶
-
dout
¶ Keys: [1, 2, 3, 4, 5, 6, 7, 8] Digital output state.
Values: {False: ‘0’, True: ‘1’}
-
dout_changed
¶
-
frequency
¶ Frequency.
Units: Hz Limits: (1, 100000.0)
-
frequency_changed
¶
-
idn
¶
-
idn_changed
¶
-
offset
¶ Offset.
Units: V Limits: (-5, 5, 0.01)
-
offset_changed
¶
-
output_enabled
¶ Analog output enabled.
Values: {False: 0, True: 1}
-
output_enabled_changed
¶
-
query_changed
¶
-
self_test
= functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7fe1f4cf7390>>, None)¶
-
self_test_changed
¶
-
waveform
¶ Values: {‘ramp’: ‘3’, ‘sine’: ‘0’, ‘triangular’: ‘2’, ‘square’: ‘1’}
-
waveform_changed
¶
-
class
lantz.drivers.examples.
LantzVoltmeter
(resource_name, name=None, **kwargs)[source]¶ Bases:
lantz.messagebased.MessageBasedDriver
Lantz Signal Generator
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.
-
auto_range_async
(*args, **kwargs)¶ (Async) Autoselect a range.
-
calibrate_async
(*args, **kwargs)¶ (Async) Calibrate.
-
self_test_async
(*args, **kwargs)¶ (Async) Self test
-
DEFAULTS
= {'COMMON': {'write_termination': '\n', 'read_termination': '\n'}}¶
-
DEFAULTS_changed
¶
-
auto_range
= functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7fe1f4c40f98>>, None)¶
-
auto_range_changed
¶
-
calibrate
= functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7fe1f4c44048>>, None)¶
-
calibrate_changed
¶
-
idn
¶
-
idn_changed
¶
-
query_changed
¶
-
range
¶ Keys: ANY Values: {0.1: ‘0’, 1: ‘1’, 10: ‘2’, 100: ‘3’, 1000: ‘4’}
-
range_changed
¶
-
self_test
= functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7fe1f4c44198>>, None)¶
-
self_test_changed
¶
-
voltage
¶ Keys: (0, 1) Measure the voltage.
Units: V
-
voltage_changed
¶