ad9913_qt

DDSChan

_images/DDSChan.png
class qtrfblocks.DDSChan(app: QWidget, controller: AD9913Controller)[source]

Create an instance of DDSChan.

Parameters:
  • app (QWidget) – The parent application for the channel display.

  • controller (rfblocks.AD9913Controller) – AD9913 DDS controller

LVL_UNITS

alias of Lvl_Units

build_ui() QGroupBox[source]

Build on-screen UI components for a DDS_2 channel.

property chan_id: str

The channel identifier.

configure()[source]

Update the DDS hardware using the currently set configuration.

property ctl: AD9913Controller

Return a reference to the AD9913Controller.

property dbm: float

Return the DDS output level (in dBm).

dump_config() Dict[source]

Return the current configuration for this clock module.

Returns:

A dictionary containing the current clock modules configuration:

freq:

The currently set output frequency (in MHz).

channels:

A dictionary containing the channel configurations keyed using the channel id.

property enabled: bool

Enable/disable the on screen clock module UI components.

property freq: float

Return the DDS output frequency (in MHz).

initialize_hw(ser: Serial) None[source]

Initialize the DDS board hardware.

initialize_ui() None[source]

Initialize the user interface.

property level: float

Return the DDS output level (in DDS DAC units).

load_config(config: Dict) None[source]

Set the current configuration for this clock module.

Parameters:

config (Dict) – A dictionary containing the module configuration to be set.

property millivolts: float

Return the DDS output level (in millivolts RMS)

property phase: float

Return the DDS phase offset (in degrees).

set_dbm(d: float)[source]

Set the DDS output level (in dBm)

Note that configure() must be invoked in order to update the DDS hardware

set_freq(f: float) None[source]

Set the DDS output frequency (in MHz).

Note that configure() must be invoked in order to update the DDS hardware

set_level(l: float) None[source]

Set the DDS output level (in DDS DAC units).

Note that configure() must be invoked in order to update the DDS hardware

set_millivolts(mv: float)[source]

Set the DDS output level (in millivolts).

Note that configure() must be invoked in order to update the DDS hardware

set_phase(p: float) None[source]

Set the DDS phase offset (in degrees).

Note that configure() must be invoked in order to update the DDS hardware

set_pmod(state: bool) None[source]

Set the DDS programmable modulus state.

Note that configure() must be invoked in order to update the DDS hardware

set_state(flag: int)[source]

Set the DDS channel state.

Parameters:

flag (int) – This should be either ad9913.POWER_UP or ad9913.POWER_DOWN.

property state: int

The state of the DDS channel. Either powered up or powered down.

update_chan_freq(f: float) None[source]

Update the displayed DDS channel frequency.

update_chan_level(l: float) None[source]

Update the displayed DDS channel output level.

update_chan_phase(p: float) None[source]

Update the displayed DDS channel phase offset.

update_chan_pmod(state: bool) None[source]

Update the displayed prog. modulus checkbox.

update_chan_state(state: int) None[source]

Update the displayed DDS channel state.

SweepDialog

_images/SweepDialog.png
class qtrfblocks.SweepDialog(ddsApp, ddsChan, parent=None)[source]
reject(self)[source]
set_sweep_range()[source]

Set the sweep range and suffix.

update_falling_rate(v)[source]

Update the displayed sweep falling rate value.

update_falling_step(v)[source]

Update the displayed sweep falling step value.

update_ramp_type(rt)[source]

Update the displayed sweep ramp type.

update_rising_rate(v)[source]

Update the displayed sweep rising rate value.

update_rising_step(v)[source]

Update the displayed sweep rising step value.

update_sweep_end(end)[source]

Update the displayed sweep end value.

update_sweep_start(start)[source]

Update the displayed sweep start value.

update_sweep_type(st)[source]

Update the displayed sweep type.

This also sets the sweep range and suffix to the values appropriate for the sweep type.

ProfilesDialog

_images/ProfilesDialog.png
class qtrfblocks.ProfilesDialog(ddsApp, ddsChan, profiles, parent=None)[source]
reject(self)[source]
update(self)[source]
update(self, a0: QRect) None
update(self, a0: QRegion) None
update(self, ax: int, ay: int, aw: int, ah: int) None
update_profile_freq(profnum, f)[source]

Update the displayed frequency for a profile.

update_profile_phase(profnum, p)[source]

Update the displayed phase for a profile.

update_profile_type(ptype)[source]

Update the displayed profile type.

update_selected_profile(p)[source]

Update the displayed selected profile checkboxes.