DummyADCΒΆ

Class Arguments

Argument

Type

Default Value

return_value

TFloat

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.dummies.DummyADC

Example Component Dictionary

   {
    "dummies_example": {
        "classname": "atomiq.components.dummies.DummyADC",
        "arguments": {
            "return_value": "<mandatory parameter (TFloat)>",
            "num_chan": "<mandatory parameter (TInt32)>"
        }
    }
}

Class Description

class atomiq.components.dummies.DummyADC(return_value, *args, **kwargs)[source]

Bases: ADC

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

Parameters:

return_value (TFloat)

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 (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))]))