herosdevices.hardware.generic.adc

Generic ADC drivers.

Module Contents

class herosdevices.hardware.generic.adc.ADCChannel(adc_device: herosdevices.interfaces.atomiq.DAC | heros.RemoteHERO, channel: str, samples: int = 1)[source]

Bases: herosdevices.interfaces.atomiq.ADCChannel

A generic ADC channel that can be connected to a multi channel ADC that implements the atomiq ADC interface.

Parameters:
  • adc_device – Object or HERO of the ADC this channel belongs to

  • channel – channel number

adc_device
channel
samples = 1
measure(samples: int | None = None, cached: bool = False, channel: str = '') → float[source]

Measure voltage at the current channel.

Parameters:
  • samples – Number of samples to average.

  • cached – not used

  • channel – not used