ADC#

Class Arguments

Argument

Type

Default Value

num_chan

TInt32

Bold arguments are mandatory. For more documentation on the listed arguments refer to the class definition below. If parameters appear in this list but not in the class definition below, please recursively check the linked base classes for the definition of the parameter.

Inheritance Diagram

Inheritance diagram of atomiq.components.electronics.adc.ADC

Example Component Dictionary

   {
    "adc_example": {
        "classname": "atomiq.components.electronics.adc.ADC",
        "arguments": {
            "num_chan": "<mandatory parameter (TInt32)>"
        }
    }
}

Class Description

class atomiq.components.electronics.adc.ADC(num_chan, *args, **kwargs)

Bases: Component, Measurable

An analog-to-ditigal converter (ADC) with multiple channels

Many ADCs come with multiple channels that are always sampled together. This class represents such ADCs

Parameters:

num_chan (TInt32) -- Number of channels the ADC has.

A Measurable has one ore more channels at which data can be measured

measure(samples=1, channel='')

Measures all channels and returns the mean for a given number of subsequent samples.

This method advances the timeline by samples * sampling_time

Parameters:
  • samples (TInt32) -- number of samples to take and average

  • channel (TStr) --

Return type:

TArray(TFloat)