Skip to content

Commit

Permalink
remove ability to set NPCL for diode measurements from keithley (for …
Browse files Browse the repository at this point in the history
…compatibility between DMMs)
  • Loading branch information
Overlord360 committed Dec 6, 2024
1 parent 52a49ec commit 5d96f54
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/fixate/drivers/dmm/keithley_6500.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ def __init__(self, instrument, *args, **kwargs):
"continuity": "CONT",
"diode": "DIOD",
}
# note: the keithley 6500 also supports changing NPLC for diode measurements, but this has been removed as the fluke does not support it.
self._nplc_modes = [
"voltage_dc",
"current_dc",
"resistance",
"fresistance",
"diode",
"temperature",
]
# 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
self._nplc_settings = [0.02, 0.2, 1, 10]
self._nplc_default = 1
self._init_string = "" # Unchanging
Expand Down
9 changes: 9 additions & 0 deletions test/drivers/test_fluke_8846A.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@ def test_measurement_diode(funcgen, dmm, rm):
("current_dc"),
("resistance"),
("fresistance"),
pytest.param(
"diode", marks=pytest.mark.xfail(raises=ParameterError, strict=True)
),
pytest.param(
"voltage_ac", marks=pytest.mark.xfail(raises=ParameterError, strict=True)
),
Expand Down Expand Up @@ -358,6 +361,9 @@ def test_get_nplc(mode, dmm):
("current_dc"),
("resistance"),
("fresistance"),
pytest.param(
"diode", marks=pytest.mark.xfail(raises=ParameterError, strict=True)
),
pytest.param(
"voltage_ac", marks=pytest.mark.xfail(raises=ParameterError, strict=True)
),
Expand Down Expand Up @@ -401,6 +407,9 @@ def test_set_nplc(mode, dmm):
("current_dc"),
("resistance"),
("fresistance"),
pytest.param(
"diode", marks=pytest.mark.xfail(raises=ParameterError, strict=True)
),
pytest.param(
"voltage_ac", marks=pytest.mark.xfail(raises=ParameterError, strict=True)
),
Expand Down
12 changes: 9 additions & 3 deletions test/drivers/test_keithley_6500.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,11 @@ def test_measurement_diode(funcgen, dmm, rm):
[
("voltage_dc"),
("current_dc"),
("diode"),
("resistance"),
("fresistance"),
pytest.param(
"diode", marks=pytest.mark.xfail(raises=ParameterError, strict=True)
),
pytest.param(
"voltage_ac", marks=pytest.mark.xfail(raises=ParameterError, strict=True)
),
Expand Down Expand Up @@ -365,9 +367,11 @@ def test_get_nplc(mode, dmm):
[
("voltage_dc"),
("current_dc"),
("diode"),
("resistance"),
("fresistance"),
pytest.param(
"diode", marks=pytest.mark.xfail(raises=ParameterError, strict=True)
),
pytest.param(
"voltage_ac", marks=pytest.mark.xfail(raises=ParameterError, strict=True)
),
Expand Down Expand Up @@ -409,9 +413,11 @@ def test_set_nplc(mode, dmm):
[
("voltage_dc"),
("current_dc"),
("diode"),
("resistance"),
("fresistance"),
pytest.param(
"diode", marks=pytest.mark.xfail(raises=ParameterError, strict=True)
),
pytest.param(
"voltage_ac", marks=pytest.mark.xfail(raises=ParameterError, strict=True)
),
Expand Down

0 comments on commit 5d96f54

Please sign in to comment.