Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit a7873fc

Browse files
[DEM-943] Changed default arguments.
1 parent 676c23a commit a7873fc

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

docs/notebooks/unfinished/example_UHFLI_measurements.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
from qtt.measurements.videomode import VideoMode
1616

1717

18-
def update_stimulus(is_enabled: bool, signal_output: int = 1, amplitude: float = 0.1, oscillator: int = 1) -> None:
18+
def update_stimulus(is_enabled: bool, signal_output: int = 1, signal_input: Optional[int] = None,
19+
amplitude: float = 0.1, oscillator: int = 1) -> None:
1920
""" Sets the enabled status of a demodulator and connects an oscillator to a demodulator.
2021
After that sets for a signal output, the amplitude and enabled status and finally to of the UHFLI.
2122
@@ -25,11 +26,13 @@ def update_stimulus(is_enabled: bool, signal_output: int = 1, amplitude: float =
2526
Args:
2627
is_enabled: True to enable and False to disable.
2728
signal_output: One of the two outputs on the device.
29+
signal_intput: One of the two inputs on the device.
2830
amplitude: Amplitude in volts, allowed values are 0.0 - 1.5 V.
2931
demodulator: Which demodulator used to connect to the signal output to.
3032
"""
3133
demodulator = oscillator
32-
signal_input = signal_output
34+
if not signal_input:
35+
signal_input = signal_output
3336

3437
stimulus.connect_oscillator_to_demodulator(oscillator, demodulator)
3538
stimulus.set_demodulator_signal_input(demodulator, signal_input)

src/qtt/measurements/acquisition/uhfli_stimulus.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ def set_output_enabled(self, output: int, is_enabled: bool) -> None:
5050
qcodes_parameter_name = 'signal_output{}_on'.format(output)
5151
self._uhfli.parameters[qcodes_parameter_name](enabled)
5252

53-
def set_oscillator_frequency(self, channel: int, frequency: Optional[float] = None) -> Union[Parameter, None]:
53+
def set_oscillator_frequency(self, oscillator: int, frequency: Optional[float] = None) -> Union[Parameter, None]:
5454
""" Set the oscillators frequencies.
5555
5656
Args:
57-
channel: Output channel the the oscillator belongs to (1 - 8) with MF enabled.
57+
oscillator: Output channel the the oscillator belongs to (1 - 8) with MF enabled.
5858
frequency: Optional parameter that if not provided, this method returns a QCoDeS parameter that can be
5959
used to set the oscillator frequency. Allowed frequencies are 0 - 600 MHz.
6060
"""
61-
qcodes_parameter_name = 'oscillator{}_freq'.format(channel)
61+
qcodes_parameter_name = 'oscillator{}_freq'.format(oscillator)
6262
qcodes_parameter = self._uhfli.parameters[qcodes_parameter_name]
6363
if frequency is None:
6464
return qcodes_parameter

0 commit comments

Comments
 (0)