# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/industrial_dual_analog_in_v2/ui/calibration.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_Calibration(object):
    def setupUi(self, Calibration):
        Calibration.setObjectName("Calibration")
        Calibration.resize(416, 589)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(Calibration)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.grid = QtWidgets.QGridLayout()
        self.grid.setObjectName("grid")
        self.label_2 = QtWidgets.QLabel(Calibration)
        self.label_2.setObjectName("label_2")
        self.grid.addWidget(self.label_2, 0, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(Calibration)
        self.label_7.setObjectName("label_7")
        self.grid.addWidget(self.label_7, 4, 0, 2, 1)
        self.label_15 = QtWidgets.QLabel(Calibration)
        self.label_15.setWordWrap(True)
        self.label_15.setObjectName("label_15")
        self.grid.addWidget(self.label_15, 13, 0, 1, 3)
        self.label_adc0 = QtWidgets.QLabel(Calibration)
        self.label_adc0.setObjectName("label_adc0")
        self.grid.addWidget(self.label_adc0, 0, 2, 1, 1)
        self.label_offset0 = QtWidgets.QLabel(Calibration)
        self.label_offset0.setObjectName("label_offset0")
        self.grid.addWidget(self.label_offset0, 2, 2, 1, 1)
        self.label_14 = QtWidgets.QLabel(Calibration)
        self.label_14.setTextFormat(QtCore.Qt.AutoText)
        self.label_14.setScaledContents(False)
        self.label_14.setWordWrap(True)
        self.label_14.setObjectName("label_14")
        self.grid.addWidget(self.label_14, 10, 0, 1, 3)
        self.spinbox_voltage_ch0 = QtWidgets.QSpinBox(Calibration)
        self.spinbox_voltage_ch0.setMaximum(35000)
        self.spinbox_voltage_ch0.setObjectName("spinbox_voltage_ch0")
        self.grid.addWidget(self.spinbox_voltage_ch0, 14, 2, 1, 1)
        self.label_8 = QtWidgets.QLabel(Calibration)
        self.label_8.setWordWrap(True)
        self.label_8.setObjectName("label_8")
        self.grid.addWidget(self.label_8, 7, 0, 1, 3)
        self.label_3 = QtWidgets.QLabel(Calibration)
        self.label_3.setObjectName("label_3")
        self.grid.addWidget(self.label_3, 1, 1, 1, 1)
        self.label_10 = QtWidgets.QLabel(Calibration)
        self.label_10.setObjectName("label_10")
        self.grid.addWidget(self.label_10, 4, 1, 1, 1)
        self.label_16 = QtWidgets.QLabel(Calibration)
        self.label_16.setObjectName("label_16")
        self.grid.addWidget(self.label_16, 14, 0, 2, 1)
        self.spinbox_voltage_ch1 = QtWidgets.QSpinBox(Calibration)
        self.spinbox_voltage_ch1.setMaximum(35000)
        self.spinbox_voltage_ch1.setObjectName("spinbox_voltage_ch1")
        self.grid.addWidget(self.spinbox_voltage_ch1, 15, 2, 1, 1)
        self.label_11 = QtWidgets.QLabel(Calibration)
        self.label_11.setObjectName("label_11")
        self.grid.addWidget(self.label_11, 5, 1, 1, 1)
        self.button_cal_remove = QtWidgets.QPushButton(Calibration)
        self.button_cal_remove.setObjectName("button_cal_remove")
        self.grid.addWidget(self.button_cal_remove, 8, 0, 1, 3)
        self.label_4 = QtWidgets.QLabel(Calibration)
        self.label_4.setObjectName("label_4")
        self.grid.addWidget(self.label_4, 2, 0, 2, 1)
        self.label_adc1 = QtWidgets.QLabel(Calibration)
        self.label_adc1.setObjectName("label_adc1")
        self.grid.addWidget(self.label_adc1, 1, 2, 1, 1)
        self.label = QtWidgets.QLabel(Calibration)
        self.label.setObjectName("label")
        self.grid.addWidget(self.label, 0, 0, 2, 1)
        self.label_6 = QtWidgets.QLabel(Calibration)
        self.label_6.setObjectName("label_6")
        self.grid.addWidget(self.label_6, 3, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(Calibration)
        self.label_5.setObjectName("label_5")
        self.grid.addWidget(self.label_5, 2, 1, 1, 1)
        self.line = QtWidgets.QFrame(Calibration)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.grid.addWidget(self.line, 9, 0, 1, 3)
        self.label_offset1 = QtWidgets.QLabel(Calibration)
        self.label_offset1.setObjectName("label_offset1")
        self.grid.addWidget(self.label_offset1, 3, 2, 1, 1)
        self.label_18 = QtWidgets.QLabel(Calibration)
        self.label_18.setObjectName("label_18")
        self.grid.addWidget(self.label_18, 15, 1, 1, 1)
        self.label_gain1 = QtWidgets.QLabel(Calibration)
        self.label_gain1.setObjectName("label_gain1")
        self.grid.addWidget(self.label_gain1, 5, 2, 1, 1)
        self.button_cal_offset = QtWidgets.QPushButton(Calibration)
        self.button_cal_offset.setObjectName("button_cal_offset")
        self.grid.addWidget(self.button_cal_offset, 11, 0, 1, 3)
        self.line_2 = QtWidgets.QFrame(Calibration)
        self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.grid.addWidget(self.line_2, 12, 0, 1, 3)
        self.label_17 = QtWidgets.QLabel(Calibration)
        self.label_17.setObjectName("label_17")
        self.grid.addWidget(self.label_17, 14, 1, 1, 1)
        self.label_gain0 = QtWidgets.QLabel(Calibration)
        self.label_gain0.setObjectName("label_gain0")
        self.grid.addWidget(self.label_gain0, 4, 2, 1, 1)
        self.button_cal_gain = QtWidgets.QPushButton(Calibration)
        self.button_cal_gain.setObjectName("button_cal_gain")
        self.grid.addWidget(self.button_cal_gain, 16, 0, 1, 3)
        self.line_3 = QtWidgets.QFrame(Calibration)
        self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.grid.addWidget(self.line_3, 6, 0, 1, 3)
        self.line_4 = QtWidgets.QFrame(Calibration)
        self.line_4.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_4.setObjectName("line_4")
        self.grid.addWidget(self.line_4, 17, 0, 1, 3)
        self.button_close = QtWidgets.QPushButton(Calibration)
        self.button_close.setObjectName("button_close")
        self.grid.addWidget(self.button_close, 19, 0, 1, 3)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.grid.addItem(spacerItem, 18, 0, 1, 1)
        self.verticalLayout_2.addLayout(self.grid)

        self.retranslateUi(Calibration)
        QtCore.QMetaObject.connectSlotsByName(Calibration)

    def retranslateUi(self, Calibration):
        _translate = QtCore.QCoreApplication.translate
        Calibration.setWindowTitle(_translate("Calibration", "Industrial Dual Analog In Calibration"))
        self.label_2.setText(_translate("Calibration", "Ch 0:"))
        self.label_7.setText(_translate("Calibration", "Gain:"))
        self.label_15.setText(_translate("Calibration", "Step 3: To calibrate gain apply a known voltage to Channel 0 and 1. Enter the known correct voltage below and press \"Calibrate Gain\"."))
        self.label_adc0.setText(_translate("Calibration", "0"))
        self.label_offset0.setText(_translate("Calibration", "0"))
        self.label_14.setText(_translate("Calibration", "Step 2: To calibrate offset connect IN0+, IN0-, IN1+ and IN1- to GND and press \"Calibrate Offset\"."))
        self.spinbox_voltage_ch0.setSuffix(_translate("Calibration", " mV"))
        self.label_8.setText(_translate("Calibration", "Step 1: To recalibrate the Bricklet you have to remove the old calibration and then calibrate the offset first and gain second."))
        self.label_3.setText(_translate("Calibration", "Ch 1:"))
        self.label_10.setText(_translate("Calibration", "Ch 0:"))
        self.label_16.setText(_translate("Calibration", "Voltage:"))
        self.spinbox_voltage_ch1.setSuffix(_translate("Calibration", " mV"))
        self.label_11.setText(_translate("Calibration", "Ch 1"))
        self.button_cal_remove.setText(_translate("Calibration", "Remove Old Calibration"))
        self.label_4.setText(_translate("Calibration", "Offset:"))
        self.label_adc1.setText(_translate("Calibration", "0"))
        self.label.setText(_translate("Calibration", "ADC Value:"))
        self.label_6.setText(_translate("Calibration", "Ch 1:"))
        self.label_5.setText(_translate("Calibration", "Ch 0:"))
        self.label_offset1.setText(_translate("Calibration", "0"))
        self.label_18.setText(_translate("Calibration", "Ch 1:"))
        self.label_gain1.setText(_translate("Calibration", "0"))
        self.button_cal_offset.setText(_translate("Calibration", "Calibrate Offset"))
        self.label_17.setText(_translate("Calibration", "Ch 0:"))
        self.label_gain0.setText(_translate("Calibration", "0"))
        self.button_cal_gain.setText(_translate("Calibration", "Calibrate Gain"))
        self.button_close.setText(_translate("Calibration", "Close"))
