Use siPrefix for displaying measured current

Won't have the unit adjustment problem
This commit is contained in:
atse 2024-06-28 11:20:37 +08:00
parent e6edfea81d
commit 2952df46ac
2 changed files with 3 additions and 2 deletions

View File

@ -161,7 +161,7 @@ class CtrlPanel(QObject):
)
if settings["tec_i"] is not None:
self.params[channel].child("current").setValue(
settings["tec_i"] * 1000
settings["tec_i"]
)
@pyqtSlot("QVariantList")

View File

@ -11,7 +11,8 @@
"name":"current",
"title":"Current through TEC",
"type":"float",
"suffix":"mA",
"siPrefix":true,
"suffix":"A",
"decimals":6,
"readonly":true
},