preadu

Overview

initializes the preADU and controls the preADU attenuation.

Python Class & Methods Index

class pyfabil.plugins.tpm_1_6.preadu.Tpm_1_6_PreAdu(board, **kwargs)[source]

AdcPowerMeter plugin

disable_channels(channels=None)[source]

Disable channel output :param channels: Input channel to disable (None for all channels)

enable_channels(channels=None)[source]

Enable channel output :param channels: Input channels to enable (None for all channels)

get_attenuation()[source]

Returns the current attenuation value. Stored in channel_filters[7:1] with the 2 least significant bits of which forming a fractional component. For example if channel_filters[7:1] == 33 this corresponds to an attenuation of 1000.01 (base 2) or 8.25 (base 10)

get_passband()[source]

Returns the current passband value. Stored in channel_filters[2:0].

return integer

powered_on()[source]
select_high_passband()[source]

Select high passband

select_low_passband()[source]

Select low passband

set_attenuation(attenuation, channels=None)[source]

Set attenuation level for a particular channel. Supports attenuation from 0 to 31 with a precision of 0.25. :param attenuation: Value of attenuation :param channels: Preadu channels (None if to be applied to all channels

switch_off()[source]

Switch preadu off

switch_on()[source]

Switch preadu on