From 87182cebd228136ecdd0ecb3fce12f941bd93645 Mon Sep 17 00:00:00 2001 From: "Ryan@SOLARIS_testStation" Date: Mon, 10 Jun 2024 15:34:45 -0400 Subject: [PATCH] leakage current fix unit, influx channel ID fixed --- IsegGUI.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IsegGUI.py b/IsegGUI.py index 932884a..0777f5e 100755 --- a/IsegGUI.py +++ b/IsegGUI.py @@ -329,11 +329,11 @@ class MyWindow(QMainWindow): for k in range(0, nMod): for i, a in enumerate(modChList[k]) : self.txtVOut[k][i].setText("{:.2f}".format(outVList[sum(nChPerMod[:k]) + i])) - self.txtIOut[k][i].setText("{:.2f}".format(outIList[sum(nChPerMod[:k]) + i])) + self.txtIOut[k][i].setText("{:.2f}".format(outIList[sum(nChPerMod[:k]) + i] * 1e6)) if self.chkDB.checkState() == Qt.CheckState.Checked: - points.append(Point("Voltage").tag("Ch",int(chList[i])).field("value",float(outVList[i]))) - points.append(Point("LeakageCurrent").tag("Ch",int(chList[i])).field("value",float(outIList[i]))) + points.append(Point("Voltage").tag("Ch",int(chList[i] + 100 * k)).field("value",float(outVList[i]))) + points.append(Point("LeakageCurrent").tag("Ch",int(chList[i] + 100 * k)).field("value",float(outIList[i]))) if self.chkDB.checkState() == Qt.CheckState.Checked: write_api.write(bucket=bucket, org=org, record=points)