Commit 181f8d7e authored by Alisson Claudino's avatar Alisson Claudino

Construído Esqueleto da Interface - Parte 1: Calibração P

parent 1f70bf6f
This diff is collapsed.
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'CalibracaoT.ui'
#
# Created: Wed Nov 1 15:33:53 2017
# by: PyQt5 UI code generator 5.2.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Processamento.ui'
#
# Created: Wed Nov 1 15:34:09 2017
# by: PyQt5 UI code generator 5.2.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 23))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
This diff is collapsed.
This diff is collapsed.
......@@ -35,7 +35,7 @@ curve7 = p1.plot(pen='c',name="Sensor 7")
curve8 = p1.plot(name="Sensor 8")
#window.CentralGraph.setFixedSize(690,550)
layout.setPreferredSize(700,450)
layout.setPreferredSize(900,550)
y1 = [] #Inicialização da lista dinâmica dos valores de y
y2 = []
y3 = []
......@@ -51,7 +51,8 @@ indx = 0 #Variável auxiliar de contagem
p1.setYRange(0, 5, padding=0) #Define os limites do gráfico
p1.setXRange(0, x_max, padding=0)
p1.setLabel("bottom","Tempo",'s')
p1.setLabel("left","Tensão",'V')
p1.setLabel("left","Força",'Tonf')
p1.setLabel("right","Tensão no Calibrante",'V')
dialog.showMaximized()
......@@ -88,7 +89,8 @@ def update(): #Método para atualizar os arrays co
indx = x_max #impede indx de divergir
else:
x1.append(indx) #Vai adicionando valores de 0 a x_max no eixo x até que a lista x lote e tenha mesmo tamanho da lista y
window.ForceDisp.setText(readData)
window.forcaLabel.setText(dado[0])
window.calibranteLabel.setText(dado[1])
curve1.setData(x1,y1) #Atualiza os dados da curva
curve2.setData(x1,y2)
curve3.setData(x1,y3)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment