diff --git a/src/LCRmeter-HP_4284A/main.py b/src/LCRmeter-HP_4284A/main.py index ce6aec08..463ffaff 100644 --- a/src/LCRmeter-HP_4284A/main.py +++ b/src/LCRmeter-HP_4284A/main.py @@ -165,9 +165,6 @@ def get_GUIparameter(self, parameter: dict) -> None: # noqa: N802 self.use_list_sweep = True self.handle_list_sweep_parameter(parameter) - self.variables.append("Time") - self.units.append("s") - def handle_bias_mode(self) -> None: """Choose the bias mode from sweepmode, stepmode, or ValueTypeBias.""" if self.sweepmode.startswith("Voltage"): @@ -245,6 +242,12 @@ def handle_list_sweep_parameter(self, parameter: dict) -> None: if parameter["ListSweepDual"]: self.list_sweep_values = np.append(self.list_sweep_values, self.list_sweep_values[::-1]) + # Add time staps to return values + self.variables.append("Time") + self.units.append("s") + self.plottype.append(True) + self.savetype.append(True) + def initialize(self) -> None: """Initialize the device.""" # store the users device setting diff --git a/src/LCRmeter-Keysight_E498xA/main.py b/src/LCRmeter-Keysight_E498xA/main.py index 41e6fe6d..84bdb41e 100644 --- a/src/LCRmeter-Keysight_E498xA/main.py +++ b/src/LCRmeter-Keysight_E498xA/main.py @@ -167,9 +167,6 @@ def get_GUIparameter(self, parameter: dict) -> None: # noqa: N802 self.use_list_sweep = True self.handle_list_sweep_parameter(parameter) - self.variables.append("Time") - self.units.append("s") - def handle_bias_mode(self) -> None: """Choose the bias mode from sweepmode, stepmode, or ValueTypeBias.""" if self.sweepmode.startswith("Voltage"): @@ -247,6 +244,12 @@ def handle_list_sweep_parameter(self, parameter: dict) -> None: if parameter["ListSweepDual"]: self.list_sweep_values = np.append(self.list_sweep_values, self.list_sweep_values[::-1]) + # Add time staps to return values + self.variables.append("Time") + self.units.append("s") + self.plottype.append(True) + self.savetype.append(True) + def initialize(self) -> None: """Initialize the device.""" # store the users device setting