Qudi
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
mw_source_agilent.MicrowaveAgilent Class Reference

Hardware control file for Agilent Devices. More...

Inheritance diagram for mw_source_agilent.MicrowaveAgilent:
Inheritance graph
[legend]
Collaboration diagram for mw_source_agilent.MicrowaveAgilent:
Collaboration graph
[legend]

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 off (self)
 Switches off any microwave output. More...
 
def get_status (self)
 
def get_power (self)
 Gets the microwave output power. More...
 
def get_frequency (self)
 Gets the frequency of the microwave output. More...
 
def cw_on (self)
 Switches on any preconfigured microwave output. More...
 
def set_cw (self, freq=None, power=None, useinterleave=None)
 Sets the MW mode to cw and additionally frequency and power #For agilent device there is no CW mode, so just do nothing. More...
 
def list_on (self)
 Switches on the list mode. More...
 
def set_list (self, freq=None, power=None)
 There is no list mode for agilent

Also the list is created by giving 'start_freq, step, stop_freq'

More...
 
def reset_listpos (self)
 Reset of MW List Mode position to start from first given frequency. More...
 
def sweep_on (self)
 Switches on the list mode. More...
 
def set_sweep (self, start, stop, step, power)
 
def reset_sweeppos (self)
 Reset of MW List Mode position to start from first given frequency. More...
 
def set_ext_trigger (self, pol, timing)
 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 get_limits (self)
 
def set_power (self, power=0.)
 Sets the microwave output power. More...
 
def set_frequency (self, freq=None)
 Sets the frequency of the microwave output. More...
 
- Public Member Functions inherited from core.module.BaseMixin
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...
 
- Public Member Functions inherited from core.module.ModuleMeta
def __new__ (cls, name, bases, attrs)
 Collect declared Connectors, ConfigOptions and StatusVars into dictionaries. More...
 

Public Attributes

 rm
 
 model
 
- Public Attributes inherited from core.module.BaseMixin
 module_state
 
 connectors
 

Static Public Attributes

def actual_power = self.get_power()
 
 actual_freq = freq
 
 mode
 
 dummy
 

Detailed Description

Hardware control file for Agilent Devices.

The hardware file was tested using the model N9310A.

Example config for copy-paste:

mw_source_agilent: module 'microwave.mw_source_agilent.MicrowaveAgilent' usb_address USB0::10::INSTR usb_timeout 100 # in seconds

Member Function Documentation

◆ cw_on()

def mw_source_agilent.MicrowaveAgilent.cw_on (   self)

Switches on any preconfigured microwave output.

Returns
int: error code (0:OK, -1:error)

◆ get_frequency()

def mw_source_agilent.MicrowaveAgilent.get_frequency (   self)

Gets the frequency of the microwave output.

Returns
float: frequency (in Hz), which is currently set for this device

◆ get_power()

def mw_source_agilent.MicrowaveAgilent.get_power (   self)

Gets the microwave output power.

Returns
float: the power set at the device in dBm

◆ list_on()

def mw_source_agilent.MicrowaveAgilent.list_on (   self)

Switches on the list mode.

Returns
int: error code (1: ready, 0:not ready, -1:error)

◆ off()

def mw_source_agilent.MicrowaveAgilent.off (   self)

Switches off any microwave output.

Returns
int: error code (0:OK, -1:error)

◆ reset_listpos()

def mw_source_agilent.MicrowaveAgilent.reset_listpos (   self)

Reset of MW List Mode position to start from first given frequency.

Returns
int: error code (0:OK, -1:error)

◆ reset_sweeppos()

def mw_source_agilent.MicrowaveAgilent.reset_sweeppos (   self)

Reset of MW List Mode position to start from first given frequency.

Returns
int: error code (0:OK, -1:error)

◆ set_cw()

def mw_source_agilent.MicrowaveAgilent.set_cw (   self,
  freq = None,
  power = None,
  useinterleave = None 
)

Sets the MW mode to cw and additionally frequency and power #For agilent device there is no CW mode, so just do nothing.

Parameters
floatfreq: frequency to set in Hz
floatpower: power to set in dBm
booluseinterleave: If this mode exists you can choose it.
Returns
int: error code (0:OK, -1:error)

Interleave option is used for arbitrary waveform generator devices.

◆ set_ext_trigger()

def mw_source_agilent.MicrowaveAgilent.set_ext_trigger (   self,
  pol,
  timing 
)

Set the external trigger for this device with proper polarization.

Parameters
strpol: polarisation of the trigger (basically rising edge or falling edge)
floattiming: estimated time between triggers
Returns
object, float: current trigger polarity [TriggerEdge.RISING, TriggerEdge.FALLING], trigger timing

◆ set_frequency()

def mw_source_agilent.MicrowaveAgilent.set_frequency (   self,
  freq = None 
)

Sets the frequency of the microwave output.

Parameters
floatfreq: the frequency (in Hz) set for this device
Returns
int: error code (0:OK, -1:error)

◆ set_list()

def mw_source_agilent.MicrowaveAgilent.set_list (   self,
  freq = None,
  power = None 
)

There is no list mode for agilent

Also the list is created by giving 'start_freq, step, stop_freq'

Parameters
listfreq: list of frequencies in Hz
floatpower: MW power of the frequency list in dBm

◆ set_power()

def mw_source_agilent.MicrowaveAgilent.set_power (   self,
  power = 0. 
)

Sets the microwave output power.

Parameters
floatpower: the power (in dBm) set for this device
Returns
int: error code (0:OK, -1:error)

◆ set_sweep()

def mw_source_agilent.MicrowaveAgilent.set_sweep (   self,
  start,
  stop,
  step,
  power 
)
Parameters
start
stop
step
power
Returns
:

◆ sweep_on()

def mw_source_agilent.MicrowaveAgilent.sweep_on (   self)

Switches on the list mode.

Returns
int: error code (0:OK, -1:error)

◆ trigger()

def mw_source_agilent.MicrowaveAgilent.trigger (   self)

Trigger the next element in the list or sweep mode programmatically.

Returns
int: error code (0:OK, -1:error)

The documentation for this class was generated from the following file: