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
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)[source]
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='')[source]
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 (artiq.compiler.types.TMono('int', OrderedDict({'width': artiq.compiler.types.TValue(32)}))) -- number of samples to take and average
channel (artiq.compiler.types.TMono('str', OrderedDict()))
- Return type:
artiq.compiler.types.TMono('array', OrderedDict({'elt': artiq.compiler.types.TMono('float', OrderedDict()), 'num_dims': artiq.compiler.types.TValue(1)}))