Compare commits

...

2 Commits

Author SHA1 Message Date
carina@hades 57eca380b3 megre 2024-10-15 15:55:17 -04:00
carina@hades b50ce49a63 fix bug for data to influx 2024-10-15 15:53:46 -04:00

View File

@ -359,8 +359,8 @@ class MyWindow(QMainWindow):
self.txtIOut[k][i].setText("{:.2f}".format(iout * 1e6))
if self.chkDB.checkState() == Qt.CheckState.Checked:
points.append(Point("Voltage").tag("Ch",int(chList[i] + 100 * k)).field("value",float(vout)))
points.append(Point("LeakageCurrent").tag("Ch",int(chList[i] + 100 * k)).field("value",float(iout)))
points.append(Point("Voltage").tag("Ch",int(chList[i] + 100 * k)).field("value",float(outVList[sum(nChPerMod[:k]) + i])))
points.append(Point("LeakageCurrent").tag("Ch",int(chList[i] + 100 * k)).field("value",float(outIList[sum(nChPerMod[:k]) + i])))
if self.chkDB.checkState() == Qt.CheckState.Checked:
write_api.write(bucket=bucket, org=org, record=points)