qudi icon indicating copy to clipboard operation
qudi copied to clipboard

Hardware module for the Windfreak SynthHDPro microwave source error while performing cw-ODMR

Open rajanpaul02-zz opened this issue 3 years ago • 1 comments

What is affected by this bug?

Windfreak SynthHDPro microwave source hardware error

When does this occur?

While performing cw-ODMR

Where on the platform does it happen?

Windows 10 Enterprise

How do we replicate the issue?

Connect hardware module for the Windfreak SynthHDPro microwave source if possible -Try to run an ODMR sweep -It shows the following error: AttributeError: 'MicrowaveSynthHDPro' object has no attribute 'mw_cw_power', line 251

Expected behavior (i.e. solution)

def get_power(self):
    """ Gets the microwave output power.

    @return float: the power set at the device in dBm
    """
    if self.current_output_mode == MicrowaveMode.CW:
        # query mw power
        mw_cw_power = float(self._conn.query('W?'))
        self.mw_cw_power = mw_cw_power
        return mw_cw_power
    else:
        return self.mw_sweep_power

Other Comments

rajanpaul02-zz avatar Nov 25 '20 16:11 rajanpaul02-zz

Hallo rajanpaul02, thanks for opening this issue. The Windfreak SynthHDPro MW source hardware file has been created very hastily and not been used (and probably neither tested) for cw ODMR. At the moment we don't have this hardware device to reproduce your error. I have had a quick look on the file and actually there seem to be involved some bugs. Please feel free to contribute with a pull request for any bug fix.

NicolasStaudenmaier avatar Dec 02 '20 12:12 NicolasStaudenmaier