You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/release-notes.rst
+2
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ Release Date xx/xx/24
9
9
10
10
New Features
11
11
############
12
+
- DMM drivers now have a new function to set NPLC (Number of Power Line Cycles) for the DMM.
13
+
- DMM drivers now have a new function to use the DMM's internal statistics function to take multiple measurements and return the mean, minimum and maximum values.
# note: the keithley 6500 also supports changing NPLC for diode measurements, but this has been removed as the fluke does not support it.
44
+
self._nplc_modes= [
45
+
"voltage_dc",
46
+
"current_dc",
47
+
"resistance",
48
+
"fresistance",
49
+
"temperature",
50
+
]
51
+
# note: the keithley supports setting NPLC to any value between 0.0005 and 12 (with 50hz mains power) but for compatibility with the fluke, we only support the following values
52
+
self._nplc_settings= [0.02, 0.2, 1, 10]
53
+
self._nplc_default=1
44
54
self._init_string=""# Unchanging
45
55
46
56
# Adapted for different DMM behaviour
@@ -138,6 +148,33 @@ def measurements(self):
138
148
withself.lock:
139
149
returnself._read_measurements()
140
150
151
+
defmin_avg_max(self, samples=1, sample_time=1):
152
+
"""
153
+
automatically samples the DMM for a given number of samples and returns the min, max, and average values
154
+
:param samples: number of samples to take
155
+
:param sample_time: time to wait for the DMM to take the samples
156
+
return: min, avg, max values as floats in a dataclass
157
+
"""
158
+
159
+
self._write(f'TRAC:MAKE "TempTable", {samples}')
160
+
self._write(f"SENS:COUNt {samples}")
161
+
162
+
# we don't actually want the results, this is just to tell the DMM to start sampling
0 commit comments