config['channel'] = channel.index
config['maxdata'] = channel.get_maxdata()
config['range'] = channel.range.value
+ config['analog-reference'] = channel.aref.value
converter = channel.get_converter()
config['conversion-origin'
] = converter.get_to_physical_expansion_origin()
import h5config.config as _config
import h5config.tools as _h5config_tools
+import pycomedi.constant as _constant
+
class PackageConfig (_h5config_tools.PackageConfig):
"Configure `pypiezo` module operation"
_config.IntegerSetting(
name='range',
help="Channel's selected range index."),
+ _config.ChoiceSetting(
+ name='analog-reference',
+ help="Channel's selected analog reference index.",
+ choices=[(x.name, x) for x in _constant.AREF]),
_config.FloatListSetting(
name='conversion-coefficients',
help=('Bit to physical unit conversion coefficients starting with '