Qudi
|
Hardware class to controls a SynthHD Pro. More...
Public Member Functions | |
def | on_activate (self) |
Initialisation performed during activation of the module. | |
def | on_deactivate (self) |
Deinitialisation performed during deactivation of the module. | |
def | get_limits (self) |
SynthHD Pro limits. | |
def | get_status (self) |
def | off (self) |
Switches off any microwave output. More... | |
def | get_power (self) |
Gets the microwave output power. More... | |
def | get_frequency (self) |
def | cw_on (self) |
def | set_cw (self, frequency=None, power=None) |
Configures the device for cw-mode and optionally sets frequency and/or power. More... | |
def | list_on (self) |
def | set_list (self, frequency=None, power=None) |
Configures the device for list-mode and optionally sets frequencies and/or power. More... | |
def | reset_listpos (self) |
Reset of MW list mode position to start (first frequency step) More... | |
def | sweep_on (self) |
Switches on the sweep mode. More... | |
def | set_sweep (self, start=None, stop=None, step=None, power=None) |
def | reset_sweeppos (self) |
Reset of MW sweep mode position to start (start frequency) More... | |
def | set_ext_trigger (self, pol, dwelltime) |
Set the external trigger for this device with proper polarization. More... | |
def | trigger (self) |
Trigger the next element in the list or sweep mode programmatically. More... | |
![]() | |
def | __init__ (self, manager, name, config=None, callbacks=None, kwargs) |
Initialise Base class object and set up its state machine. More... | |
def | log (self) |
Returns a logger object. | |
def | is_module_threaded (self) |
Returns whether the module shall be started in a thread. | |
def | on_activate (self) |
Method called when module is activated. More... | |
def | on_deactivate (self) |
Method called when module is deactivated. More... | |
def | getStatusVariables (self) |
Return a dict of variable names and their content representing the module state for saving. More... | |
def | setStatusVariables (self, variableDict) |
Give a module a dict of variable names and their content representing the module state. More... | |
def | getConfiguration (self) |
Return the configration dictionary for this module. More... | |
def | get_connector (self, connector_name) |
Return module connected to the given named connector. More... | |
![]() | |
def | __new__ (cls, name, bases, attrs) |
Collect declared Connectors, ConfigOptions and StatusVars into dictionaries. More... | |
Public Attributes | |
rm | |
model | |
sernr | |
mod_hw | |
mod_fw | |
current_output_mode | |
output_active | |
mw_frequency_list | |
![]() | |
module_state | |
connectors | |
Hardware class to controls a SynthHD Pro.
Example config for copy-paste:
mw_source_synthhd: module 'microwave.mw_source_windfreak_synthhdpro.MicrowaveSynthHDPro' serial_port 'COM3' serial_timeout 10 # in seconds output_channel 0 # either 0 or 1
def mw_source_windfreak_synthhdpro.MicrowaveSynthHDPro.get_power | ( | self | ) |
Gets the microwave output power.
def mw_source_windfreak_synthhdpro.MicrowaveSynthHDPro.off | ( | self | ) |
Switches off any microwave output.
def mw_source_windfreak_synthhdpro.MicrowaveSynthHDPro.reset_listpos | ( | self | ) |
Reset of MW list mode position to start (first frequency step)
def mw_source_windfreak_synthhdpro.MicrowaveSynthHDPro.reset_sweeppos | ( | self | ) |
Reset of MW sweep mode position to start (start frequency)
def mw_source_windfreak_synthhdpro.MicrowaveSynthHDPro.set_cw | ( | self, | |
frequency = None , |
|||
power = None |
|||
) |
Configures the device for cw-mode and optionally sets frequency and/or power.
float | frequency: frequency to set in Hz |
float | power: power to set in dBm |
def mw_source_windfreak_synthhdpro.MicrowaveSynthHDPro.set_ext_trigger | ( | self, | |
pol, | |||
dwelltime | |||
) |
Set the external trigger for this device with proper polarization.
TriggerEdge | pol: polarisation of the trigger (basically rising edge or falling edge) |
dwelltime | minimum dwell time |
def mw_source_windfreak_synthhdpro.MicrowaveSynthHDPro.set_list | ( | self, | |
frequency = None , |
|||
power = None |
|||
) |
Configures the device for list-mode and optionally sets frequencies and/or power.
list | frequency: list of frequencies in Hz |
float | power: MW power of the frequency list in dBm |
def mw_source_windfreak_synthhdpro.MicrowaveSynthHDPro.sweep_on | ( | self | ) |
Switches on the sweep mode.
def mw_source_windfreak_synthhdpro.MicrowaveSynthHDPro.trigger | ( | self | ) |
Trigger the next element in the list or sweep mode programmatically.
Ensure that the Frequency was set AFTER the function returns, or give the function at least a save waiting time.