Skip to content

Commit

Permalink
Add time stamps to variables
Browse files Browse the repository at this point in the history
  • Loading branch information
franz-sweepMe committed Aug 5, 2024
1 parent ad95f95 commit 62ac49d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions src/LCRmeter-HP_4284A/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions src/LCRmeter-Keysight_E498xA/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 62ac49d

Please sign in to comment.