assert distance_base == 'volts', distance_base
base_conversion = chan_info['channel']['vDeflection']['conversion-set']['conversions']['base']
assert base_conversion == distance_base, base_conversion
- distance_base_unit = self._zip_unit(
- chan_info['channel']['vDeflection']['data'],
- version)
+ if 'encoder' in chan_info['channel']['vDeflection']['data']:
+ distance_base_unit = self._zip_unit(
+ chan_info['channel']['vDeflection']['data']['encoder']['scaling'],
+ version)
+ else:
+ distance_base_unit = self._zip_unit(
+ chan_info['channel']['vDeflection']['data'],
+ version)
assert distance_base_unit == 'V', distance_base_unit
force_mult = float(
chan_info['channel']['vDeflection']['conversion-set']['conversion']['force']['scaling']['multiplier'])