Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rajanpaul02-zz opened this issue Nov 25, 2020 · 1 comment

Comments

@rajanpaul02-zz
Copy link

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

@NicolasStaudenmaier
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants