ad9913_qt
DDSChan
- 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
- property chan_id: str
The channel identifier.
- 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).
- 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
orad9913.POWER_DOWN
.
- property state: int
The state of the DDS channel. Either powered up or powered down.