Skip to content

Commit

Permalink
SMU R&S NGx -> 5 different speed options to cover all options of the …
Browse files Browse the repository at this point in the history
…NGU series
  • Loading branch information
afischer-sweepme committed Dec 23, 2024
1 parent c8cc046 commit 18fed84
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions src/SMU-Rohde&Schwarz_NGx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def set_GUIparameter(self):
"Compliance": 5.0,
"Range": ["Auto", "10 µA", "1 mA", "10 mA", "100 mA", "3 A", "10 A"],
"RangeVoltage": ["Auto", "20 V", "6 V"],
"Speed": ["Fast", "Medium", "Slow"],
"Speed": ["Very fast", "Fast", "Medium", "Slow", "Very slow"],
# "4wire": False,
}

Expand Down Expand Up @@ -131,22 +131,31 @@ def configure(self):
self.set_voltage(self.protection)

# Speed
# NPLC settings for model NGU are
# 0, 5, 10, 50 and 100
# Possible NPLC settings for model NGU are 0, 5, 10, 50 and 100
# TODO: the entire Speed section needs a revision as the NPLC settings are only known for the NGU series
if self.speed == "Fast":
if self.speed == "Very fast":
if self.model == "NGU":
self.set_nplc(0)
else:
self.set_nplc(0.1)
if self.speed == "Medium":
self.set_nplc(0) # TODO: check whether other models support 0
elif self.speed == "Fast":
if self.model == "NGU":
self.set_nplc(5)
else:
self.set_nplc(1) # TODO: check whether other models support 1
if self.speed == "Slow":
self.set_nplc(0.1) # TODO: check whether other models support 0.1
elif self.speed == "Medium":
if self.model == "NGU":
self.set_nplc(10)
else:
self.set_nplc(1) # TODO: check whether other models support 1
elif self.speed == "Slow":
if self.model == "NGU":
self.set_nplc(50)
else:
self.set_nplc(10) # TODO: check whether other models support 10
elif self.speed == "Very slow":
if self.model == "NGU":
self.set_nplc(100)
else:
self.set_nplc(10) # TODO: check whether other models support 10

Expand Down

0 comments on commit 18fed84

Please sign in to comment.