Esempio n. 1
0
class PlotterBase(object):

    def __init__(self, xlabel, ylabel):
        self.widget = CurveWidget(xlabel=xlabel, ylabel=ylabel)

    def set_rt_axis_limits(self, xmin, xmax):
        self.widget.plot.update_plot_xlimits(xmin, xmax)

    def updateAxes(self):
        self.widget.plot.updateAxes()

    def set_intensity_axis_limits(self, ymin, ymax):
        self.widget.plot.update_plot_ylimits(ymin, ymax)

    def setMinimumSize(self, a, b):
        self.widget.setMinimumSize(a, b)

    def reset_x_limits(self, xmin=None, xmax=None, fac=1.1):
        self.widget.plot.reset_x_limits(xmin, xmax, fac)

    def reset_y_limits(self, ymin=None, ymax=None, fac=1.1, xmin=None, xmax=None):
        self.widget.plot.reset_y_limits(ymin, ymax, fac, xmin, xmax)

    def _x_set_limit(self, ix, value):
        self.widget.plot.set_limit(ix, value)

    def get_limits(self):
        return self.widget.plot.get_plot_limits()

    def replot(self):
        self.widget.plot.replot()
Esempio n. 2
0
class PlotWidget(QWidget):

    def __init__(self, parent, xlabel, ylabel, modified_parent_class=None):
        super(PlotWidget, self).__init__(parent)

        self.layout = QtGui.QGridLayout(self)

        self.widget = CurveWidget(parent, xlabel=xlabel, ylabel=ylabel)
        set_y_axis_scale_draw(self.widget) 
        # inject modified behaviour of widgets plot:
        if modified_parent_class is not None:
            self.widget.plot.__class__ = modified_parent_class

        self.plot = self.widget.plot

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        self.widget.setSizePolicy(sizePolicy)

        left, top, right, bottom = 0, 0, 0, 0
        self.widget.setContentsMargins(left, top, right, bottom)
        self.layout.setContentsMargins(left, top, right, bottom)
        self.layout.addWidget(self.widget, 0, 0, 1, 1)
        self.del_foreground_items()
        self.del_background_items()

    def del_background_items(self):
        self.background_items = []

    def del_foreground_items(self):
        self.foreground_items = []

    def add_background_item(self, item):
        self.background_items.append(item)

    def add_foreground_item(self, item):
        self.foreground_items.append(item)

    def reset_x_limits(self, xmin=None, xmax=None, fac=1.2):
        self.plot.reset_x_limits(xmin, xmax, fac)

    def reset_y_limits(self, ymin=None, ymax=None, fac=1.2):
        self.plot.reset_y_limits(ymin, ymax, fac)

    def replot(self):
        self.plot.replot()

    def clear_plot(self):
        self.plot.del_all_items()
        self.replot()

    def plot_background_items(self):
        for item in self.background_items:
            self.plot.add_item(item)

    def plot_foreground_items(self):
        for item in self.foreground_items:
            self.plot.add_item(item)
Esempio n. 3
0
    def setupUi(self, NWAViewerWindow):
        NWAViewerWindow.setObjectName("NWAViewerWindow")
        NWAViewerWindow.resize(946, 819)
        self.centralwidget = QtGui.QWidget(NWAViewerWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.fileLabel = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fileLabel.sizePolicy().hasHeightForWidth())
        self.fileLabel.setSizePolicy(sizePolicy)
        self.fileLabel.setObjectName("fileLabel")
        self.horizontalLayout.addWidget(self.fileLabel)
        self.linearCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.linearCheckBox.setObjectName("linearCheckBox")
        self.horizontalLayout.addWidget(self.linearCheckBox)
        self.fileButton = QtGui.QPushButton(self.centralwidget)
        self.fileButton.setObjectName("fileButton")
        self.horizontalLayout.addWidget(self.fileButton)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.curvewidget = CurveWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.curvewidget.sizePolicy().hasHeightForWidth())
        self.curvewidget.setSizePolicy(sizePolicy)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName("curvewidget")
        self.verticalLayout.addWidget(self.curvewidget)
        self.curvewidget2 = CurveWidget(self.centralwidget)
        self.curvewidget2.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget2.setObjectName("curvewidget2")
        self.verticalLayout.addWidget(self.curvewidget2)
        NWAViewerWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(NWAViewerWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 946, 22))
        self.menubar.setObjectName("menubar")
        NWAViewerWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(NWAViewerWindow)
        self.statusbar.setObjectName("statusbar")
        NWAViewerWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(NWAViewerWindow)
        self.toolBar.setObjectName("toolBar")
        NWAViewerWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)

        self.retranslateUi(NWAViewerWindow)
        QtCore.QMetaObject.connectSlotsByName(NWAViewerWindow)
Esempio n. 4
0
    def __init__(self, parent, settings, toolbar, start_freq, bandwidth,
                 numpts, dev):
        QSplitter.__init__(self, parent)
        self.setContentsMargins(10, 10, 10, 10)
        self.setOrientation(Qt.Vertical)
        self.curvewidget = CurveWidget(self)
        self.item = {}
        self.points = []
        self.max_hold = False
        self.do_log = True
        self.colours = ['b', 'r', 'c', 'y']
        self.legend = None
        self.settings = settings

        self.curvewidget.add_toolbar(toolbar, "default")
        self.curvewidget.register_all_image_tools()
        self.curvewidget.plot.set_axis_title(BasePlot.X_BOTTOM, 'Frequency')

        self.addWidget(self.curvewidget)
        self.prog = QProgressBar()
        self.prog.setMaximumHeight(32)
        self.addWidget(self.prog)
        self.setStretchFactor(0, 0)
        self.setStretchFactor(1, 0)
        self.setStretchFactor(2, 1)
        self.setHandleWidth(10)
        self.setSizes([1, 5, 1])

        if start_freq is None:
            start_freq = float(
                self.settings.value('spectrum/start_freq', 190e6))

        if bandwidth is None:
            bandwidth = float(self.settings.value('spectrum/bandwidth', 50e6))

        if numpts is None:
            numpts = int(self.settings.value('spectrum/num_samps', 6000))

        print start_freq, bandwidth, numpts

        self.settings.setValue('spectrum/start_freq', start_freq)
        self.settings.setValue('spectrum/bandwidth', bandwidth)
        self.settings.setValue('spectrum/num_samps', numpts)

        self.bg7 = BG7(start_freq, bandwidth, numpts, sport=dev)

        self.reset_data()

        self.bg7.measurement_progress.connect(self.measurement_progress)
        self.bg7.measurement_complete.connect(self.measurement_complete)

        self.bg7.start()
Esempio n. 5
0
    def __init__(self, parent, toolbar):
        QSplitter.__init__(self, parent)
        self.data_ref = None
        self.setContentsMargins(10, 10, 10, 10)
        self.setOrientation(Qt.Vertical)

        dsinfo = DSInfo(self)
        self.addWidget(dsinfo)
        dsproperties = DSProperties(self)
        self.addWidget(dsproperties)
        imagelistwithproperties = ImageListWithProperties(self)
        self.addWidget(imagelistwithproperties)
        self.imagelist = imagelistwithproperties.imagelist
        self.imagelist.currentRowChanged.connect(self.current_item_changed)
        self.imagelist.itemSelectionChanged.connect(self.selection_changed)
        self.ds = dsproperties.datas
        self.info = dsinfo.datas
        self.ds.SIG_APPLY_BUTTON_CLICKED.connect(self.properties_changed)
        self.properties = imagelistwithproperties.properties
        self.properties.SIG_APPLY_BUTTON_CLICKED.connect(
            self.properties_changed)

        self.imagewidget = CurveWidget(self)
        self.item = None
        self.flagitem = None
        self.flagname = ""

        self.imagewidget.add_toolbar(toolbar, "default")
        self.imagewidget.register_standard_tools()

        flag = create_action(self,
                             _("Get preflag from file..."),
                             icon=get_icon('eraser.png'),
                             tip=_("Get a preflag from file"),
                             triggered=self.preflag)
        fit = create_action(self,
                            _("Open fit window..."),
                            icon=get_icon('polyline.png'),
                            tip=_("Open fit window"),
                            triggered=self.fit_win)
        #apply = create_action(self, _("Apply fit file..."),
        #                      icon=get_icon('export.png'), tip=_("Apply fit file"),
        #                      triggered=self.apply_fit)
        add_actions(toolbar, [None, flag, fit])
        self.addWidget(self.imagewidget)

        self.images = []
        self.setStretchFactor(0, 0)
        self.setStretchFactor(1, 1)
        self.setHandleWidth(10)
        self.setSizes([50, 100, 200, 600])
Esempio n. 6
0
    def setup_widget(self, title):
        # ---Create the plot widget:
        curvewidget = CurveWidget(self)
        curvewidget.register_all_curve_tools()
        self.curve_item = make.curve([], [], color="b")
        curvewidget.plot.add_item(self.curve_item)
        curvewidget.plot.set_antialiasing(True)
        # ---

        button = QPushButton("Test filter: %s" % title)
        button.clicked.connect(self.process_data)
        vlayout = QVBoxLayout()
        vlayout.addWidget(curvewidget)
        vlayout.addWidget(button)
        self.setLayout(vlayout)

        self.update_curve()
Esempio n. 7
0
 def setup_widget(self, title):
     #---Create the plot widget:
     curvewidget = CurveWidget(self)
     curvewidget.register_all_curve_tools()
     self.curve_item = make.curve([], [], color='b')
     curvewidget.plot.add_item(self.curve_item)
     curvewidget.plot.set_antialiasing(True)
     #---
     
     button = QPushButton("Test filter: %s" % title)
     self.connect(button, SIGNAL('clicked()'), self.process_data)
     vlayout = QVBoxLayout()
     vlayout.addWidget(curvewidget)
     vlayout.addWidget(button)
     self.setLayout(vlayout)
     
     self.update_curve()
Esempio n. 8
0
    def create_plot(self, options):
        manager = PlotManager(None)
        self.plotwidget = CurveWidget(self, manager=manager, **options)
        manager.set_main(self.plotwidget)
        plot1 = CurvePlot(title="TL")
        plot2 = CurvePlot(title="TR")
        plot3 = CurvePlot(title="BL")
        plot4 = CurvePlot(title="BR")
        self.plotwidget.add_plot(plot1, 0, 0, "1")
        self.plotwidget.add_plot(plot2, 0, 1, "2")
        self.plotwidget.add_plot(plot3, 1, 0, "3")
        self.plotwidget.add_plot(plot4, 1, 1, "4")
        self.plotwidget.finalize()
        manager.synchronize_axis(BasePlot.X_BOTTOM, ["1", "3"])
        manager.synchronize_axis(BasePlot.X_BOTTOM, ["2", "4"])
        manager.synchronize_axis(BasePlot.Y_LEFT, ["1", "2"])
        manager.synchronize_axis(BasePlot.Y_LEFT, ["3", "4"])

        self.layout.addWidget(self.plotwidget, 0, 0)
Esempio n. 9
0
    def __init__(self, parent, toolbar):
        QSplitter.__init__(self, parent)
        # QTabWidget.__init__(self, parent)
        self.setContentsMargins(10, 10, 10, 10)
        self.setOrientation(Qt.Vertical)

        linelistwithproperties = LineListWithProperties(self)
        # self.addWidget(linelistwithproperties)
        self.lineList = linelistwithproperties.lineList
        self.connect(self.lineList, SIGNAL("currentRowChanged(int)"),
                     self.current_item_changed)
        self.connect(self.lineList, SIGNAL("itemSelectionChanged()"),
                     self.selection_changed)
        self.curveProperties = linelistwithproperties.properties
        self.connect(self.curveProperties, SIGNAL("apply_button_clicked()"),
                     self.curve_properties_changed)
        
        self.curvewidget = CurveWidget(self)
        self.curvewidget.register_all_curve_tools()
        self.curve_item = make.curve([], [], color='b')
        self.peak_item = make.curve([],[], markerfacecolor = 'r', marker = 'o', curvestyle="NoCurve")#, alpha = 0.75)
        self.curvewidget.plot.add_item(self.curve_item)
        self.curvewidget.plot.add_item(self.peak_item)
        self.curvewidget.plot.set_antialiasing(True)
        self.addWidget(self.curvewidget)
        
        self.lines = [] # List of ImageParam instances
        self.peaks = []

        
        vSplitter = QSplitter()
        vSplitter.setOrientation(Qt.Vertical)
        daqParamProperties = DAQParamsProperties(self)
        self.daqProperties = daqParamProperties.properties
        self.connect(self.daqProperties, SIGNAL("apply_button_clicked()"), self.daq_properties_changed)
        # daqButton = QPushButton("Upload DAQ Params")
        vSplitter.addWidget(daqParamProperties)
        # vSplitter.addWidget(daqButton)
        tabWidget = QTabWidget()
        tab1 = tabWidget.addTab(linelistwithproperties, "Curve Params")
        tab2 = tabWidget.addTab(vSplitter, "DAQ Params")
        
        self.addWidget(tabWidget)

        self.setStretchFactor(0, 0)
        self.setStretchFactor(1, 1)
        self.setHandleWidth(10)
        self.setSizes([1, 2])
Esempio n. 10
0
 def create_plot(self, options):
     manager = PlotManager(None)
     self.plotwidget = CurveWidget(self, manager=manager, **options)
     manager.set_main(self.plotwidget)
     plot1 = CurvePlot(title="TL")
     plot2 = CurvePlot(title="TR")
     plot3 = CurvePlot(title="BL")
     plot4 = CurvePlot(title="BR")
     self.plotwidget.add_plot(plot1, 0, 0, "1")
     self.plotwidget.add_plot(plot2, 0, 1, "2")
     self.plotwidget.add_plot(plot3, 1, 0, "3")
     self.plotwidget.add_plot(plot4, 1, 1, "4")
     self.plotwidget.finalize()
     manager.synchronize_axis(BasePlot.X_BOTTOM, ["1", "3"])
     manager.synchronize_axis(BasePlot.X_BOTTOM, ["2", "4"])
     manager.synchronize_axis(BasePlot.Y_LEFT,   ["1", "2"])
     manager.synchronize_axis(BasePlot.Y_LEFT,   ["3", "4"])
     
     self.layout.addWidget(self.plotwidget, 0, 0)
Esempio n. 11
0
    def setupUi(self, ServerWindow):
        ServerWindow.setObjectName("ServerWindow")
        ServerWindow.resize(443, 371)
        self.centralwidget = QtGui.QWidget(ServerWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setGeometry(QtCore.QRect(30, 10, 400, 300))
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName("curvewidget")
        ServerWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(ServerWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 443, 22))
        self.menubar.setObjectName("menubar")
        ServerWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(ServerWindow)
        self.statusbar.setObjectName("statusbar")
        ServerWindow.setStatusBar(self.statusbar)

        self.retranslateUi(ServerWindow)
        QtCore.QMetaObject.connectSlotsByName(ServerWindow)
Esempio n. 12
0
    def __init__(self, parent, xlabel, ylabel, modified_parent_class=None):
        super(PlotWidget, self).__init__(parent)

        self.layout = QtGui.QGridLayout(self)

        self.widget = CurveWidget(parent, xlabel=xlabel, ylabel=ylabel)
        set_y_axis_scale_draw(self.widget) 
        # inject modified behaviour of widgets plot:
        if modified_parent_class is not None:
            self.widget.plot.__class__ = modified_parent_class

        self.plot = self.widget.plot

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        self.widget.setSizePolicy(sizePolicy)

        left, top, right, bottom = 0, 0, 0, 0
        self.widget.setContentsMargins(left, top, right, bottom)
        self.layout.setContentsMargins(left, top, right, bottom)
        self.layout.addWidget(self.widget, 0, 0, 1, 1)
        self.del_foreground_items()
        self.del_background_items()
Esempio n. 13
0
class Ui_ServerWindow(object):
    def setupUi(self, ServerWindow):
        ServerWindow.setObjectName("ServerWindow")
        ServerWindow.resize(443, 371)
        self.centralwidget = QtGui.QWidget(ServerWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setGeometry(QtCore.QRect(30, 10, 400, 300))
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName("curvewidget")
        ServerWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(ServerWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 443, 22))
        self.menubar.setObjectName("menubar")
        ServerWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(ServerWindow)
        self.statusbar.setObjectName("statusbar")
        ServerWindow.setStatusBar(self.statusbar)

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

    def retranslateUi(self, ServerWindow):
        ServerWindow.setWindowTitle(QtGui.QApplication.translate("ServerWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
Esempio n. 14
0
    def setupUi(self, SpectrumAnalyzerWindow):
        SpectrumAnalyzerWindow.setObjectName(
            _fromUtf8("SpectrumAnalyzerWindow"))
        SpectrumAnalyzerWindow.resize(817, 666)
        self.centralwidget = QtGui.QWidget(SpectrumAnalyzerWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setGeometry(QtCore.QRect(190, 10, 471, 301))
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.clearButton = QtGui.QPushButton(self.centralwidget)
        self.clearButton.setGeometry(QtCore.QRect(680, 10, 121, 61))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.clearButton.setFont(font)
        self.clearButton.setObjectName(_fromUtf8("clearButton"))
        self.layoutWidget = QtGui.QWidget(self.centralwidget)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 10, 176, 321))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.powerLCD = QtGui.QLCDNumber(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.powerLCD.setFont(font)
        self.powerLCD.setFrameShape(QtGui.QFrame.Panel)
        self.powerLCD.setFrameShadow(QtGui.QFrame.Raised)
        self.powerLCD.setLineWidth(1)
        self.powerLCD.setMidLineWidth(-2)
        self.powerLCD.setSegmentStyle(QtGui.QLCDNumber.Flat)
        self.powerLCD.setObjectName(_fromUtf8("powerLCD"))
        self.horizontalLayout_6.addWidget(self.powerLCD)
        self.dBmLabel = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.dBmLabel.setFont(font)
        self.dBmLabel.setObjectName(_fromUtf8("dBmLabel"))
        self.horizontalLayout_6.addWidget(self.dBmLabel)
        self.verticalLayout.addLayout(self.horizontalLayout_6)
        self.calibratedOuputCheckBox = QtGui.QCheckBox(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.calibratedOuputCheckBox.setFont(font)
        self.calibratedOuputCheckBox.setObjectName(
            _fromUtf8("calibratedOuputCheckBox"))
        self.verticalLayout.addWidget(self.calibratedOuputCheckBox)
        self.label_12 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_12.setFont(font)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.verticalLayout.addWidget(self.label_12)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.frequencySpinBox = QtGui.QDoubleSpinBox(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.frequencySpinBox.setFont(font)
        self.frequencySpinBox.setDecimals(5)
        self.frequencySpinBox.setMinimum(1.0)
        self.frequencySpinBox.setMaximum(10.0)
        self.frequencySpinBox.setSingleStep(0.01)
        self.frequencySpinBox.setProperty(_fromUtf8("value"), 7.000)
        self.frequencySpinBox.setObjectName(_fromUtf8("frequencySpinBox"))
        self.horizontalLayout_5.addWidget(self.frequencySpinBox)
        self.label_13 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_13.setFont(font)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.horizontalLayout_5.addWidget(self.label_13)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.label_2 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout.addWidget(self.label_2)
        self.instantRButton = QtGui.QRadioButton(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.instantRButton.setFont(font)
        self.instantRButton.setChecked(True)
        self.instantRButton.setObjectName(_fromUtf8("instantRButton"))
        self.powerReadingButtonGroup = QtGui.QButtonGroup(
            SpectrumAnalyzerWindow)
        self.powerReadingButtonGroup.setObjectName(
            _fromUtf8("powerReadingButtonGroup"))
        self.powerReadingButtonGroup.addButton(self.instantRButton)
        self.verticalLayout.addWidget(self.instantRButton)
        self.averageRButton = QtGui.QRadioButton(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.averageRButton.setFont(font)
        self.averageRButton.setObjectName(_fromUtf8("averageRButton"))
        self.powerReadingButtonGroup.addButton(self.averageRButton)
        self.verticalLayout.addWidget(self.averageRButton)
        self.label_3 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout.addWidget(self.label_3)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.updateRateSpinBox = QtGui.QDoubleSpinBox(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.updateRateSpinBox.setFont(font)
        self.updateRateSpinBox.setMinimum(0.01)
        self.updateRateSpinBox.setMaximum(30.0)
        self.updateRateSpinBox.setSingleStep(0.2)
        self.updateRateSpinBox.setObjectName(_fromUtf8("updateRateSpinBox"))
        self.horizontalLayout.addWidget(self.updateRateSpinBox)
        self.label_4 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout.addWidget(self.label_4)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.spectrumCurvewidget = CurveWidget(self.centralwidget)
        self.spectrumCurvewidget.setGeometry(QtCore.QRect(190, 350, 601, 251))
        self.spectrumCurvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.spectrumCurvewidget.setObjectName(
            _fromUtf8("spectrumCurvewidget"))
        self.layoutWidget1 = QtGui.QWidget(self.centralwidget)
        self.layoutWidget1.setGeometry(QtCore.QRect(10, 350, 161, 251))
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label_7 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_7.setFont(font)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.verticalLayout_2.addWidget(self.label_7)
        self.label_8 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_8.setFont(font)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.verticalLayout_2.addWidget(self.label_8)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.startSweepSpinBox = QtGui.QDoubleSpinBox(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.startSweepSpinBox.setFont(font)
        self.startSweepSpinBox.setMinimum(1.0)
        self.startSweepSpinBox.setMaximum(10.0)
        self.startSweepSpinBox.setSingleStep(0.00001)
        self.startSweepSpinBox.setProperty(_fromUtf8("value"), 6.5)
        self.startSweepSpinBox.setObjectName(_fromUtf8("startSweepSpinBox"))
        self.horizontalLayout_2.addWidget(self.startSweepSpinBox)
        self.label_5 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_5.setFont(font)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.horizontalLayout_2.addWidget(self.label_5)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.label_9 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_9.setFont(font)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.verticalLayout_2.addWidget(self.label_9)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.endSweepSpinBox = QtGui.QDoubleSpinBox(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.endSweepSpinBox.setFont(font)
        self.endSweepSpinBox.setMinimum(1.0)
        self.endSweepSpinBox.setMaximum(10.0)
        self.endSweepSpinBox.setSingleStep(0.00001)
        self.endSweepSpinBox.setProperty(_fromUtf8("value"), 7.2)
        self.endSweepSpinBox.setObjectName(_fromUtf8("endSweepSpinBox"))
        self.horizontalLayout_3.addWidget(self.endSweepSpinBox)
        self.label_6 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_6.setFont(font)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.horizontalLayout_3.addWidget(self.label_6)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.label_10 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_10.setFont(font)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.verticalLayout_2.addWidget(self.label_10)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.stepSweepSpinBox = QtGui.QDoubleSpinBox(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.stepSweepSpinBox.setFont(font)
        self.stepSweepSpinBox.setDecimals(6)
        self.stepSweepSpinBox.setMinimum(0.00001)
        self.stepSweepSpinBox.setMaximum(1.0)
        self.stepSweepSpinBox.setSingleStep(0.00001)
        self.stepSweepSpinBox.setProperty(_fromUtf8("value"), 0.005)
        self.stepSweepSpinBox.setObjectName(_fromUtf8("stepSweepSpinBox"))
        self.horizontalLayout_4.addWidget(self.stepSweepSpinBox)
        self.label_11 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_11.setFont(font)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.horizontalLayout_4.addWidget(self.label_11)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        self.sweepButton = QtGui.QPushButton(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.sweepButton.setFont(font)
        self.sweepButton.setObjectName(_fromUtf8("sweepButton"))
        self.verticalLayout_2.addWidget(self.sweepButton)
        SpectrumAnalyzerWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(SpectrumAnalyzerWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 817, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        SpectrumAnalyzerWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(SpectrumAnalyzerWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        SpectrumAnalyzerWindow.setStatusBar(self.statusbar)

        self.retranslateUi(SpectrumAnalyzerWindow)
        QtCore.QMetaObject.connectSlotsByName(SpectrumAnalyzerWindow)
Esempio n. 15
0
class MainWidget(QSplitter):
    def __init__(self, parent, toolbar):
        QSplitter.__init__(self, parent)
        self.data_ref = None
        self.setContentsMargins(10, 10, 10, 10)
        self.setOrientation(Qt.Vertical)

        dsinfo = DSInfo(self)
        self.addWidget(dsinfo)
        dsproperties = DSProperties(self)
        self.addWidget(dsproperties)
        imagelistwithproperties = ImageListWithProperties(self)
        self.addWidget(imagelistwithproperties)
        self.imagelist = imagelistwithproperties.imagelist
        self.imagelist.currentRowChanged.connect(self.current_item_changed)
        self.imagelist.itemSelectionChanged.connect(self.selection_changed)
        self.ds = dsproperties.datas
        self.info = dsinfo.datas
        self.ds.SIG_APPLY_BUTTON_CLICKED.connect(self.properties_changed)
        self.properties = imagelistwithproperties.properties
        self.properties.SIG_APPLY_BUTTON_CLICKED.connect(
            self.properties_changed)

        self.imagewidget = CurveWidget(self)
        self.item = None
        self.flagitem = None
        self.flagname = ""

        self.imagewidget.add_toolbar(toolbar, "default")
        self.imagewidget.register_standard_tools()

        flag = create_action(self,
                             _("Get preflag from file..."),
                             icon=get_icon('eraser.png'),
                             tip=_("Get a preflag from file"),
                             triggered=self.preflag)
        fit = create_action(self,
                            _("Open fit window..."),
                            icon=get_icon('polyline.png'),
                            tip=_("Open fit window"),
                            triggered=self.fit_win)
        #apply = create_action(self, _("Apply fit file..."),
        #                      icon=get_icon('export.png'), tip=_("Apply fit file"),
        #                      triggered=self.apply_fit)
        add_actions(toolbar, [None, flag, fit])
        self.addWidget(self.imagewidget)

        self.images = []
        self.setStretchFactor(0, 0)
        self.setStretchFactor(1, 1)
        self.setHandleWidth(10)
        self.setSizes([50, 100, 200, 600])

    def set_data_ref(self, data_ref):
        self.data_ref = data_ref
        self.data_ref.flag = None

    def set_images(self, data_ref):
        for dataset in data_ref.dir_datasets:
            image = ImageParam()
            image.title = dataset.title
            image.otype = dataset.otype
            image.selected = dataset.selected
            self.images.append(image)

    def set_ds_selector(self):
        #c_polar = [("l", "l"), ("r", "r")]
        #choices.set(c_polar)
        #print choices.__call__()
        self.dssel = DSParam()

    def open_setup(self, data_ref):
        self.set_data_ref(data_ref)
        self.set_images(data_ref)
        self.set_ds_selector()
        self.refresh_list()
        self.update_info()


#    def refresh_list(self):
#        self.imagelist.clear()
#        self.imagelist.addItems([image.title for image in self.images])

    def refresh_list(self):
        self.imagelist.clear()
        for image in self.images:
            item = QListWidgetItem(image.title)
            item.setFlags(item.flags() | Qt.ItemIsUserCheckable)
            item.setCheckState(2 if image.selected else 0)
            self.imagelist.addItem(item)

    def selection_changed(self):
        row = self.imagelist.currentRow()
        self.properties.setDisabled(row == -1)

    def current_item_changed(self, row):
        self.image = self.images[row]
        med = self.data_ref.get_median_data([row], self.dssel.section,
                                            self.dssel.polar,
                                            [self.image.rangei],
                                            [self.image.ranges],
                                            [self.image.excluded])
        self.image.x = med[0]
        self.image.y = med[1]
        self.show_data(self.image.x, self.image.y, self.data_ref.flag)
        update_dataset(self.properties.dataset, self.image)
        self.properties.get()
        self.update_info()

    def show_data(self, x, y, flag=None):
        plot = self.imagewidget.plot
        if self.item is not None:
            self.item.set_data(x, y)
        else:
            self.item = make.curve(x, y, color='blue')
            plot.add_item(self.item, z=0)
        if flag is not None:
            if self.flagitem is not None:
                self.flagitem.set_data(x, flag * y)
            else:
                self.flagitem = make.curve(x, flag * y, color='green')
                plot.add_item(self.flagitem, z=0)
        plot.replot()

    def update_info(self):
        row = self.imagelist.currentRow()
        ds = self.data_ref.dir_datasets[row]
        self.info.dataset.feed = self.dssel.feed
        self.info.dataset.section = self.dssel.section
        d = {"0": "L", "1": "R", "2": "Q", "3": "U"}
        self.info.dataset.polar = d[self.dssel.polar]
        self.info.dataset.freq = self.data_ref.dw_io.get_frequency(ds.th)
        self.info.dataset.band = self.data_ref.dw_io.get_bandwidth(
            ds.th, self.dssel.section, d[self.dssel.polar])
        self.info.dataset.otype = ds.otype
        self.info.dataset.flagname = self.flagname
        self.info.get()

    def properties_changed(self):
        row = self.imagelist.currentRow()
        image = self.images[row]
        try:
            image.x
        except:
            pass
        else:
            if ((self.properties.dataset.franges != 0
                 and self.properties.dataset.franges < len(image.x)
                 and self.properties.dataset.frangei <
                 self.properties.dataset.franges)
                    or (self.properties.dataset.franges == 0
                        and self.properties.dataset.frangei < len(image.x))):
                pass
            else:
                msgBox = QMessageBox()
                msgBox.setText(
                    "Fit range void or out of bound! Range max 0:%s" %
                    (len(image.x) - 1))
                msgBox.exec_()
                return -1
        update_dataset(image, self.properties.dataset)
        #self.dssel.section = self.data_ref.list2choices(self.data_ref.sections[int(self.ds.dataset.feed)])
        csections.set(
            self.data_ref.list2choices(self.data_ref.sections[int(
                self.ds.dataset.feed)]))
        update_dataset(self.dssel, self.ds.dataset)
        self.update_info()
        if self.flagname:
            self.data_ref.flag = self.data_ref.get_flag_curve(
                self.flagname, self.dssel.section)
        #for i in self.images:
        #    i.otype = image.otype
        if image.rall == True:
            for i in self.images:
                i.rangei = image.rangei
                i.ranges = image.ranges
        if image.eall == True:
            for i in self.images:
                i.excluded = image.excluded
        for i in self.images:
            i.frangei = image.frangei
            i.franges = image.franges
        try:
            self.show_data(image.x, image.y, self.data_ref.flag)
        except:
            pass

    def preflag(self):
        filename = getopenfilename(self, _("Open"), "")
        if not str(filename[0]):
            return -1
        else:
            #try:
            self.flagname = str(filename[0])
            self.data_ref.flag = self.data_ref.get_flag_curve(
                self.flagname, self.dssel.section)
            self.properties_changed()
            #except:
            #    msgBox = QMessageBox()
            #    msgBox.setText("Wrong file!")
            #    msgBox.exec_()
            #    return -1

    def get_gmedian(self):
        ldata = []
        liran = []
        lsran = []
        lexcl = []
        for i in enumerate(self.images):
            if self.imagelist.item(i[0]).checkState() == 2:
                ldata.append(i[0])
                liran.append(i[1].rangei)
                lsran.append(i[1].ranges)
                lexcl.append(i[1].excluded)
        if len(ldata) != 0:
            self.data_ref.dssel = [
                self.dssel.feed, self.dssel.section, self.dssel.polar
            ]
            self.data_ref.gmed = self.data_ref.get_median_data(
                ldata, self.dssel.section, self.dssel.polar, liran, lsran,
                lexcl)
        else:
            return -1

    def fit_win(self):
        self.fwindow = FitWindow()
        #try:
        self.get_gmedian()
        self.fwindow.get_data(self.data_ref, self.images[0].frangei,
                              self.images[0].franges)
        self.fwindow.show()
        #except:
        #    msgBox = QMessageBox()
        #    msgBox.setText("Selection empty!")
        #    msgBox.exec_()
        #    return -1

    def apply_fit(self):
        msgBox = QMessageBox()
        msgBox.setText("Apply corrections?")
        msgBox.setInformativeText(
            "Select to which files will be applied the correction.")
        CancelButton = msgBox.addButton("Cancel", msgBox.RejectRole)
        SelectButton = msgBox.addButton("Select", msgBox.NoRole)
        AllButton = msgBox.addButton("All", msgBox.YesRole)
        #msgBox.setDefaultButton(QMessageBox.Cancel)
        msgBox.exec_()
        if msgBox.clickedButton() == CancelButton:
            return -1
        elif msgBox.clickedButton() == AllButton:
            filelist = None
        elif msgBox.clickedButton() == SelectButton:
            flret = getopenfilenames(self, _("Select file list"),
                                     self.data_ref.dir_name)[0]
            filelist = []
            for f in flret:
                filelist.append((basename(str(f)), dirname(str(f))))
            msgBox = QMessageBox()
            msgBox.setText("Select the correction file")
            msgBox.addButton(QMessageBox.Ok)
            msgBox.exec_()

        filename = getopenfilename(
            self, _("Correction file"),
            self.data_ref.dir_name + "/" + basename(
                normpath(self.data_ref.dir_name) + "_fit." +
                self.data_ref.files_type))
        try:
            self.data_ref.applycorr(str(filename[0]), filelist)
        except:
            msgBox = QMessageBox()
            msgBox.setText("Not a correction file!")
            msgBox.exec_()
            return -1
Esempio n. 16
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1838, 922)
        self.centralwidget = QtGui.QWidget(MainWindow)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.centralwidget.setFont(font)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout_2 = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout_2.setContentsMargins(-1, 0, -1, 0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setContentsMargins(-1, -1, -1, 0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.scrollArea = QtGui.QScrollArea(self.centralwidget)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(
            0, 0, 1816, 898))
        self.scrollAreaWidgetContents.setObjectName(
            _fromUtf8("scrollAreaWidgetContents"))
        self.groupBox_condition = QtGui.QGroupBox(
            self.scrollAreaWidgetContents)
        self.groupBox_condition.setGeometry(QtCore.QRect(10, 670, 321, 61))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_condition.setFont(font)
        self.groupBox_condition.setObjectName(_fromUtf8("groupBox_condition"))
        self.label_condition = QtGui.QLabel(self.groupBox_condition)
        self.label_condition.setGeometry(QtCore.QRect(10, 20, 301, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_condition.setFont(font)
        self.label_condition.setText(_fromUtf8(""))
        self.label_condition.setObjectName(_fromUtf8("label_condition"))
        self.groupBox_control = QtGui.QGroupBox(self.scrollAreaWidgetContents)
        self.groupBox_control.setEnabled(True)
        self.groupBox_control.setGeometry(QtCore.QRect(10, 350, 321, 61))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_control.setFont(font)
        self.groupBox_control.setObjectName(_fromUtf8("groupBox_control"))
        self.pushButton_Start = QtGui.QPushButton(self.groupBox_control)
        self.pushButton_Start.setGeometry(QtCore.QRect(30, 20, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Start.setFont(font)
        self.pushButton_Start.setObjectName(_fromUtf8("pushButton_Start"))
        self.pushButton_Pause = QtGui.QPushButton(self.groupBox_control)
        self.pushButton_Pause.setGeometry(QtCore.QRect(130, 20, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Pause.setFont(font)
        self.pushButton_Pause.setObjectName(_fromUtf8("pushButton_Pause"))
        self.pushButton_Stop = QtGui.QPushButton(self.groupBox_control)
        self.pushButton_Stop.setGeometry(QtCore.QRect(230, 20, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Stop.setFont(font)
        self.pushButton_Stop.setObjectName(_fromUtf8("pushButton_Stop"))
        self.groupBox_parameters = QtGui.QGroupBox(
            self.scrollAreaWidgetContents)
        self.groupBox_parameters.setEnabled(True)
        self.groupBox_parameters.setGeometry(QtCore.QRect(10, 420, 321, 241))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_parameters.setFont(font)
        self.groupBox_parameters.setObjectName(
            _fromUtf8("groupBox_parameters"))
        self.label_V1 = QtGui.QLabel(self.groupBox_parameters)
        self.label_V1.setGeometry(QtCore.QRect(130, 50, 111, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_V1.setFont(font)
        self.label_V1.setObjectName(_fromUtf8("label_V1"))
        self.label_step = QtGui.QLabel(self.groupBox_parameters)
        self.label_step.setGeometry(QtCore.QRect(100, 20, 61, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_step.setFont(font)
        self.label_step.setText(_fromUtf8(""))
        self.label_step.setObjectName(_fromUtf8("label_step"))
        self.label_Step = QtGui.QLabel(self.groupBox_parameters)
        self.label_Step.setGeometry(QtCore.QRect(50, 20, 51, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_Step.setFont(font)
        self.label_Step.setObjectName(_fromUtf8("label_Step"))
        self.label_U1 = QtGui.QLabel(self.groupBox_parameters)
        self.label_U1.setGeometry(QtCore.QRect(240, 50, 51, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_U1.setFont(font)
        self.label_U1.setObjectName(_fromUtf8("label_U1"))
        self.label_P1 = QtGui.QLabel(self.groupBox_parameters)
        self.label_P1.setGeometry(QtCore.QRect(30, 50, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_P1.setFont(font)
        self.label_P1.setObjectName(_fromUtf8("label_P1"))
        self.label_Time = QtGui.QLabel(self.groupBox_parameters)
        self.label_Time.setGeometry(QtCore.QRect(150, 20, 51, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_Time.setFont(font)
        self.label_Time.setObjectName(_fromUtf8("label_Time"))
        self.label_time = QtGui.QLabel(self.groupBox_parameters)
        self.label_time.setGeometry(QtCore.QRect(200, 20, 61, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_time.setFont(font)
        self.label_time.setText(_fromUtf8(""))
        self.label_time.setObjectName(_fromUtf8("label_time"))
        self.label_timeunit = QtGui.QLabel(self.groupBox_parameters)
        self.label_timeunit.setGeometry(QtCore.QRect(260, 20, 31, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_timeunit.setFont(font)
        self.label_timeunit.setObjectName(_fromUtf8("label_timeunit"))
        self.label_U2 = QtGui.QLabel(self.groupBox_parameters)
        self.label_U2.setGeometry(QtCore.QRect(240, 80, 51, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_U2.setFont(font)
        self.label_U2.setObjectName(_fromUtf8("label_U2"))
        self.label_P2 = QtGui.QLabel(self.groupBox_parameters)
        self.label_P2.setGeometry(QtCore.QRect(30, 80, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_P2.setFont(font)
        self.label_P2.setObjectName(_fromUtf8("label_P2"))
        self.label_V2 = QtGui.QLabel(self.groupBox_parameters)
        self.label_V2.setGeometry(QtCore.QRect(130, 80, 111, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_V2.setFont(font)
        self.label_V2.setObjectName(_fromUtf8("label_V2"))
        self.label_U3 = QtGui.QLabel(self.groupBox_parameters)
        self.label_U3.setGeometry(QtCore.QRect(240, 110, 51, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_U3.setFont(font)
        self.label_U3.setObjectName(_fromUtf8("label_U3"))
        self.label_P3 = QtGui.QLabel(self.groupBox_parameters)
        self.label_P3.setGeometry(QtCore.QRect(30, 110, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_P3.setFont(font)
        self.label_P3.setObjectName(_fromUtf8("label_P3"))
        self.label_V3 = QtGui.QLabel(self.groupBox_parameters)
        self.label_V3.setGeometry(QtCore.QRect(130, 110, 111, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_V3.setFont(font)
        self.label_V3.setObjectName(_fromUtf8("label_V3"))
        self.label_U4 = QtGui.QLabel(self.groupBox_parameters)
        self.label_U4.setGeometry(QtCore.QRect(240, 140, 51, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_U4.setFont(font)
        self.label_U4.setObjectName(_fromUtf8("label_U4"))
        self.label_P4 = QtGui.QLabel(self.groupBox_parameters)
        self.label_P4.setGeometry(QtCore.QRect(30, 140, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_P4.setFont(font)
        self.label_P4.setObjectName(_fromUtf8("label_P4"))
        self.label_V4 = QtGui.QLabel(self.groupBox_parameters)
        self.label_V4.setGeometry(QtCore.QRect(130, 140, 111, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_V4.setFont(font)
        self.label_V4.setObjectName(_fromUtf8("label_V4"))
        self.label_U5 = QtGui.QLabel(self.groupBox_parameters)
        self.label_U5.setGeometry(QtCore.QRect(240, 170, 51, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_U5.setFont(font)
        self.label_U5.setObjectName(_fromUtf8("label_U5"))
        self.label_P5 = QtGui.QLabel(self.groupBox_parameters)
        self.label_P5.setGeometry(QtCore.QRect(30, 170, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_P5.setFont(font)
        self.label_P5.setObjectName(_fromUtf8("label_P5"))
        self.label_V5 = QtGui.QLabel(self.groupBox_parameters)
        self.label_V5.setGeometry(QtCore.QRect(130, 170, 111, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_V5.setFont(font)
        self.label_V5.setObjectName(_fromUtf8("label_V5"))
        self.label_U6 = QtGui.QLabel(self.groupBox_parameters)
        self.label_U6.setGeometry(QtCore.QRect(240, 200, 51, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_U6.setFont(font)
        self.label_U6.setObjectName(_fromUtf8("label_U6"))
        self.label_P6 = QtGui.QLabel(self.groupBox_parameters)
        self.label_P6.setGeometry(QtCore.QRect(30, 200, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_P6.setFont(font)
        self.label_P6.setObjectName(_fromUtf8("label_P6"))
        self.label_V6 = QtGui.QLabel(self.groupBox_parameters)
        self.label_V6.setGeometry(QtCore.QRect(130, 200, 111, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_V6.setFont(font)
        self.label_V6.setObjectName(_fromUtf8("label_V6"))
        self.tabWidget_visa = QtGui.QTabWidget(self.scrollAreaWidgetContents)
        self.tabWidget_visa.setGeometry(QtCore.QRect(10, 10, 321, 221))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.tabWidget_visa.setFont(font)
        self.tabWidget_visa.setObjectName(_fromUtf8("tabWidget_visa"))
        self.tab_228 = QtGui.QWidget()
        self.tab_228.setObjectName(_fromUtf8("tab_228"))
        self.label_chooseVisa_1 = QtGui.QLabel(self.tab_228)
        self.label_chooseVisa_1.setGeometry(QtCore.QRect(20, 0, 201, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_chooseVisa_1.setFont(font)
        self.label_chooseVisa_1.setObjectName(_fromUtf8("label_chooseVisa_1"))
        self.pushButton_select_1 = QtGui.QPushButton(self.tab_228)
        self.pushButton_select_1.setGeometry(QtCore.QRect(30, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_select_1.setFont(font)
        self.pushButton_select_1.setObjectName(
            _fromUtf8("pushButton_select_1"))
        self.comboBox_visa_1 = QtGui.QComboBox(self.tab_228)
        self.comboBox_visa_1.setGeometry(QtCore.QRect(10, 30, 301, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.comboBox_visa_1.setFont(font)
        self.comboBox_visa_1.setObjectName(_fromUtf8("comboBox_visa_1"))
        self.label_visaname_1 = QtGui.QLabel(self.tab_228)
        self.label_visaname_1.setGeometry(QtCore.QRect(20, 120, 181, 27))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_visaname_1.setFont(font)
        self.label_visaname_1.setObjectName(_fromUtf8("label_visaname_1"))
        self.pushButton_close_1 = QtGui.QPushButton(self.tab_228)
        self.pushButton_close_1.setGeometry(QtCore.QRect(130, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_close_1.setFont(font)
        self.pushButton_close_1.setObjectName(_fromUtf8("pushButton_close_1"))
        self.pushButton_update_1 = QtGui.QPushButton(self.tab_228)
        self.pushButton_update_1.setGeometry(QtCore.QRect(230, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_update_1.setFont(font)
        self.pushButton_update_1.setObjectName(
            _fromUtf8("pushButton_update_1"))
        self.label_visa_1 = QtGui.QLabel(self.tab_228)
        self.label_visa_1.setGeometry(QtCore.QRect(0, 150, 311, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_visa_1.setFont(font)
        self.label_visa_1.setText(_fromUtf8(""))
        self.label_visa_1.setObjectName(_fromUtf8("label_visa_1"))
        self.tabWidget_visa.addTab(self.tab_228, _fromUtf8(""))
        self.tab_229 = QtGui.QWidget()
        self.tab_229.setObjectName(_fromUtf8("tab_229"))
        self.pushButton_update_2 = QtGui.QPushButton(self.tab_229)
        self.pushButton_update_2.setGeometry(QtCore.QRect(230, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_update_2.setFont(font)
        self.pushButton_update_2.setObjectName(
            _fromUtf8("pushButton_update_2"))
        self.pushButton_close_2 = QtGui.QPushButton(self.tab_229)
        self.pushButton_close_2.setGeometry(QtCore.QRect(130, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_close_2.setFont(font)
        self.pushButton_close_2.setObjectName(_fromUtf8("pushButton_close_2"))
        self.pushButton_select_2 = QtGui.QPushButton(self.tab_229)
        self.pushButton_select_2.setGeometry(QtCore.QRect(30, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_select_2.setFont(font)
        self.pushButton_select_2.setObjectName(
            _fromUtf8("pushButton_select_2"))
        self.comboBox_visa_2 = QtGui.QComboBox(self.tab_229)
        self.comboBox_visa_2.setGeometry(QtCore.QRect(10, 30, 301, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.comboBox_visa_2.setFont(font)
        self.comboBox_visa_2.setObjectName(_fromUtf8("comboBox_visa_2"))
        self.label_visaname_2 = QtGui.QLabel(self.tab_229)
        self.label_visaname_2.setGeometry(QtCore.QRect(20, 120, 181, 27))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_visaname_2.setFont(font)
        self.label_visaname_2.setObjectName(_fromUtf8("label_visaname_2"))
        self.label_chooseVisa_2 = QtGui.QLabel(self.tab_229)
        self.label_chooseVisa_2.setGeometry(QtCore.QRect(20, 0, 201, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_chooseVisa_2.setFont(font)
        self.label_chooseVisa_2.setObjectName(_fromUtf8("label_chooseVisa_2"))
        self.label_visa_2 = QtGui.QLabel(self.tab_229)
        self.label_visa_2.setGeometry(QtCore.QRect(0, 150, 311, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_visa_2.setFont(font)
        self.label_visa_2.setText(_fromUtf8(""))
        self.label_visa_2.setObjectName(_fromUtf8("label_visa_2"))
        self.tabWidget_visa.addTab(self.tab_229, _fromUtf8(""))
        self.tab_230 = QtGui.QWidget()
        self.tab_230.setObjectName(_fromUtf8("tab_230"))
        self.pushButton_update_3 = QtGui.QPushButton(self.tab_230)
        self.pushButton_update_3.setGeometry(QtCore.QRect(230, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_update_3.setFont(font)
        self.pushButton_update_3.setObjectName(
            _fromUtf8("pushButton_update_3"))
        self.pushButton_close_3 = QtGui.QPushButton(self.tab_230)
        self.pushButton_close_3.setGeometry(QtCore.QRect(130, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_close_3.setFont(font)
        self.pushButton_close_3.setObjectName(_fromUtf8("pushButton_close_3"))
        self.pushButton_select_3 = QtGui.QPushButton(self.tab_230)
        self.pushButton_select_3.setGeometry(QtCore.QRect(30, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_select_3.setFont(font)
        self.pushButton_select_3.setObjectName(
            _fromUtf8("pushButton_select_3"))
        self.comboBox_visa_3 = QtGui.QComboBox(self.tab_230)
        self.comboBox_visa_3.setGeometry(QtCore.QRect(10, 30, 301, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.comboBox_visa_3.setFont(font)
        self.comboBox_visa_3.setObjectName(_fromUtf8("comboBox_visa_3"))
        self.label_visaname_3 = QtGui.QLabel(self.tab_230)
        self.label_visaname_3.setGeometry(QtCore.QRect(20, 120, 181, 27))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_visaname_3.setFont(font)
        self.label_visaname_3.setObjectName(_fromUtf8("label_visaname_3"))
        self.label_chooseVisa_3 = QtGui.QLabel(self.tab_230)
        self.label_chooseVisa_3.setGeometry(QtCore.QRect(20, 0, 201, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_chooseVisa_3.setFont(font)
        self.label_chooseVisa_3.setObjectName(_fromUtf8("label_chooseVisa_3"))
        self.label_visa_3 = QtGui.QLabel(self.tab_230)
        self.label_visa_3.setGeometry(QtCore.QRect(0, 150, 311, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_visa_3.setFont(font)
        self.label_visa_3.setText(_fromUtf8(""))
        self.label_visa_3.setObjectName(_fromUtf8("label_visa_3"))
        self.tabWidget_visa.addTab(self.tab_230, _fromUtf8(""))
        self.tab_231 = QtGui.QWidget()
        self.tab_231.setObjectName(_fromUtf8("tab_231"))
        self.pushButton_update_4 = QtGui.QPushButton(self.tab_231)
        self.pushButton_update_4.setGeometry(QtCore.QRect(230, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_update_4.setFont(font)
        self.pushButton_update_4.setObjectName(
            _fromUtf8("pushButton_update_4"))
        self.pushButton_close_4 = QtGui.QPushButton(self.tab_231)
        self.pushButton_close_4.setGeometry(QtCore.QRect(130, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_close_4.setFont(font)
        self.pushButton_close_4.setObjectName(_fromUtf8("pushButton_close_4"))
        self.pushButton_select_4 = QtGui.QPushButton(self.tab_231)
        self.pushButton_select_4.setGeometry(QtCore.QRect(30, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_select_4.setFont(font)
        self.pushButton_select_4.setObjectName(
            _fromUtf8("pushButton_select_4"))
        self.comboBox_visa_4 = QtGui.QComboBox(self.tab_231)
        self.comboBox_visa_4.setGeometry(QtCore.QRect(10, 30, 301, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.comboBox_visa_4.setFont(font)
        self.comboBox_visa_4.setObjectName(_fromUtf8("comboBox_visa_4"))
        self.label_visaname_4 = QtGui.QLabel(self.tab_231)
        self.label_visaname_4.setGeometry(QtCore.QRect(20, 120, 181, 27))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_visaname_4.setFont(font)
        self.label_visaname_4.setObjectName(_fromUtf8("label_visaname_4"))
        self.label_chooseVisa_4 = QtGui.QLabel(self.tab_231)
        self.label_chooseVisa_4.setGeometry(QtCore.QRect(20, 0, 201, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_chooseVisa_4.setFont(font)
        self.label_chooseVisa_4.setObjectName(_fromUtf8("label_chooseVisa_4"))
        self.label_visa_4 = QtGui.QLabel(self.tab_231)
        self.label_visa_4.setGeometry(QtCore.QRect(0, 150, 311, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_visa_4.setFont(font)
        self.label_visa_4.setText(_fromUtf8(""))
        self.label_visa_4.setObjectName(_fromUtf8("label_visa_4"))
        self.tabWidget_visa.addTab(self.tab_231, _fromUtf8(""))
        self.tab_232 = QtGui.QWidget()
        self.tab_232.setObjectName(_fromUtf8("tab_232"))
        self.pushButton_update_5 = QtGui.QPushButton(self.tab_232)
        self.pushButton_update_5.setGeometry(QtCore.QRect(230, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_update_5.setFont(font)
        self.pushButton_update_5.setObjectName(
            _fromUtf8("pushButton_update_5"))
        self.pushButton_close_5 = QtGui.QPushButton(self.tab_232)
        self.pushButton_close_5.setGeometry(QtCore.QRect(130, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_close_5.setFont(font)
        self.pushButton_close_5.setObjectName(_fromUtf8("pushButton_close_5"))
        self.pushButton_select_5 = QtGui.QPushButton(self.tab_232)
        self.pushButton_select_5.setGeometry(QtCore.QRect(30, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_select_5.setFont(font)
        self.pushButton_select_5.setObjectName(
            _fromUtf8("pushButton_select_5"))
        self.comboBox_visa_5 = QtGui.QComboBox(self.tab_232)
        self.comboBox_visa_5.setGeometry(QtCore.QRect(10, 30, 301, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.comboBox_visa_5.setFont(font)
        self.comboBox_visa_5.setObjectName(_fromUtf8("comboBox_visa_5"))
        self.label_visaname_5 = QtGui.QLabel(self.tab_232)
        self.label_visaname_5.setGeometry(QtCore.QRect(20, 120, 181, 27))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_visaname_5.setFont(font)
        self.label_visaname_5.setObjectName(_fromUtf8("label_visaname_5"))
        self.label_chooseVisa_5 = QtGui.QLabel(self.tab_232)
        self.label_chooseVisa_5.setGeometry(QtCore.QRect(20, 0, 201, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_chooseVisa_5.setFont(font)
        self.label_chooseVisa_5.setObjectName(_fromUtf8("label_chooseVisa_5"))
        self.label_visa_5 = QtGui.QLabel(self.tab_232)
        self.label_visa_5.setGeometry(QtCore.QRect(0, 150, 311, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_visa_5.setFont(font)
        self.label_visa_5.setText(_fromUtf8(""))
        self.label_visa_5.setObjectName(_fromUtf8("label_visa_5"))
        self.tabWidget_visa.addTab(self.tab_232, _fromUtf8(""))
        self.textEdit = QtGui.QTextEdit(self.scrollAreaWidgetContents)
        self.textEdit.setGeometry(QtCore.QRect(10, 250, 321, 91))
        self.textEdit.setObjectName(_fromUtf8("textEdit"))
        self.curvewidget_1 = CurveWidget(self.scrollAreaWidgetContents)
        self.curvewidget_1.setGeometry(QtCore.QRect(350, 10, 721, 421))
        self.curvewidget_1.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget_1.setObjectName(_fromUtf8("curvewidget_1"))
        self.curvewidget_2 = CurveWidget(self.scrollAreaWidgetContents)
        self.curvewidget_2.setGeometry(QtCore.QRect(1080, 10, 721, 421))
        self.curvewidget_2.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget_2.setObjectName(_fromUtf8("curvewidget_2"))
        self.curvewidget_3 = CurveWidget(self.scrollAreaWidgetContents)
        self.curvewidget_3.setGeometry(QtCore.QRect(350, 460, 721, 421))
        self.curvewidget_3.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget_3.setObjectName(_fromUtf8("curvewidget_3"))
        self.curvewidget_4 = CurveWidget(self.scrollAreaWidgetContents)
        self.curvewidget_4.setGeometry(QtCore.QRect(1080, 460, 721, 421))
        self.curvewidget_4.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget_4.setObjectName(_fromUtf8("curvewidget_4"))
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.gridLayout.addWidget(self.scrollArea, 0, 0, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionArray_Builder = QtGui.QAction(MainWindow)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.actionArray_Builder.setFont(font)
        self.actionArray_Builder.setObjectName(
            _fromUtf8("actionArray_Builder"))
        self.actionAgilent_Single_scan = QtGui.QAction(MainWindow)
        self.actionAgilent_Single_scan.setObjectName(
            _fromUtf8("actionAgilent_Single_scan"))
        self.actionKeithley_Single_scan = QtGui.QAction(MainWindow)
        self.actionKeithley_Single_scan.setObjectName(
            _fromUtf8("actionKeithley_Single_scan"))
        self.actionKeithley__Sweep = QtGui.QAction(MainWindow)
        self.actionKeithley__Sweep.setObjectName(
            _fromUtf8("actionKeithley__Sweep"))
        self.actionLockIn_Single_Scan = QtGui.QAction(MainWindow)
        self.actionLockIn_Single_Scan.setObjectName(
            _fromUtf8("actionLockIn_Single_Scan"))
        self.actionResonant_Single_Scan = QtGui.QAction(MainWindow)
        self.actionResonant_Single_Scan.setObjectName(
            _fromUtf8("actionResonant_Single_Scan"))
        self.actionKeithley_Stepper_Single_Scan = QtGui.QAction(MainWindow)
        self.actionKeithley_Stepper_Single_Scan.setObjectName(
            _fromUtf8("actionKeithley_Stepper_Single_Scan"))
        self.actionSee_Visa_List = QtGui.QAction(MainWindow)
        self.actionSee_Visa_List.setObjectName(
            _fromUtf8("actionSee_Visa_List"))
        self.actionTwo_s_with_Lock_in = QtGui.QAction(MainWindow)
        self.actionTwo_s_with_Lock_in.setObjectName(
            _fromUtf8("actionTwo_s_with_Lock_in"))
        self.actionSweep_Scan = QtGui.QAction(MainWindow)
        self.actionSweep_Scan.setObjectName(_fromUtf8("actionSweep_Scan"))
        self.actionLockInSweep = QtGui.QAction(MainWindow)
        self.actionLockInSweep.setObjectName(_fromUtf8("actionLockInSweep"))
        self.actionDouble_Lock_In = QtGui.QAction(MainWindow)
        self.actionDouble_Lock_In.setObjectName(
            _fromUtf8("actionDouble_Lock_In"))
        self.actionVoltage_Bias = QtGui.QAction(MainWindow)
        self.actionVoltage_Bias.setObjectName(_fromUtf8("actionVoltage_Bias"))
        self.actionCurrent_Bias = QtGui.QAction(MainWindow)
        self.actionCurrent_Bias.setObjectName(_fromUtf8("actionCurrent_Bias"))
        self.actionJV_1 = QtGui.QAction(MainWindow)
        self.actionJV_1.setObjectName(_fromUtf8("actionJV_1"))
        self.actionJV_2 = QtGui.QAction(MainWindow)
        self.actionJV_2.setObjectName(_fromUtf8("actionJV_2"))
        self.actionJV_3 = QtGui.QAction(MainWindow)
        self.actionJV_3.setObjectName(_fromUtf8("actionJV_3"))
        self.actionJS_1 = QtGui.QAction(MainWindow)
        self.actionJS_1.setObjectName(_fromUtf8("actionJS_1"))
        self.actionJS_2 = QtGui.QAction(MainWindow)
        self.actionJS_2.setObjectName(_fromUtf8("actionJS_2"))
        self.actionRS_1 = QtGui.QAction(MainWindow)
        self.actionRS_1.setObjectName(_fromUtf8("actionRS_1"))
        self.actionRS_2 = QtGui.QAction(MainWindow)
        self.actionRS_2.setObjectName(_fromUtf8("actionRS_2"))
        self.actionJS_3 = QtGui.QAction(MainWindow)
        self.actionJS_3.setObjectName(_fromUtf8("actionJS_3"))
        self.actionRS_3 = QtGui.QAction(MainWindow)
        self.actionRS_3.setObjectName(_fromUtf8("actionRS_3"))
        self.actionBW_1 = QtGui.QAction(MainWindow)
        self.actionBW_1.setObjectName(_fromUtf8("actionBW_1"))
        self.actionBW_2 = QtGui.QAction(MainWindow)
        self.actionBW_2.setObjectName(_fromUtf8("actionBW_2"))
        self.actionBW_3 = QtGui.QAction(MainWindow)
        self.actionBW_3.setObjectName(_fromUtf8("actionBW_3"))
        self.actionST_1 = QtGui.QAction(MainWindow)
        self.actionST_1.setObjectName(_fromUtf8("actionST_1"))
        self.actionST_2 = QtGui.QAction(MainWindow)
        self.actionST_2.setObjectName(_fromUtf8("actionST_2"))
        self.actionST_3 = QtGui.QAction(MainWindow)
        self.actionST_3.setObjectName(_fromUtf8("actionST_3"))

        self.retranslateUi(MainWindow)
        self.tabWidget_visa.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 17
0
    def __init__(self, parent, settings, toolbar, start_freq, bandwidth,
                 numpts, dev, lo, atten):
        QSplitter.__init__(self, parent)
        self.setContentsMargins(10, 10, 10, 10)
        self.setOrientation(Qt.Vertical)
        self.curvewidget = CurveWidget(self)
        self.item = {}
        self.points = []
        self.max_hold = False
        self.do_log = True
        self.colours = ['b', 'r', 'c', 'y']
        self.legend = None
        self.settings = settings
        self.lo = lo
        self.atten = atten
        print('pw', self.atten)

        self.curvewidget.add_toolbar(toolbar, "default")
        self.curvewidget.register_all_image_tools()
        self.curvewidget.add_tool(MarkerAnnotatedPointTool)

        self.curvewidget.plot.set_axis_title(BasePlot.X_BOTTOM, 'Frequency')
        self.curvewidget.plot.set_axis_title(BasePlot.Y_LEFT, 'Power')

        self.curvewidget.plot.set_axis_unit(BasePlot.Y_LEFT, 'dBm')

        self.addWidget(self.curvewidget)
        self.prog = QProgressBar()
        self.prog.setMaximumHeight(32)
        self.addWidget(self.prog)
        self.setStretchFactor(0, 0)
        self.setStretchFactor(1, 0)
        self.setStretchFactor(2, 1)
        self.setHandleWidth(10)
        self.setSizes([1, 5, 1])

        if start_freq is None:
            start_freq = float(
                self.settings.value('spectrum/start_freq', 190e6))

        if bandwidth is None:
            bandwidth = float(self.settings.value('spectrum/bandwidth', 50e6))

        if numpts is None:
            numpts = int(self.settings.value('spectrum/num_samps', 6000))

        print(start_freq, bandwidth, numpts, self.atten)

        default_cal_slope = 3.3 / (
            1024.0 * 16.44e-3)  # 16.44mV/dB, 3.3 V supply to ADC, 10 bit ADC
        default_cal_icept = -89.0  # 0 ADC value = -89dBm

        self.cal_slope = self.settings.value('spectrum/cal_slope',
                                             default_cal_slope)
        self.cal_icept = self.settings.value('spectrum/cal_icept',
                                             default_cal_icept)

        self.settings.setValue('spectrum/start_freq', start_freq)
        self.settings.setValue('spectrum/bandwidth', bandwidth)
        self.settings.setValue('spectrum/num_samps', numpts)
        self.settings.setValue('spectrum/offset_freq', lo)

        #self.settings.setValue('spectrum/cal_slope', self.cal_slope)
        #self.settings.setValue('spectrum/cal_icept', self.cal_icept)
        print('Atten =', self.atten)

        self.bg7 = BG7(start_freq, bandwidth, numpts, self.atten, sport=dev)

        self.reset_data()

        self.bg7.measurement_progress.connect(self.measurement_progress)
        self.bg7.measurement_complete.connect(self.measurement_complete)

        self.bg7.start()
Esempio n. 18
0
File: main.py Progetto: MIZiper/rdsp
    def initUI(self):
        layout = QtGui.QVBoxLayout(self)

        curve_plot = CurveWidget()
        curve_plot.register_all_curve_tools()
        curve_rotor = make.curve([], [])
        curve_stator = make.curve([], [])
        curve_eccent = make.circle(0, 0, 0, 0)
        plot = curve_plot.plot
        # plot.setAxisScale(0,-self.range,self.range)
        # plot.setAxisScale(2,-self.range,self.range)
        plot.add_item(curve_rotor)
        plot.add_item(curve_stator)
        plot.add_item(curve_eccent)
        self.curve_rotor = curve_rotor
        self.curve_stator = curve_stator
        self.curve_plot = curve_plot
        self.curve_eccent = curve_eccent

        info_layout = QtGui.QVBoxLayout()
        eccent_grp = QtGui.QGroupBox("Eccentricity")
        eccent_layout = QtGui.QVBoxLayout(eccent_grp)
        eccent_x_lbl = QtGui.QLabel("X")
        eccent_x = QtGui.QLabel('0')
        eccent_y_lbl = QtGui.QLabel('Y')
        eccent_y = QtGui.QLabel('0')
        eccent_l_lbl = QtGui.QLabel('(X^2+Y^2)^0.5')
        eccent_l = QtGui.QLabel('0')
        eccent_layout.addWidget(eccent_x_lbl)
        eccent_layout.addWidget(eccent_x)
        eccent_layout.addWidget(eccent_y_lbl)
        eccent_layout.addWidget(eccent_y)
        eccent_layout.addWidget(eccent_l_lbl)
        eccent_layout.addWidget(eccent_l)
        self.eccent_x = eccent_x
        self.eccent_y = eccent_y
        self.eccent_l = eccent_l

        statRef_lbl = QtGui.QLabel("Stator Ref.")
        statRef_cmb = QtGui.QComboBox()
        statRef_cmb.addItems([str(i) for i in np.arange(self.numOfPole) + 1])
        statRef_cmb.currentIndexChanged.connect(self.pole_changed)
        rotRef_lbl = QtGui.QLabel("Rotor Ref.")
        rotRef_cmb = QtGui.QComboBox()
        rotRef_cmb.addItems(
            [self.result[i]['name'] for i in range(self.numOfSensor)])
        rotRef_cmb.currentIndexChanged.connect(self.sensor_changed)
        info_layout.addWidget(eccent_grp)
        info_layout.addStretch(1)
        info_layout.addWidget(statRef_lbl)
        info_layout.addWidget(statRef_cmb)
        info_layout.addWidget(rotRef_lbl)
        info_layout.addWidget(rotRef_cmb)

        speed_slider = QtGui.QSlider(Qt.Horizontal)
        speed_slider.setTickPosition(QtGui.QSlider.TicksAbove)
        speed_slider.setMaximum(self.numOfSpeed - 1)
        speed_slider.valueChanged.connect(self.speed_changed)
        speed_label = QtGui.QLabel("Speed")
        self.speed_label = speed_label
        spd_layout = QtGui.QHBoxLayout()
        spd_layout.addWidget(speed_slider)
        spd_layout.addWidget(speed_label)

        up_layout = QtGui.QHBoxLayout()
        up_layout.addWidget(curve_plot, stretch=1)
        up_layout.addLayout(info_layout)
        layout.addLayout(up_layout)
        layout.addLayout(spd_layout)
Esempio n. 19
0
class Ui_ScopeWindow(object):
    def setupUi(self, ScopeWindow):
        ScopeWindow.setObjectName(_fromUtf8("ScopeWindow"))
        ScopeWindow.resize(1104, 737)
        self.centralwidget = QtGui.QWidget(ScopeWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.ScopeSettings = QtGui.QGroupBox(self.centralwidget)
        self.ScopeSettings.setObjectName(_fromUtf8("ScopeSettings"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.ScopeSettings)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.SampleSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.SampleSettings.sizePolicy().hasHeightForWidth())
        self.SampleSettings.setSizePolicy(sizePolicy)
        self.SampleSettings.setObjectName(_fromUtf8("SampleSettings"))
        self.gridLayout = QtGui.QGridLayout(self.SampleSettings)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(self.SampleSettings)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.samplesSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.samplesSpinBox.setMinimum(32)
        self.samplesSpinBox.setMaximum(999999999)
        self.samplesSpinBox.setSingleStep(64)
        self.samplesSpinBox.setProperty("value", 1024)
        self.samplesSpinBox.setObjectName(_fromUtf8("samplesSpinBox"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.samplesSpinBox)
        self.label_2 = QtGui.QLabel(self.SampleSettings)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
        self.recordsSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.recordsSpinBox.setMinimum(1)
        self.recordsSpinBox.setMaximum(999999999)
        self.recordsSpinBox.setObjectName(_fromUtf8("recordsSpinBox"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.recordsSpinBox)
        self.label_3 = QtGui.QLabel(self.SampleSettings)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
        self.buffersSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.buffersSpinBox.setMinimum(1)
        self.buffersSpinBox.setMaximum(999999999)
        self.buffersSpinBox.setObjectName(_fromUtf8("buffersSpinBox"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.buffersSpinBox)
        self.label_21 = QtGui.QLabel(self.SampleSettings)
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole,
                                  self.label_21)
        self.recordsPerAcquisitionSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.recordsPerAcquisitionSpinBox.setMinimum(1)
        self.recordsPerAcquisitionSpinBox.setMaximum(999999999)
        self.recordsPerAcquisitionSpinBox.setProperty("value", 1)
        self.recordsPerAcquisitionSpinBox.setObjectName(
            _fromUtf8("recordsPerAcquisitionSpinBox"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole,
                                  self.recordsPerAcquisitionSpinBox)
        self.gridLayout.addLayout(self.formLayout, 0, 0, 1, 1)
        self.verticalLayout_5.addWidget(self.SampleSettings)
        self.VerticalSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.VerticalSettings.sizePolicy().hasHeightForWidth())
        self.VerticalSettings.setSizePolicy(sizePolicy)
        self.VerticalSettings.setObjectName(_fromUtf8("VerticalSettings"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.VerticalSettings)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.Ch1Vertical = QtGui.QGroupBox(self.VerticalSettings)
        self.Ch1Vertical.setObjectName(_fromUtf8("Ch1Vertical"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.Ch1Vertical)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.formLayout_5 = QtGui.QFormLayout()
        self.formLayout_5.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_5.setObjectName(_fromUtf8("formLayout_5"))
        self.ch1_enabledCheckBox = QtGui.QCheckBox(self.Ch1Vertical)
        self.ch1_enabledCheckBox.setChecked(True)
        self.ch1_enabledCheckBox.setObjectName(
            _fromUtf8("ch1_enabledCheckBox"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.ch1_enabledCheckBox)
        self.ch1_filteredCheckBox = QtGui.QCheckBox(self.Ch1Vertical)
        self.ch1_filteredCheckBox.setObjectName(
            _fromUtf8("ch1_filteredCheckBox"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.ch1_filteredCheckBox)
        self.label_16 = QtGui.QLabel(self.Ch1Vertical)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_16)
        self.ch1_rangeComboBox = QtGui.QComboBox(self.Ch1Vertical)
        self.ch1_rangeComboBox.setObjectName(_fromUtf8("ch1_rangeComboBox"))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.ch1_rangeComboBox)
        self.label_17 = QtGui.QLabel(self.Ch1Vertical)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_17)
        self.ch1_couplingComboBox = QtGui.QComboBox(self.Ch1Vertical)
        self.ch1_couplingComboBox.setObjectName(
            _fromUtf8("ch1_couplingComboBox"))
        self.ch1_couplingComboBox.addItem(_fromUtf8(""))
        self.ch1_couplingComboBox.addItem(_fromUtf8(""))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.ch1_couplingComboBox)
        self.verticalLayout_3.addLayout(self.formLayout_5)
        self.horizontalLayout_2.addWidget(self.Ch1Vertical)
        self.Ch2Vertical = QtGui.QGroupBox(self.VerticalSettings)
        self.Ch2Vertical.setObjectName(_fromUtf8("Ch2Vertical"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.Ch2Vertical)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.formLayout_6 = QtGui.QFormLayout()
        self.formLayout_6.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_6.setObjectName(_fromUtf8("formLayout_6"))
        self.ch2_enabledCheckBox = QtGui.QCheckBox(self.Ch2Vertical)
        self.ch2_enabledCheckBox.setChecked(True)
        self.ch2_enabledCheckBox.setObjectName(
            _fromUtf8("ch2_enabledCheckBox"))
        self.formLayout_6.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.ch2_enabledCheckBox)
        self.ch2_filteredCheckBox = QtGui.QCheckBox(self.Ch2Vertical)
        self.ch2_filteredCheckBox.setObjectName(
            _fromUtf8("ch2_filteredCheckBox"))
        self.formLayout_6.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.ch2_filteredCheckBox)
        self.label_18 = QtGui.QLabel(self.Ch2Vertical)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout_6.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_18)
        self.ch2_rangeComboBox = QtGui.QComboBox(self.Ch2Vertical)
        self.ch2_rangeComboBox.setObjectName(_fromUtf8("ch2_rangeComboBox"))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.formLayout_6.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.ch2_rangeComboBox)
        self.label_19 = QtGui.QLabel(self.Ch2Vertical)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.formLayout_6.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_19)
        self.ch2_couplingComboBox = QtGui.QComboBox(self.Ch2Vertical)
        self.ch2_couplingComboBox.setObjectName(
            _fromUtf8("ch2_couplingComboBox"))
        self.ch2_couplingComboBox.addItem(_fromUtf8(""))
        self.ch2_couplingComboBox.addItem(_fromUtf8(""))
        self.formLayout_6.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.ch2_couplingComboBox)
        self.verticalLayout_4.addLayout(self.formLayout_6)
        self.horizontalLayout_2.addWidget(self.Ch2Vertical)
        self.verticalLayout_5.addWidget(self.VerticalSettings)
        self.ClockSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ClockSettings.sizePolicy().hasHeightForWidth())
        self.ClockSettings.setSizePolicy(sizePolicy)
        self.ClockSettings.setObjectName(_fromUtf8("ClockSettings"))
        self.verticalLayout = QtGui.QVBoxLayout(self.ClockSettings)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_6 = QtGui.QLabel(self.ClockSettings)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_6)
        self.samplerateComboBox = QtGui.QComboBox(self.ClockSettings)
        self.samplerateComboBox.setObjectName(_fromUtf8("samplerateComboBox"))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.samplerateComboBox)
        self.label_4 = QtGui.QLabel(self.ClockSettings)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_4)
        self.clocksourceComboBox = QtGui.QComboBox(self.ClockSettings)
        self.clocksourceComboBox.setObjectName(
            _fromUtf8("clocksourceComboBox"))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.clocksourceComboBox)
        self.label_5 = QtGui.QLabel(self.ClockSettings)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_5)
        self.clockedgeComboBox = QtGui.QComboBox(self.ClockSettings)
        self.clockedgeComboBox.setObjectName(_fromUtf8("clockedgeComboBox"))
        self.clockedgeComboBox.addItem(_fromUtf8(""))
        self.clockedgeComboBox.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.clockedgeComboBox)
        self.label_10 = QtGui.QLabel(self.ClockSettings)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_10)
        self.timeoutSpinBox = QtGui.QSpinBox(self.ClockSettings)
        self.timeoutSpinBox.setMaximum(1000000000)
        self.timeoutSpinBox.setProperty("value", 5000)
        self.timeoutSpinBox.setObjectName(_fromUtf8("timeoutSpinBox"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.timeoutSpinBox)
        self.verticalLayout.addLayout(self.formLayout_2)
        self.verticalLayout_5.addWidget(self.ClockSettings)
        self.TriggerSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.TriggerSettings.sizePolicy().hasHeightForWidth())
        self.TriggerSettings.setSizePolicy(sizePolicy)
        self.TriggerSettings.setObjectName(_fromUtf8("TriggerSettings"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.TriggerSettings)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.formLayout_3 = QtGui.QFormLayout()
        self.formLayout_3.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_7 = QtGui.QLabel(self.TriggerSettings)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_7)
        self.trig1_sourceComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig1_sourceComboBox.setObjectName(
            _fromUtf8("trig1_sourceComboBox"))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.trig1_sourceComboBox)
        self.trig1_edgeComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig1_edgeComboBox.setObjectName(_fromUtf8("trig1_edgeComboBox"))
        self.trig1_edgeComboBox.addItem(_fromUtf8(""))
        self.trig1_edgeComboBox.addItem(_fromUtf8(""))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.trig1_edgeComboBox)
        self.label_9 = QtGui.QLabel(self.TriggerSettings)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_9)
        self.trig1_levelSpinBox = QtGui.QDoubleSpinBox(self.TriggerSettings)
        self.trig1_levelSpinBox.setProperty("value", 1.0)
        self.trig1_levelSpinBox.setObjectName(_fromUtf8("trig1_levelSpinBox"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.trig1_levelSpinBox)
        self.label_11 = QtGui.QLabel(self.TriggerSettings)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_11)
        self.trigCouplingComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trigCouplingComboBox.setObjectName(
            _fromUtf8("trigCouplingComboBox"))
        self.trigCouplingComboBox.addItem(_fromUtf8(""))
        self.trigCouplingComboBox.addItem(_fromUtf8(""))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.trigCouplingComboBox)
        self.label_8 = QtGui.QLabel(self.TriggerSettings)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_8)
        self.horizontalLayout.addLayout(self.formLayout_3)
        self.formLayout_4 = QtGui.QFormLayout()
        self.formLayout_4.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_4.setObjectName(_fromUtf8("formLayout_4"))
        self.label_12 = QtGui.QLabel(self.TriggerSettings)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_12)
        self.trig2_sourceComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig2_sourceComboBox.setObjectName(
            _fromUtf8("trig2_sourceComboBox"))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.trig2_sourceComboBox)
        self.trig2_edgeComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig2_edgeComboBox.setObjectName(_fromUtf8("trig2_edgeComboBox"))
        self.trig2_edgeComboBox.addItem(_fromUtf8(""))
        self.trig2_edgeComboBox.addItem(_fromUtf8(""))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.trig2_edgeComboBox)
        self.label_13 = QtGui.QLabel(self.TriggerSettings)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_13)
        self.trig2_levelSpinBox = QtGui.QDoubleSpinBox(self.TriggerSettings)
        self.trig2_levelSpinBox.setProperty("value", 1.0)
        self.trig2_levelSpinBox.setObjectName(_fromUtf8("trig2_levelSpinBox"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.trig2_levelSpinBox)
        self.label_14 = QtGui.QLabel(self.TriggerSettings)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_14)
        self.label_15 = QtGui.QLabel(self.TriggerSettings)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_15)
        self.trigOpComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trigOpComboBox.setObjectName(_fromUtf8("trigOpComboBox"))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.trigOpComboBox)
        self.horizontalLayout.addLayout(self.formLayout_4)
        self.verticalLayout_6.addLayout(self.horizontalLayout)
        self.verticalLayout_5.addWidget(self.TriggerSettings)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem)
        self.horizontalLayout_5.addWidget(self.ScopeSettings)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.datapathButton = QtGui.QPushButton(self.centralwidget)
        self.datapathButton.setObjectName(_fromUtf8("datapathButton"))
        self.horizontalLayout_3.addWidget(self.datapathButton)
        self.datapathLineEdit = QtGui.QLineEdit(self.centralwidget)
        self.datapathLineEdit.setObjectName(_fromUtf8("datapathLineEdit"))
        self.horizontalLayout_3.addWidget(self.datapathLineEdit)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label_20 = QtGui.QLabel(self.centralwidget)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.horizontalLayout_6.addWidget(self.label_20)
        self.filenumberLabel = QtGui.QLabel(self.centralwidget)
        self.filenumberLabel.setObjectName(_fromUtf8("filenumberLabel"))
        self.horizontalLayout_6.addWidget(self.filenumberLabel)
        self.prefixLineEdit = QtGui.QLineEdit(self.centralwidget)
        self.prefixLineEdit.setObjectName(_fromUtf8("prefixLineEdit"))
        self.horizontalLayout_6.addWidget(self.prefixLineEdit)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.runButton = QtGui.QPushButton(self.centralwidget)
        self.runButton.setObjectName(_fromUtf8("runButton"))
        self.horizontalLayout_4.addWidget(self.runButton)
        self.saveButton = QtGui.QPushButton(self.centralwidget)
        self.saveButton.setObjectName(_fromUtf8("saveButton"))
        self.horizontalLayout_4.addWidget(self.saveButton)
        self.autosaveCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.autosaveCheckBox.setObjectName(_fromUtf8("autosaveCheckBox"))
        self.horizontalLayout_4.addWidget(self.autosaveCheckBox)
        self.autorunCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.autorunCheckBox.setChecked(True)
        self.autorunCheckBox.setObjectName(_fromUtf8("autorunCheckBox"))
        self.horizontalLayout_4.addWidget(self.autorunCheckBox)
        self.PSDCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.PSDCheckBox.setObjectName(_fromUtf8("PSDCheckBox"))
        self.horizontalLayout_4.addWidget(self.PSDCheckBox)
        self.x_autoscaleCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.x_autoscaleCheckBox.setEnabled(False)
        self.x_autoscaleCheckBox.setChecked(True)
        self.x_autoscaleCheckBox.setObjectName(
            _fromUtf8("x_autoscaleCheckBox"))
        self.horizontalLayout_4.addWidget(self.x_autoscaleCheckBox)
        self.y_autoscaleCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.y_autoscaleCheckBox.setEnabled(False)
        self.y_autoscaleCheckBox.setChecked(True)
        self.y_autoscaleCheckBox.setObjectName(
            _fromUtf8("y_autoscaleCheckBox"))
        self.horizontalLayout_4.addWidget(self.y_autoscaleCheckBox)
        self.autoscaleCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.autoscaleCheckBox.setChecked(True)
        self.autoscaleCheckBox.setObjectName(_fromUtf8("autoscaleCheckBox"))
        self.horizontalLayout_4.addWidget(self.autoscaleCheckBox)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.verticalLayout_2.addWidget(self.curvewidget)
        self.horizontalLayout_5.addLayout(self.verticalLayout_2)
        ScopeWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(ScopeWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1104, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        ScopeWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(ScopeWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        ScopeWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(ScopeWindow)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        ScopeWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)

        self.retranslateUi(ScopeWindow)
        self.trig1_sourceComboBox.setCurrentIndex(2)
        self.trig2_sourceComboBox.setCurrentIndex(3)
        QtCore.QMetaObject.connectSlotsByName(ScopeWindow)

    def retranslateUi(self, ScopeWindow):
        ScopeWindow.setWindowTitle(
            QtGui.QApplication.translate("ScopeWindow", "DScope", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ScopeSettings.setTitle(
            QtGui.QApplication.translate("ScopeWindow", "Scope Settings", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.SampleSettings.setTitle(
            QtGui.QApplication.translate("ScopeWindow",
                                         "Sample / Buffer Settings", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label.setText(
            QtGui.QApplication.translate("ScopeWindow", "Samples", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(
            QtGui.QApplication.translate("ScopeWindow", "Records per Buffer",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(
            QtGui.QApplication.translate("ScopeWindow", "Buffers", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_21.setText(
            QtGui.QApplication.translate("ScopeWindow",
                                         "Records per Acquisition", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.VerticalSettings.setTitle(
            QtGui.QApplication.translate("ScopeWindow", "Vertical Settings",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.Ch1Vertical.setTitle(
            QtGui.QApplication.translate("ScopeWindow", "Channel 1", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch1_enabledCheckBox.setText(
            QtGui.QApplication.translate("ScopeWindow", "Enabled", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch1_filteredCheckBox.setText(
            QtGui.QApplication.translate("ScopeWindow", "Filtered", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_16.setText(
            QtGui.QApplication.translate("ScopeWindow", "Range", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(
            0,
            QtGui.QApplication.translate("ScopeWindow", "4 V", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(
            1,
            QtGui.QApplication.translate("ScopeWindow", "2 V", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(
            2,
            QtGui.QApplication.translate("ScopeWindow", "1 V", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(
            3,
            QtGui.QApplication.translate("ScopeWindow", "400 mV", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(
            4,
            QtGui.QApplication.translate("ScopeWindow", "200 mV", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(
            5,
            QtGui.QApplication.translate("ScopeWindow", "100 mV", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(
            6,
            QtGui.QApplication.translate("ScopeWindow", "40 mV", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_17.setText(
            QtGui.QApplication.translate("ScopeWindow", "Coupling", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch1_couplingComboBox.setItemText(
            0,
            QtGui.QApplication.translate("ScopeWindow", "DC", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch1_couplingComboBox.setItemText(
            1,
            QtGui.QApplication.translate("ScopeWindow", "AC", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.Ch2Vertical.setTitle(
            QtGui.QApplication.translate("ScopeWindow", "Channel 2", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch2_enabledCheckBox.setText(
            QtGui.QApplication.translate("ScopeWindow", "Enabled", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch2_filteredCheckBox.setText(
            QtGui.QApplication.translate("ScopeWindow", "Filtered", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_18.setText(
            QtGui.QApplication.translate("ScopeWindow", "Range", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(
            0,
            QtGui.QApplication.translate("ScopeWindow", "4 V", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(
            1,
            QtGui.QApplication.translate("ScopeWindow", "2 V", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(
            2,
            QtGui.QApplication.translate("ScopeWindow", "1 V", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(
            3,
            QtGui.QApplication.translate("ScopeWindow", "400 mV", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(
            4,
            QtGui.QApplication.translate("ScopeWindow", "200 mV", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(
            5,
            QtGui.QApplication.translate("ScopeWindow", "100 mV", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(
            6,
            QtGui.QApplication.translate("ScopeWindow", "40 mV", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_19.setText(
            QtGui.QApplication.translate("ScopeWindow", "Coupling", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch2_couplingComboBox.setItemText(
            0,
            QtGui.QApplication.translate("ScopeWindow", "DC", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ch2_couplingComboBox.setItemText(
            1,
            QtGui.QApplication.translate("ScopeWindow", "AC", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ClockSettings.setTitle(
            QtGui.QApplication.translate("ScopeWindow", "Clock Settings", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(
            QtGui.QApplication.translate("ScopeWindow", "Clock Rate", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            0,
            QtGui.QApplication.translate("ScopeWindow", "1 GHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            1,
            QtGui.QApplication.translate("ScopeWindow", "500 MHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            2,
            QtGui.QApplication.translate("ScopeWindow", "250 MHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            3,
            QtGui.QApplication.translate("ScopeWindow", "100 MHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            4,
            QtGui.QApplication.translate("ScopeWindow", "50 MHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            5,
            QtGui.QApplication.translate("ScopeWindow", "20 MHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            6,
            QtGui.QApplication.translate("ScopeWindow", "10 MHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            7,
            QtGui.QApplication.translate("ScopeWindow", "5 MHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            8,
            QtGui.QApplication.translate("ScopeWindow", "2 MHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            9,
            QtGui.QApplication.translate("ScopeWindow", "1 MHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            10,
            QtGui.QApplication.translate("ScopeWindow", "20 kHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            11,
            QtGui.QApplication.translate("ScopeWindow", "10 kHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            12,
            QtGui.QApplication.translate("ScopeWindow", "5 kHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            13,
            QtGui.QApplication.translate("ScopeWindow", "2 kHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(
            14,
            QtGui.QApplication.translate("ScopeWindow", "1 kHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(
            QtGui.QApplication.translate("ScopeWindow", "Clock Source", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.clocksourceComboBox.setItemText(
            0,
            QtGui.QApplication.translate("ScopeWindow", "internal", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.clocksourceComboBox.setItemText(
            1,
            QtGui.QApplication.translate("ScopeWindow", "reference", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.clocksourceComboBox.setItemText(
            2,
            QtGui.QApplication.translate("ScopeWindow", "60 MHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.clocksourceComboBox.setItemText(
            3,
            QtGui.QApplication.translate("ScopeWindow", "1 GHz", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(
            QtGui.QApplication.translate("ScopeWindow", "Clock Edge", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.clockedgeComboBox.setItemText(
            0,
            QtGui.QApplication.translate("ScopeWindow", "rising", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.clockedgeComboBox.setItemText(
            1,
            QtGui.QApplication.translate("ScopeWindow", "falling", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_10.setText(
            QtGui.QApplication.translate("ScopeWindow", "Timeout", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.TriggerSettings.setTitle(
            QtGui.QApplication.translate("ScopeWindow", "Trigger Settings",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(
            QtGui.QApplication.translate("ScopeWindow", "Source 1", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trig1_sourceComboBox.setItemText(
            0,
            QtGui.QApplication.translate("ScopeWindow", "CH_A", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trig1_sourceComboBox.setItemText(
            1,
            QtGui.QApplication.translate("ScopeWindow", "CH_B", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trig1_sourceComboBox.setItemText(
            2,
            QtGui.QApplication.translate("ScopeWindow", "external", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trig1_sourceComboBox.setItemText(
            3,
            QtGui.QApplication.translate("ScopeWindow", "disabled", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trig1_edgeComboBox.setItemText(
            0,
            QtGui.QApplication.translate("ScopeWindow", "rising", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trig1_edgeComboBox.setItemText(
            1,
            QtGui.QApplication.translate("ScopeWindow", "falling", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_9.setText(
            QtGui.QApplication.translate("ScopeWindow", "Level 1", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_11.setText(
            QtGui.QApplication.translate("ScopeWindow", "Coupling", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trigCouplingComboBox.setItemText(
            0,
            QtGui.QApplication.translate("ScopeWindow", "DC", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trigCouplingComboBox.setItemText(
            1,
            QtGui.QApplication.translate("ScopeWindow", "AC", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(
            QtGui.QApplication.translate("ScopeWindow", "Edge 1", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_12.setText(
            QtGui.QApplication.translate("ScopeWindow", "Source 2", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trig2_sourceComboBox.setItemText(
            0,
            QtGui.QApplication.translate("ScopeWindow", "CH_A", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trig2_sourceComboBox.setItemText(
            1,
            QtGui.QApplication.translate("ScopeWindow", "CH_B", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trig2_sourceComboBox.setItemText(
            2,
            QtGui.QApplication.translate("ScopeWindow", "external", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trig2_sourceComboBox.setItemText(
            3,
            QtGui.QApplication.translate("ScopeWindow", "disabled", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trig2_edgeComboBox.setItemText(
            0,
            QtGui.QApplication.translate("ScopeWindow", "rising", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trig2_edgeComboBox.setItemText(
            1,
            QtGui.QApplication.translate("ScopeWindow", "falling", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_13.setText(
            QtGui.QApplication.translate("ScopeWindow", "Level 2", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_14.setText(
            QtGui.QApplication.translate("ScopeWindow", "Operation", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_15.setText(
            QtGui.QApplication.translate("ScopeWindow", "Edge 2", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trigOpComboBox.setItemText(
            0,
            QtGui.QApplication.translate("ScopeWindow", "or", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trigOpComboBox.setItemText(
            1,
            QtGui.QApplication.translate("ScopeWindow", "and", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trigOpComboBox.setItemText(
            2,
            QtGui.QApplication.translate("ScopeWindow", "xor", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.trigOpComboBox.setItemText(
            3,
            QtGui.QApplication.translate("ScopeWindow", "and not", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.datapathButton.setText(
            QtGui.QApplication.translate("ScopeWindow", "Datapath", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_20.setText(
            QtGui.QApplication.translate("ScopeWindow", "File Prefix", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.filenumberLabel.setText(
            QtGui.QApplication.translate("ScopeWindow", "000_", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.prefixLineEdit.setText(
            QtGui.QApplication.translate("ScopeWindow", "trace", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.runButton.setText(
            QtGui.QApplication.translate("ScopeWindow", "Run", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.saveButton.setText(
            QtGui.QApplication.translate("ScopeWindow", "Save", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.autosaveCheckBox.setText(
            QtGui.QApplication.translate("ScopeWindow", "autosave", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.autorunCheckBox.setText(
            QtGui.QApplication.translate("ScopeWindow", "autorun", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.PSDCheckBox.setText(
            QtGui.QApplication.translate("ScopeWindow", "PSD", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.x_autoscaleCheckBox.setText(
            QtGui.QApplication.translate("ScopeWindow", "autoscale X", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.y_autoscaleCheckBox.setText(
            QtGui.QApplication.translate("ScopeWindow", "autoscale Y", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.autoscaleCheckBox.setText(
            QtGui.QApplication.translate("ScopeWindow", "autoscale", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.toolBar.setWindowTitle(
            QtGui.QApplication.translate("ScopeWindow", "toolBar", None,
                                         QtGui.QApplication.UnicodeUTF8))
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.setEnabled(True)
        MainWindow.resize(912, 824)
        MainWindow.setTabShape(QtGui.QTabWidget.Rounded)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_3.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.verticalLayout_3.setContentsMargins(-1, 9, -1, -1)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setFrameShadow(QtGui.QFrame.Sunken)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.verticalLayout_3.addWidget(self.curvewidget)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.Slider = Qwt5.QwtSlider(self.centralwidget)
        self.Slider.setReadOnly(False)
        self.Slider.setScalePosition(Qwt5.QwtSlider.NoScale)
        self.Slider.setBgStyle(Qwt5.QwtSlider.BgSlot)
        self.Slider.setObjectName(_fromUtf8("Slider"))
        self.horizontalLayout_5.addWidget(self.Slider)
        self.verticalLayout_3.addLayout(self.horizontalLayout_5)
        self.line_10 = QtGui.QFrame(self.centralwidget)
        self.line_10.setFrameShape(QtGui.QFrame.HLine)
        self.line_10.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_10.setObjectName(_fromUtf8("line_10"))
        self.verticalLayout_3.addWidget(self.line_10)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.plottingIntervalDial = QtGui.QDial(self.centralwidget)
        self.plottingIntervalDial.setMinimum(100)
        self.plottingIntervalDial.setMaximum(5000)
        self.plottingIntervalDial.setSingleStep(100)
        self.plottingIntervalDial.setPageStep(100)
        self.plottingIntervalDial.setProperty("value", 1000)
        self.plottingIntervalDial.setOrientation(QtCore.Qt.Horizontal)
        self.plottingIntervalDial.setInvertedAppearance(False)
        self.plottingIntervalDial.setInvertedControls(False)
        self.plottingIntervalDial.setWrapping(False)
        self.plottingIntervalDial.setNotchTarget(10.0)
        self.plottingIntervalDial.setNotchesVisible(True)
        self.plottingIntervalDial.setObjectName(_fromUtf8("plottingIntervalDial"))
        self.verticalLayout_7.addWidget(self.plottingIntervalDial)
        self.plottingIntervalLabel = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.plottingIntervalLabel.setFont(font)
        self.plottingIntervalLabel.setObjectName(_fromUtf8("plottingIntervalLabel"))
        self.verticalLayout_7.addWidget(self.plottingIntervalLabel)
        self.sampleIntervalDial = QtGui.QDial(self.centralwidget)
        self.sampleIntervalDial.setMinimum(100)
        self.sampleIntervalDial.setMaximum(1000)
        self.sampleIntervalDial.setSingleStep(100)
        self.sampleIntervalDial.setPageStep(100)
        self.sampleIntervalDial.setProperty("value", 500)
        self.sampleIntervalDial.setWrapping(False)
        self.sampleIntervalDial.setNotchTarget(10.0)
        self.sampleIntervalDial.setNotchesVisible(True)
        self.sampleIntervalDial.setObjectName(_fromUtf8("sampleIntervalDial"))
        self.verticalLayout_7.addWidget(self.sampleIntervalDial)
        self.sampleIntervalLabel = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.sampleIntervalLabel.setFont(font)
        self.sampleIntervalLabel.setObjectName(_fromUtf8("sampleIntervalLabel"))
        self.verticalLayout_7.addWidget(self.sampleIntervalLabel)
        self.verticalLayout_7.setStretch(0, 1)
        self.horizontalLayout.addLayout(self.verticalLayout_7)
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.horizontalLayout.addWidget(self.line)
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.line_4 = QtGui.QFrame(self.centralwidget)
        self.line_4.setFrameShape(QtGui.QFrame.HLine)
        self.line_4.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_4.setObjectName(_fromUtf8("line_4"))
        self.verticalLayout_4.addWidget(self.line_4)
        self.timerStatusLabel = QtGui.QLabel(self.centralwidget)
        self.timerStatusLabel.setObjectName(_fromUtf8("timerStatusLabel"))
        self.verticalLayout_4.addWidget(self.timerStatusLabel)
        self.line_8 = QtGui.QFrame(self.centralwidget)
        self.line_8.setFrameShape(QtGui.QFrame.HLine)
        self.line_8.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_8.setObjectName(_fromUtf8("line_8"))
        self.verticalLayout_4.addWidget(self.line_8)
        self.timeLabel = QtGui.QLabel(self.centralwidget)
        self.timeLabel.setFrameShape(QtGui.QFrame.NoFrame)
        self.timeLabel.setFrameShadow(QtGui.QFrame.Sunken)
        self.timeLabel.setLineWidth(1)
        self.timeLabel.setObjectName(_fromUtf8("timeLabel"))
        self.verticalLayout_4.addWidget(self.timeLabel)
        self.line_5 = QtGui.QFrame(self.centralwidget)
        self.line_5.setFrameShape(QtGui.QFrame.HLine)
        self.line_5.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_5.setObjectName(_fromUtf8("line_5"))
        self.verticalLayout_4.addWidget(self.line_5)
        self.svLabel = QtGui.QLabel(self.centralwidget)
        self.svLabel.setFrameShape(QtGui.QFrame.NoFrame)
        self.svLabel.setObjectName(_fromUtf8("svLabel"))
        self.verticalLayout_4.addWidget(self.svLabel)
        self.line_7 = QtGui.QFrame(self.centralwidget)
        self.line_7.setFrameShape(QtGui.QFrame.HLine)
        self.line_7.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_7.setObjectName(_fromUtf8("line_7"))
        self.verticalLayout_4.addWidget(self.line_7)
        self.pvLabel = QtGui.QLabel(self.centralwidget)
        self.pvLabel.setObjectName(_fromUtf8("pvLabel"))
        self.verticalLayout_4.addWidget(self.pvLabel)
        self.line_3 = QtGui.QFrame(self.centralwidget)
        self.line_3.setFrameShape(QtGui.QFrame.HLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.verticalLayout_4.addWidget(self.line_3)
        self.label_3 = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout_4.addWidget(self.label_3)
        self.startButton = QtGui.QPushButton(self.centralwidget)
        self.startButton.setEnabled(False)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/gtk-media-play-ltr.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.startButton.setIcon(icon)
        self.startButton.setObjectName(_fromUtf8("startButton"))
        self.verticalLayout_4.addWidget(self.startButton)
        self.resetButton = QtGui.QPushButton(self.centralwidget)
        self.resetButton.setEnabled(False)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/editdelete.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.resetButton.setIcon(icon1)
        self.resetButton.setObjectName(_fromUtf8("resetButton"))
        self.verticalLayout_4.addWidget(self.resetButton)
        self.stopButton = QtGui.QPushButton(self.centralwidget)
        self.stopButton.setEnabled(False)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/gtk-media-stop.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.stopButton.setIcon(icon2)
        self.stopButton.setObjectName(_fromUtf8("stopButton"))
        self.verticalLayout_4.addWidget(self.stopButton)
        self.horizontalLayout.addLayout(self.verticalLayout_4)
        self.line_9 = QtGui.QFrame(self.centralwidget)
        self.line_9.setFrameShape(QtGui.QFrame.VLine)
        self.line_9.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_9.setObjectName(_fromUtf8("line_9"))
        self.horizontalLayout.addWidget(self.line_9)
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.svVerticalSlider = QtGui.QSlider(self.centralwidget)
        self.svVerticalSlider.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.svVerticalSlider.setMaximum(9999)
        self.svVerticalSlider.setOrientation(QtCore.Qt.Vertical)
        self.svVerticalSlider.setObjectName(_fromUtf8("svVerticalSlider"))
        self.verticalLayout_5.addWidget(self.svVerticalSlider)
        self.SvLcdNumber = QtGui.QLCDNumber(self.centralwidget)
        self.SvLcdNumber.setEnabled(True)
        font = QtGui.QFont()
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.SvLcdNumber.setFont(font)
        self.SvLcdNumber.setSmallDecimalPoint(False)
        self.SvLcdNumber.setNumDigits(5)
        self.SvLcdNumber.setProperty("value", 999.9)
        self.SvLcdNumber.setObjectName(_fromUtf8("SvLcdNumber"))
        self.verticalLayout_5.addWidget(self.SvLcdNumber)
        self.setSvButton = QtGui.QPushButton(self.centralwidget)
        self.setSvButton.setEnabled(False)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/1uparrow.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.setSvButton.setIcon(icon3)
        self.setSvButton.setObjectName(_fromUtf8("setSvButton"))
        self.verticalLayout_5.addWidget(self.setSvButton)
        self.horizontalLayout.addLayout(self.verticalLayout_5)
        self.line_2 = QtGui.QFrame(self.centralwidget)
        self.line_2.setFrameShape(QtGui.QFrame.VLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.horizontalLayout.addWidget(self.line_2)
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setStatusTip(_fromUtf8(""))
        self.tabWidget.setIconSize(QtCore.QSize(24, 24))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.connectionTab_2 = QtGui.QWidget()
        self.connectionTab_2.setObjectName(_fromUtf8("connectionTab_2"))
        self.verticalLayout_11 = QtGui.QVBoxLayout(self.connectionTab_2)
        self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11"))
        self.portComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.portComboBox.setObjectName(_fromUtf8("portComboBox"))
        self.verticalLayout_11.addWidget(self.portComboBox)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.timoutDoubleSpinBox = QtGui.QDoubleSpinBox(self.connectionTab_2)
        self.timoutDoubleSpinBox.setDecimals(1)
        self.timoutDoubleSpinBox.setMaximum(1.0)
        self.timoutDoubleSpinBox.setProperty("value", 0.1)
        self.timoutDoubleSpinBox.setObjectName(_fromUtf8("timoutDoubleSpinBox"))
        self.gridLayout_3.addWidget(self.timoutDoubleSpinBox, 0, 3, 1, 1)
        self.stopBitsComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.stopBitsComboBox.setObjectName(_fromUtf8("stopBitsComboBox"))
        self.stopBitsComboBox.addItem(_fromUtf8(""))
        self.stopBitsComboBox.addItem(_fromUtf8(""))
        self.stopBitsComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.stopBitsComboBox, 1, 1, 1, 1)
        self.label_14 = QtGui.QLabel(self.connectionTab_2)
        self.label_14.setWordWrap(False)
        self.label_14.setMargin(0)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.gridLayout_3.addWidget(self.label_14, 3, 0, 1, 1)
        self.baudComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.baudComboBox.setObjectName(_fromUtf8("baudComboBox"))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.baudComboBox, 0, 1, 1, 1)
        self.label_13 = QtGui.QLabel(self.connectionTab_2)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.gridLayout_3.addWidget(self.label_13, 1, 0, 1, 1)
        self.label_15 = QtGui.QLabel(self.connectionTab_2)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.gridLayout_3.addWidget(self.label_15, 1, 2, 1, 1)
        self.ParityComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.ParityComboBox.setObjectName(_fromUtf8("ParityComboBox"))
        self.ParityComboBox.addItem(_fromUtf8(""))
        self.ParityComboBox.addItem(_fromUtf8(""))
        self.ParityComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.ParityComboBox, 3, 1, 1, 1)
        self.dataBitsComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.dataBitsComboBox.setObjectName(_fromUtf8("dataBitsComboBox"))
        self.dataBitsComboBox.addItem(_fromUtf8(""))
        self.dataBitsComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.dataBitsComboBox, 1, 3, 1, 1)
        self.label_16 = QtGui.QLabel(self.connectionTab_2)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.gridLayout_3.addWidget(self.label_16, 0, 2, 1, 1)
        self.connectButton = QtGui.QPushButton(self.connectionTab_2)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(165, 240, 156))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(165, 240, 156))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(165, 240, 156))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        self.connectButton.setPalette(palette)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.connectButton.setFont(font)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/tool_logwindow.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.connectButton.setIcon(icon4)
        self.connectButton.setFlat(False)
        self.connectButton.setObjectName(_fromUtf8("connectButton"))
        self.gridLayout_3.addWidget(self.connectButton, 3, 2, 1, 1)
        self.disconnectButton = QtGui.QPushButton(self.connectionTab_2)
        self.disconnectButton.setEnabled(False)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.disconnectButton.setFont(font)
        self.disconnectButton.setIcon(icon1)
        self.disconnectButton.setObjectName(_fromUtf8("disconnectButton"))
        self.gridLayout_3.addWidget(self.disconnectButton, 3, 3, 1, 1)
        self.verticalLayout_11.addLayout(self.gridLayout_3)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/USBcable.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.connectionTab_2, icon5, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.tab_5)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(self.tab_5)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.pvLcdNumber = QtGui.QLCDNumber(self.tab_5)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(231, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(231, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
        self.pvLcdNumber.setPalette(palette)
        self.pvLcdNumber.setSmallDecimalPoint(False)
        self.pvLcdNumber.setDigitCount(5)
        self.pvLcdNumber.setProperty("value", 999.9)
        self.pvLcdNumber.setObjectName(_fromUtf8("pvLcdNumber"))
        self.verticalLayout.addWidget(self.pvLcdNumber)
        self.getPvButton = QtGui.QPushButton(self.tab_5)
        self.getPvButton.setEnabled(False)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(_fromUtf8(":/1downarrow.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.getPvButton.setIcon(icon6)
        self.getPvButton.setObjectName(_fromUtf8("getPvButton"))
        self.verticalLayout.addWidget(self.getPvButton)
        self.verticalLayout.setStretch(1, 1)
        self.horizontalLayout_2.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label_2 = QtGui.QLabel(self.tab_5)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_2.addWidget(self.label_2)
        self.svLcdNumber = QtGui.QLCDNumber(self.tab_5)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 222, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 222, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
        self.svLcdNumber.setPalette(palette)
        self.svLcdNumber.setSmallDecimalPoint(False)
        self.svLcdNumber.setProperty("value", 999.9)
        self.svLcdNumber.setObjectName(_fromUtf8("svLcdNumber"))
        self.verticalLayout_2.addWidget(self.svLcdNumber)
        self.getSvButton = QtGui.QPushButton(self.tab_5)
        self.getSvButton.setEnabled(False)
        self.getSvButton.setIcon(icon6)
        self.getSvButton.setObjectName(_fromUtf8("getSvButton"))
        self.verticalLayout_2.addWidget(self.getSvButton)
        self.verticalLayout_2.setStretch(1, 1)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(_fromUtf8(":/Analyzeloop.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab_5, icon7, _fromUtf8(""))
        self.monitorTab_2 = QtGui.QWidget()
        self.monitorTab_2.setObjectName(_fromUtf8("monitorTab_2"))
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.monitorTab_2)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.dataTextEdit = QtGui.QTextEdit(self.monitorTab_2)
        self.dataTextEdit.setEnabled(True)
        self.dataTextEdit.setObjectName(_fromUtf8("dataTextEdit"))
        self.verticalLayout_8.addWidget(self.dataTextEdit)
        self.monitorScrollCheckBox = QtGui.QCheckBox(self.monitorTab_2)
        self.monitorScrollCheckBox.setChecked(True)
        self.monitorScrollCheckBox.setObjectName(_fromUtf8("monitorScrollCheckBox"))
        self.verticalLayout_8.addWidget(self.monitorScrollCheckBox)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(_fromUtf8(":/Bill.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.monitorTab_2, icon8, _fromUtf8(""))
        self.dataTab_2 = QtGui.QWidget()
        self.dataTab_2.setObjectName(_fromUtf8("dataTab_2"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.dataTab_2)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.DaqTableWidget = QtGui.QTableWidget(self.dataTab_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.DaqTableWidget.sizePolicy().hasHeightForWidth())
        self.DaqTableWidget.setSizePolicy(sizePolicy)
        self.DaqTableWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.DaqTableWidget.setMidLineWidth(1)
        self.DaqTableWidget.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
        self.DaqTableWidget.setAlternatingRowColors(True)
        self.DaqTableWidget.setObjectName(_fromUtf8("DaqTableWidget"))
        self.DaqTableWidget.setColumnCount(6)
        self.DaqTableWidget.setRowCount(1)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 0, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 1, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 2, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 3, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 4, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 5, item)
        self.DaqTableWidget.horizontalHeader().setCascadingSectionResizes(False)
        self.DaqTableWidget.horizontalHeader().setMinimumSectionSize(25)
        self.DaqTableWidget.horizontalHeader().setStretchLastSection(False)
        self.DaqTableWidget.verticalHeader().setVisible(False)
        self.DaqTableWidget.verticalHeader().setDefaultSectionSize(20)
        self.verticalLayout_6.addWidget(self.DaqTableWidget)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.daqScrollCheckBox = QtGui.QCheckBox(self.dataTab_2)
        self.daqScrollCheckBox.setChecked(True)
        self.daqScrollCheckBox.setObjectName(_fromUtf8("daqScrollCheckBox"))
        self.horizontalLayout_4.addWidget(self.daqScrollCheckBox)
        self.daqSamplesTakenLabel = QtGui.QLabel(self.dataTab_2)
        self.daqSamplesTakenLabel.setObjectName(_fromUtf8("daqSamplesTakenLabel"))
        self.horizontalLayout_4.addWidget(self.daqSamplesTakenLabel)
        self.clearDaqButton = QtGui.QPushButton(self.dataTab_2)
        self.clearDaqButton.setStatusTip(_fromUtf8(""))
        self.clearDaqButton.setObjectName(_fromUtf8("clearDaqButton"))
        self.horizontalLayout_4.addWidget(self.clearDaqButton)
        self.verticalLayout_6.addLayout(self.horizontalLayout_4)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(_fromUtf8(":/Research.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.dataTab_2, icon9, _fromUtf8(""))
        self.modbusTab_2 = QtGui.QWidget()
        self.modbusTab_2.setObjectName(_fromUtf8("modbusTab_2"))
        self.verticalLayout_13 = QtGui.QVBoxLayout(self.modbusTab_2)
        self.verticalLayout_13.setObjectName(_fromUtf8("verticalLayout_13"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_4 = QtGui.QLabel(self.modbusTab_2)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_4)
        self.label_17 = QtGui.QLabel(self.modbusTab_2)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_17)
        self.PvReadSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.PvReadSpinBox.setMaximum(10000)
        self.PvReadSpinBox.setProperty("value", 4096)
        self.PvReadSpinBox.setObjectName(_fromUtf8("PvReadSpinBox"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.PvReadSpinBox)
        self.label_18 = QtGui.QLabel(self.modbusTab_2)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_18)
        self.SvReadSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.SvReadSpinBox.setMaximum(10000)
        self.SvReadSpinBox.setProperty("value", 4097)
        self.SvReadSpinBox.setObjectName(_fromUtf8("SvReadSpinBox"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.SvReadSpinBox)
        self.label_19 = QtGui.QLabel(self.modbusTab_2)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.formLayout_2.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_19)
        self.PvWriteSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.PvWriteSpinBox.setMaximum(10000)
        self.PvWriteSpinBox.setProperty("value", 4096)
        self.PvWriteSpinBox.setObjectName(_fromUtf8("PvWriteSpinBox"))
        self.formLayout_2.setWidget(4, QtGui.QFormLayout.FieldRole, self.PvWriteSpinBox)
        self.label_20 = QtGui.QLabel(self.modbusTab_2)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.formLayout_2.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_20)
        self.SvWriteSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.SvWriteSpinBox.setMaximum(10000)
        self.SvWriteSpinBox.setProperty("value", 4097)
        self.SvWriteSpinBox.setObjectName(_fromUtf8("SvWriteSpinBox"))
        self.formLayout_2.setWidget(5, QtGui.QFormLayout.FieldRole, self.SvWriteSpinBox)
        self.label_5 = QtGui.QLabel(self.modbusTab_2)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_5.setFont(font)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_5)
        self.verticalLayout_13.addLayout(self.formLayout_2)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap(_fromUtf8(":/PCboard.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.modbusTab_2, icon10, _fromUtf8(""))
        self.horizontalLayout.addWidget(self.tabWidget)
        self.horizontalLayout.setStretch(0, 2)
        self.horizontalLayout.setStretch(6, 7)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.verticalLayout_3.setStretch(0, 2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 912, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuHelp = QtGui.QMenu(self.menubar)
        self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionExit = QtGui.QAction(MainWindow)
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap(_fromUtf8(":/application-exit.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionExit.setIcon(icon11)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionSave_Daq = QtGui.QAction(MainWindow)
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap(_fromUtf8(":/stock_save.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSave_Daq.setIcon(icon12)
        self.actionSave_Daq.setObjectName(_fromUtf8("actionSave_Daq"))
        self.actionReset_DAQ = QtGui.QAction(MainWindow)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap(_fromUtf8(":/gtk-refresh.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionReset_DAQ.setIcon(icon13)
        self.actionReset_DAQ.setObjectName(_fromUtf8("actionReset_DAQ"))
        self.actionAbout = QtGui.QAction(MainWindow)
        icon14 = QtGui.QIcon()
        icon14.addPixmap(QtGui.QPixmap(_fromUtf8(":/help-about.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionAbout.setIcon(icon14)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.actionHelp = QtGui.QAction(MainWindow)
        icon15 = QtGui.QIcon()
        icon15.addPixmap(QtGui.QPixmap(_fromUtf8(":/gnome-help.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionHelp.setIcon(icon15)
        self.actionHelp.setObjectName(_fromUtf8("actionHelp"))
        self.menuFile.addAction(self.actionSave_Daq)
        self.menuFile.addAction(self.actionReset_DAQ)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionExit)
        self.menuHelp.addAction(self.actionAbout)
        self.menuHelp.addAction(self.actionHelp)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())
        self.toolBar.addAction(self.actionReset_DAQ)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionSave_Daq)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionExit)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionAbout)
        self.toolBar.addAction(self.actionHelp)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(3)
        self.baudComboBox.setCurrentIndex(2)
        self.ParityComboBox.setCurrentIndex(0)
        self.dataBitsComboBox.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
        self.plottingIntervalLabel.setText(_translate("MainWindow", "Plotting Interval: 1000", None))
        self.sampleIntervalLabel.setText(_translate("MainWindow", "Sample Interval: 100", None))
        self.timerStatusLabel.setText(_translate("MainWindow", "Status: Stopped", None))
        self.timeLabel.setText(_translate("MainWindow", "Time: 12:59:59", None))
        self.svLabel.setText(_translate("MainWindow", "SV: 999.9", None))
        self.pvLabel.setText(_translate("MainWindow", "PV: 999.9", None))
        self.label_3.setText(_translate("MainWindow", "DAQ Record", None))
        self.startButton.setStatusTip(_translate("MainWindow", "Start recording DAQ at plotting interval", None))
        self.startButton.setText(_translate("MainWindow", "Start", None))
        self.resetButton.setStatusTip(_translate("MainWindow", "Reset DAQ", None))
        self.resetButton.setText(_translate("MainWindow", "Reset", None))
        self.stopButton.setStatusTip(_translate("MainWindow", "Stop Taking DAQ data (cannot restart)", None))
        self.stopButton.setText(_translate("MainWindow", "Stop", None))
        self.svVerticalSlider.setStatusTip(_translate("MainWindow", "Value to set SV to", None))
        self.setSvButton.setStatusTip(_translate("MainWindow", "Set the SV on the Love 16B", None))
        self.setSvButton.setText(_translate("MainWindow", "Set SV", None))
        self.portComboBox.setStatusTip(_translate("MainWindow", "Com port for ModBus connection", None))
        self.stopBitsComboBox.setItemText(0, _translate("MainWindow", "1", None))
        self.stopBitsComboBox.setItemText(1, _translate("MainWindow", "1.5", None))
        self.stopBitsComboBox.setItemText(2, _translate("MainWindow", "2", None))
        self.label_14.setText(_translate("MainWindow", "Parity:", None))
        self.baudComboBox.setItemText(0, _translate("MainWindow", "9600", None))
        self.baudComboBox.setItemText(1, _translate("MainWindow", "19200", None))
        self.baudComboBox.setItemText(2, _translate("MainWindow", "38400", None))
        self.baudComboBox.setItemText(3, _translate("MainWindow", "57600", None))
        self.baudComboBox.setItemText(4, _translate("MainWindow", "115200", None))
        self.label_13.setText(_translate("MainWindow", "Stop Bits:", None))
        self.label_15.setText(_translate("MainWindow", "Data Bits:", None))
        self.ParityComboBox.setItemText(0, _translate("MainWindow", "NONE", None))
        self.ParityComboBox.setItemText(1, _translate("MainWindow", "EVEN", None))
        self.ParityComboBox.setItemText(2, _translate("MainWindow", "ODD", None))
        self.dataBitsComboBox.setItemText(0, _translate("MainWindow", "7", None))
        self.dataBitsComboBox.setItemText(1, _translate("MainWindow", "8", None))
        self.label_16.setText(_translate("MainWindow", "Modbus Timeout", None))
        self.connectButton.setText(_translate("MainWindow", "Connect Modbus", None))
        self.disconnectButton.setText(_translate("MainWindow", "Disconnect ModBus", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.connectionTab_2), _translate("MainWindow", "Connection", None))
        self.label.setText(_translate("MainWindow", "PV", None))
        self.getPvButton.setStatusTip(_translate("MainWindow", "Get PV from Love 16B", None))
        self.getPvButton.setText(_translate("MainWindow", "Get PV", None))
        self.label_2.setText(_translate("MainWindow", "SV", None))
        self.getSvButton.setStatusTip(_translate("MainWindow", "Get SV from Love 16B", None))
        self.getSvButton.setText(_translate("MainWindow", "Get SV", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("MainWindow", "Readouts", None))
        self.dataTextEdit.setStatusTip(_translate("MainWindow", "Message log...", None))
        self.dataTextEdit.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt; font-weight:600;\">Love 16B Data Monitor...</span></p></body></html>", None))
        self.monitorScrollCheckBox.setText(_translate("MainWindow", "Scroll to Bottom", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.monitorTab_2), _translate("MainWindow", "Monitor", None))
        item = self.DaqTableWidget.verticalHeaderItem(0)
        item.setText(_translate("MainWindow", "0", None))
        item = self.DaqTableWidget.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "Sample#", None))
        item = self.DaqTableWidget.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "Time(H:M:S)", None))
        item = self.DaqTableWidget.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "Datetime", None))
        item = self.DaqTableWidget.horizontalHeaderItem(3)
        item.setText(_translate("MainWindow", "Temperature", None))
        item = self.DaqTableWidget.horizontalHeaderItem(4)
        item.setText(_translate("MainWindow", "Set Point", None))
        item = self.DaqTableWidget.horizontalHeaderItem(5)
        item.setText(_translate("MainWindow", "Error", None))
        __sortingEnabled = self.DaqTableWidget.isSortingEnabled()
        self.DaqTableWidget.setSortingEnabled(False)
        item = self.DaqTableWidget.item(0, 0)
        item.setText(_translate("MainWindow", "0", None))
        item = self.DaqTableWidget.item(0, 1)
        item.setText(_translate("MainWindow", "00:00", None))
        item = self.DaqTableWidget.item(0, 2)
        item.setText(_translate("MainWindow", "0", None))
        item = self.DaqTableWidget.item(0, 3)
        item.setText(_translate("MainWindow", "0", None))
        item = self.DaqTableWidget.item(0, 4)
        item.setText(_translate("MainWindow", "0", None))
        item = self.DaqTableWidget.item(0, 5)
        item.setText(_translate("MainWindow", "0", None))
        self.DaqTableWidget.setSortingEnabled(__sortingEnabled)
        self.daqScrollCheckBox.setText(_translate("MainWindow", "Scroll to Bottom", None))
        self.daqSamplesTakenLabel.setText(_translate("MainWindow", "# of Samples Taken: 00000", None))
        self.clearDaqButton.setToolTip(_translate("MainWindow", "Clear Program and Readout", None))
        self.clearDaqButton.setText(_translate("MainWindow", "Clear DAQ", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.dataTab_2), _translate("MainWindow", "DAQ Viewer", None))
        self.label_4.setText(_translate("MainWindow", "Read Registers", None))
        self.label_17.setText(_translate("MainWindow", "PV Read Register", None))
        self.label_18.setText(_translate("MainWindow", "SV Read Register", None))
        self.label_19.setText(_translate("MainWindow", "PV Write Register", None))
        self.label_20.setText(_translate("MainWindow", "SV Write Register", None))
        self.label_5.setText(_translate("MainWindow", "Write Registers", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.modbusTab_2), _translate("MainWindow", "ModBus Config", None))
        self.menuFile.setTitle(_translate("MainWindow", "File", None))
        self.menuHelp.setTitle(_translate("MainWindow", "Help", None))
        self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None))
        self.actionExit.setText(_translate("MainWindow", "E&xit", None))
        self.actionExit.setToolTip(_translate("MainWindow", "Exit the program", None))
        self.actionExit.setStatusTip(_translate("MainWindow", "Exit the program", None))
        self.actionExit.setShortcut(_translate("MainWindow", "Ctrl+X", None))
        self.actionSave_Daq.setText(_translate("MainWindow", "Save DAQ", None))
        self.actionSave_Daq.setToolTip(_translate("MainWindow", "Save DAQ Data", None))
        self.actionSave_Daq.setStatusTip(_translate("MainWindow", "Save DAQ Data", None))
        self.actionSave_Daq.setShortcut(_translate("MainWindow", "Ctrl+S", None))
        self.actionReset_DAQ.setText(_translate("MainWindow", "Reset DAQ", None))
        self.actionReset_DAQ.setToolTip(_translate("MainWindow", "Reset the DAQ", None))
        self.actionReset_DAQ.setStatusTip(_translate("MainWindow", "Reset the DAQ", None))
        self.actionAbout.setText(_translate("MainWindow", "About", None))
        self.actionAbout.setStatusTip(_translate("MainWindow", "About", None))
        self.actionHelp.setText(_translate("MainWindow", "Help", None))
        self.actionHelp.setStatusTip(_translate("MainWindow", "Help", None))
Esempio n. 21
0
    def __init__(self, fname=None):
        gui.SlabWindow.__init__(self, HDFViewThread)
        self.setupSlabWindow(autoparam=True)
        self.auto_register_gui()

        self.register_param(self.datasets_treeWidget, "dataset")
        self.register_param(self.datapath_lineEdit, "datapath")

        # Setup Plots -- Could be eliminated if QtDesigner plugins were setup
        self.toolbar = Qt.QToolBar()
        self.addToolBar(self.toolbar)
        self.image_widget = ImageWidget(show_xsection=True, show_ysection=True)
        self.image_widget.add_toolbar(self.toolbar)
        self.image_widget.register_all_image_tools()
        self.image_plot = self.image_widget.plot
        self.image_plot_layout.addWidget(self.image_widget)
        self.gui["image_plot"] = self.image_plot

        self.line_widget = CurveWidget()
        self.gui[
            "line_plot"] = self.line_plot = self.line_widget.plot  #CurvePlot()
        self.line_plot_layout.addWidget(self.line_plot)
        self.line_widget.register_all_image_tools()

        # Context Menu actions
        self.set_x_action = Qt.QAction("Set as x data", self)
        self.clear_x_action = Qt.QAction("Clear x data", self)
        self.datasets_treeWidget.customContextMenuRequested.connect(
            lambda point: self.msg("menu requested"))
        self.datasets_treeWidget.customContextMenuRequested.connect(
            self.datasets_context_menu)

        # Connect launchers
        self.datapath_browse_pushButton.clicked.connect(self.select_datapath)
        self.register_script("set_datapath", self.datapath_lineEdit)
        self.register_script("load_file", self.datafiles_listWidget)
        self.register_script("load_dset", self.datasets_treeWidget)
        self.register_script("set_x_data", self.set_x_action)
        self.register_script("clear_x_data", self.clear_x_action)

        # Syntax Highlighting
        self.highlight = syntax.PythonHighlighter(
            self.script_textEdit.document())

        # Setup Prompt
        """
        message = "The currently loaded file is stored as 'f'"
        self.shell = InternalShell(self, message=message)
        self.shell.set_font(Qt.QFont("Consolas"))
        self.shell_dockWidget.setWidget(self.shell)
        self.gui["shell"] = self.shell
        """

        self.start_thread()

        if fname is not None:
            self.shell.exit_interpreter()
            directory = os.path.dirname(fname)
            nameitem = namedtuple('pseudoitem', ('filename', ))(fname)
            self.msg(fname)
            self.set_param("datapath", directory)
            self.start_script("set_datapath")
            self.start_script("load_file", nameitem)
Esempio n. 22
0
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(905, 675)
        self.graphicsView = QtGui.QGraphicsView(Dialog)
        self.graphicsView.setGeometry(QtCore.QRect(9, 9, 256, 192))
        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
        self.imagewidget = ImageWidget(Dialog)
        self.imagewidget.setGeometry(QtCore.QRect(290, 10, 291, 191))
        self.imagewidget.setOrientation(QtCore.Qt.Vertical)
        self.imagewidget.setObjectName(_fromUtf8("imagewidget"))
        self.curvewidget = CurveWidget(Dialog)
        self.curvewidget.setGeometry(QtCore.QRect(620, 10, 241, 211))
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.mplwidget = MatplotlibWidget(Dialog)
        self.mplwidget.setGeometry(QtCore.QRect(0, 230, 311, 231))
        self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
        self.qwtPlot = Qwt5.QwtPlot(Dialog)
        self.qwtPlot.setGeometry(QtCore.QRect(540, 260, 281, 161))
        self.qwtPlot.setObjectName(_fromUtf8("qwtPlot"))
        self.AnalogClock = Qwt5.QwtAnalogClock(Dialog)
        self.AnalogClock.setGeometry(QtCore.QRect(30, 500, 151, 151))
        self.AnalogClock.setLineWidth(4)
        self.AnalogClock.setObjectName(_fromUtf8("AnalogClock"))
        self.Compass = Qwt5.QwtCompass(Dialog)
        self.Compass.setGeometry(QtCore.QRect(220, 490, 151, 151))
        self.Compass.setLineWidth(4)
        self.Compass.setObjectName(_fromUtf8("Compass"))
        self.Thermo = Qwt5.QwtThermo(Dialog)
        self.Thermo.setGeometry(QtCore.QRect(390, 480, 71, 151))
        self.Thermo.setObjectName(_fromUtf8("Thermo"))
        self.Wheel = Qwt5.QwtWheel(Dialog)
        self.Wheel.setGeometry(QtCore.QRect(510, 470, 151, 31))
        self.Wheel.setObjectName(_fromUtf8("Wheel"))
        self.label = QtGui.QLabel(Dialog)
        self.label.setGeometry(QtCore.QRect(80, 210, 131, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.label_2 = QtGui.QLabel(Dialog)
        self.label_2.setGeometry(QtCore.QRect(370, 210, 131, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.label_3 = QtGui.QLabel(Dialog)
        self.label_3.setGeometry(QtCore.QRect(690, 230, 131, 16))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.label_4 = QtGui.QLabel(Dialog)
        self.label_4.setGeometry(QtCore.QRect(80, 470, 131, 16))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.label_5 = QtGui.QLabel(Dialog)
        self.label_5.setGeometry(QtCore.QRect(370, 420, 131, 16))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.label_6 = QtGui.QLabel(Dialog)
        self.label_6.setGeometry(QtCore.QRect(660, 430, 131, 16))
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.label_8 = QtGui.QLabel(Dialog)
        self.label_8.setGeometry(QtCore.QRect(60, 650, 131, 16))
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.label_9 = QtGui.QLabel(Dialog)
        self.label_9.setGeometry(QtCore.QRect(250, 650, 131, 16))
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.label_10 = QtGui.QLabel(Dialog)
        self.label_10.setGeometry(QtCore.QRect(410, 650, 131, 16))
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.label_11 = QtGui.QLabel(Dialog)
        self.label_11.setGeometry(QtCore.QRect(550, 530, 131, 16))
        self.label_11.setObjectName(_fromUtf8("label_11"))

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
Esempio n. 23
0
    def setupUi(self, ROIDialog):
        ROIDialog.setObjectName(_fromUtf8("ROIDialog"))
        ROIDialog.resize(411, 533)
        self.verticalLayout = QtGui.QVBoxLayout(ROIDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.groupBox_5 = QtGui.QGroupBox(ROIDialog)
        self.groupBox_5.setObjectName(_fromUtf8("groupBox_5"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox_5)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.roiHistWidget = CurveWidget(self.groupBox_5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(
            self.roiHistWidget.sizePolicy().hasHeightForWidth())
        self.roiHistWidget.setSizePolicy(sizePolicy)
        self.roiHistWidget.setMinimumSize(QtCore.QSize(0, 10))
        self.roiHistWidget.setOrientation(QtCore.Qt.Horizontal)
        self.roiHistWidget.setObjectName(_fromUtf8("roiHistWidget"))
        self.verticalLayout_3.addWidget(self.roiHistWidget)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.xHistLimBox = QtGui.QSpinBox(self.groupBox_5)
        self.xHistLimBox.setMaximum(65536)
        self.xHistLimBox.setSingleStep(100)
        self.xHistLimBox.setProperty("value", 500)
        self.xHistLimBox.setObjectName(_fromUtf8("xHistLimBox"))
        self.gridLayout_3.addWidget(self.xHistLimBox, 0, 1, 1, 1)
        self.yHistLimBox = QtGui.QSpinBox(self.groupBox_5)
        self.yHistLimBox.setMaximum(65536)
        self.yHistLimBox.setSingleStep(10)
        self.yHistLimBox.setProperty("value", 2000)
        self.yHistLimBox.setObjectName(_fromUtf8("yHistLimBox"))
        self.gridLayout_3.addWidget(self.yHistLimBox, 0, 3, 1, 1)
        self.label_19 = QtGui.QLabel(self.groupBox_5)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.gridLayout_3.addWidget(self.label_19, 0, 0, 1, 1)
        self.label_20 = QtGui.QLabel(self.groupBox_5)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.gridLayout_3.addWidget(self.label_20, 0, 2, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout_3)
        self.verticalLayout.addWidget(self.groupBox_5)
        self.groupBox_4 = QtGui.QGroupBox(ROIDialog)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.gridLayout = QtGui.QGridLayout(self.groupBox_4)
        self.gridLayout.setHorizontalSpacing(12)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label_15 = QtGui.QLabel(self.groupBox_4)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
                                  self.label_15)
        self.roiTotalLbl = QtGui.QLabel(self.groupBox_4)
        self.roiTotalLbl.setAlignment(QtCore.Qt.AlignRight
                                      | QtCore.Qt.AlignTrailing
                                      | QtCore.Qt.AlignVCenter)
        self.roiTotalLbl.setObjectName(_fromUtf8("roiTotalLbl"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.roiTotalLbl)
        self.label_16 = QtGui.QLabel(self.groupBox_4)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
                                  self.label_16)
        self.roiMeanLbl = QtGui.QLabel(self.groupBox_4)
        self.roiMeanLbl.setAlignment(QtCore.Qt.AlignRight
                                     | QtCore.Qt.AlignTrailing
                                     | QtCore.Qt.AlignVCenter)
        self.roiMeanLbl.setObjectName(_fromUtf8("roiMeanLbl"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.roiMeanLbl)
        self.label_17 = QtGui.QLabel(self.groupBox_4)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole,
                                  self.label_17)
        self.roiMinLbl = QtGui.QLabel(self.groupBox_4)
        self.roiMinLbl.setAlignment(QtCore.Qt.AlignRight
                                    | QtCore.Qt.AlignTrailing
                                    | QtCore.Qt.AlignVCenter)
        self.roiMinLbl.setObjectName(_fromUtf8("roiMinLbl"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.roiMinLbl)
        self.label_18 = QtGui.QLabel(self.groupBox_4)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole,
                                  self.label_18)
        self.roiMaxLbl = QtGui.QLabel(self.groupBox_4)
        self.roiMaxLbl.setEnabled(True)
        self.roiMaxLbl.setAlignment(QtCore.Qt.AlignRight
                                    | QtCore.Qt.AlignTrailing
                                    | QtCore.Qt.AlignVCenter)
        self.roiMaxLbl.setObjectName(_fromUtf8("roiMaxLbl"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole,
                                  self.roiMaxLbl)
        self.gridLayout.addLayout(self.formLayout, 0, 0, 1, 1)
        self.formLayout_4 = QtGui.QFormLayout()
        self.formLayout_4.setObjectName(_fromUtf8("formLayout_4"))
        self.label_6 = QtGui.QLabel(self.groupBox_4)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_6)
        self.label_7 = QtGui.QLabel(self.groupBox_4)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_7)
        self.label_8 = QtGui.QLabel(self.groupBox_4)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_8)
        self.label_9 = QtGui.QLabel(self.groupBox_4)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_9)
        self.roiX1Lbl = QtGui.QLabel(self.groupBox_4)
        self.roiX1Lbl.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.roiX1Lbl.setObjectName(_fromUtf8("roiX1Lbl"))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.roiX1Lbl)
        self.roiX2Lbl = QtGui.QLabel(self.groupBox_4)
        self.roiX2Lbl.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.roiX2Lbl.setObjectName(_fromUtf8("roiX2Lbl"))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.roiX2Lbl)
        self.roiY1Lbl = QtGui.QLabel(self.groupBox_4)
        self.roiY1Lbl.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.roiY1Lbl.setObjectName(_fromUtf8("roiY1Lbl"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.roiY1Lbl)
        self.roiY2Lbl = QtGui.QLabel(self.groupBox_4)
        self.roiY2Lbl.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.roiY2Lbl.setObjectName(_fromUtf8("roiY2Lbl"))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.roiY2Lbl)
        self.gridLayout.addLayout(self.formLayout_4, 0, 1, 1, 1)
        self.verticalLayout.addWidget(self.groupBox_4)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.closeButton = QtGui.QPushButton(ROIDialog)
        self.closeButton.setObjectName(_fromUtf8("closeButton"))
        self.horizontalLayout.addWidget(self.closeButton)
        self.verticalLayout.addLayout(self.horizontalLayout)

        self.retranslateUi(ROIDialog)
        QtCore.QMetaObject.connectSlotsByName(ROIDialog)
Esempio n. 24
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.setEnabled(True)
        MainWindow.resize(1268, 918)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setStrikeOut(False)
        font.setKerning(True)
        MainWindow.setFont(font)
        MainWindow.setMouseTracking(False)
        MainWindow.setIconSize(QtCore.QSize(24, 24))
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout_2 = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.gridLayout_4 = QtGui.QGridLayout(self.tab)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.scrollArea = QtGui.QScrollArea(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.scrollArea.sizePolicy().hasHeightForWidth())
        self.scrollArea.setSizePolicy(sizePolicy)
        self.scrollArea.setWidgetResizable(False)
        self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(
            0, 0, 1220, 830))
        self.scrollAreaWidgetContents.setObjectName(
            _fromUtf8("scrollAreaWidgetContents"))
        self.pushButton_Refresh = QtGui.QPushButton(
            self.scrollAreaWidgetContents)
        self.pushButton_Refresh.setGeometry(QtCore.QRect(320, 560, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Refresh.setFont(font)
        self.pushButton_Refresh.setObjectName(_fromUtf8("pushButton_Refresh"))
        self.label_Current_Visa = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_Current_Visa.setGeometry(QtCore.QRect(40, 620, 131, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_Current_Visa.setFont(font)
        self.label_Current_Visa.setObjectName(_fromUtf8("label_Current_Visa"))
        self.label_Meas_Type = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_Meas_Type.setGeometry(QtCore.QRect(40, 680, 301, 21))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_Meas_Type.setFont(font)
        self.label_Meas_Type.setObjectName(_fromUtf8("label_Meas_Type"))
        self.pushButton_Select_Visa = QtGui.QPushButton(
            self.scrollAreaWidgetContents)
        self.pushButton_Select_Visa.setGeometry(QtCore.QRect(320, 600, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Select_Visa.setFont(font)
        self.pushButton_Select_Visa.setObjectName(
            _fromUtf8("pushButton_Select_Visa"))
        self.label_2 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_2.setGeometry(QtCore.QRect(370, 700, 91, 51))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.lineEdit_Steps = QtGui.QLineEdit(self.scrollAreaWidgetContents)
        self.lineEdit_Steps.setGeometry(QtCore.QRect(730, 650, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_Steps.setFont(font)
        self.lineEdit_Steps.setObjectName(_fromUtf8("lineEdit_Steps"))
        self.groupBox_Filename = QtGui.QGroupBox(self.scrollAreaWidgetContents)
        self.groupBox_Filename.setGeometry(QtCore.QRect(840, 730, 271, 91))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.groupBox_Filename.setFont(font)
        self.groupBox_Filename.setObjectName(_fromUtf8("groupBox_Filename"))
        self.radioButton_Timename = QtGui.QRadioButton(self.groupBox_Filename)
        self.radioButton_Timename.setGeometry(QtCore.QRect(20, 20, 151, 21))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.radioButton_Timename.setFont(font)
        self.radioButton_Timename.setObjectName(
            _fromUtf8("radioButton_Timename"))
        self.radioButton_Custom_Name = QtGui.QRadioButton(
            self.groupBox_Filename)
        self.radioButton_Custom_Name.setGeometry(QtCore.QRect(20, 50, 121, 21))
        self.radioButton_Custom_Name.setObjectName(
            _fromUtf8("radioButton_Custom_Name"))
        self.lineEdit_Custom_Name = QtGui.QLineEdit(self.groupBox_Filename)
        self.lineEdit_Custom_Name.setGeometry(QtCore.QRect(120, 50, 141, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_Custom_Name.setFont(font)
        self.lineEdit_Custom_Name.setObjectName(
            _fromUtf8("lineEdit_Custom_Name"))
        self.lineEdit_Points = QtGui.QLineEdit(self.scrollAreaWidgetContents)
        self.lineEdit_Points.setGeometry(QtCore.QRect(730, 560, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_Points.setFont(font)
        self.lineEdit_Points.setObjectName(_fromUtf8("lineEdit_Points"))
        self.lineEdit_Error = QtGui.QLineEdit(self.scrollAreaWidgetContents)
        self.lineEdit_Error.setGeometry(QtCore.QRect(450, 710, 371, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_Error.setFont(font)
        self.lineEdit_Error.setObjectName(_fromUtf8("lineEdit_Error"))
        self.pushButton_Start = QtGui.QPushButton(
            self.scrollAreaWidgetContents)
        self.pushButton_Start.setGeometry(QtCore.QRect(510, 780, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Start.setFont(font)
        self.pushButton_Start.setObjectName(_fromUtf8("pushButton_Start"))
        self.comboBox_All_Visas = QtGui.QComboBox(
            self.scrollAreaWidgetContents)
        self.comboBox_All_Visas.setGeometry(QtCore.QRect(40, 580, 261, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.comboBox_All_Visas.setFont(font)
        self.comboBox_All_Visas.setObjectName(_fromUtf8("comboBox_All_Visas"))
        self.pushButton_Select_Directory = QtGui.QPushButton(
            self.scrollAreaWidgetContents)
        self.pushButton_Select_Directory.setGeometry(
            QtCore.QRect(1070, 690, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Select_Directory.setFont(font)
        self.pushButton_Select_Directory.setObjectName(
            _fromUtf8("pushButton_Select_Directory"))
        self.pushButton_Select_Measurement = QtGui.QPushButton(
            self.scrollAreaWidgetContents)
        self.pushButton_Select_Measurement.setGeometry(
            QtCore.QRect(250, 710, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Select_Measurement.setFont(font)
        self.pushButton_Select_Measurement.setObjectName(
            _fromUtf8("pushButton_Select_Measurement"))
        self.label_4 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_4.setGeometry(QtCore.QRect(850, 670, 201, 20))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.checkBox_Continue = QtGui.QCheckBox(self.scrollAreaWidgetContents)
        self.checkBox_Continue.setGeometry(QtCore.QRect(480, 580, 201, 41))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.checkBox_Continue.setFont(font)
        self.checkBox_Continue.setObjectName(_fromUtf8("checkBox_Continue"))
        self.pushButton_Browse = QtGui.QPushButton(
            self.scrollAreaWidgetContents)
        self.pushButton_Browse.setGeometry(QtCore.QRect(850, 560, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Browse.setFont(font)
        self.pushButton_Browse.setObjectName(_fromUtf8("pushButton_Browse"))
        self.label = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label.setGeometry(QtCore.QRect(40, 550, 231, 31))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.comboBox_Meas_Type = QtGui.QComboBox(
            self.scrollAreaWidgetContents)
        self.comboBox_Meas_Type.setGeometry(QtCore.QRect(40, 710, 191, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.comboBox_Meas_Type.setFont(font)
        self.comboBox_Meas_Type.setObjectName(_fromUtf8("comboBox_Meas_Type"))
        self.comboBox_Meas_Type.addItem(_fromUtf8(""))
        self.comboBox_Meas_Type.addItem(_fromUtf8(""))
        self.comboBox_Meas_Type.addItem(_fromUtf8(""))
        self.comboBox_Meas_Type.addItem(_fromUtf8(""))
        self.comboBox_Meas_Type.addItem(_fromUtf8(""))
        self.comboBox_Meas_Type.addItem(_fromUtf8(""))
        self.groupBox_File_Type = QtGui.QGroupBox(
            self.scrollAreaWidgetContents)
        self.groupBox_File_Type.setGeometry(QtCore.QRect(970, 550, 221, 51))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.groupBox_File_Type.setFont(font)
        self.groupBox_File_Type.setObjectName(_fromUtf8("groupBox_File_Type"))
        self.radioButton_csv = QtGui.QRadioButton(self.groupBox_File_Type)
        self.radioButton_csv.setGeometry(QtCore.QRect(40, 20, 61, 31))
        self.radioButton_csv.setObjectName(_fromUtf8("radioButton_csv"))
        self.radioButton_txt = QtGui.QRadioButton(self.groupBox_File_Type)
        self.radioButton_txt.setGeometry(QtCore.QRect(100, 20, 61, 31))
        self.radioButton_txt.setObjectName(_fromUtf8("radioButton_txt"))
        self.label_CurrentMeasurement = QtGui.QLabel(
            self.scrollAreaWidgetContents)
        self.label_CurrentMeasurement.setGeometry(
            QtCore.QRect(40, 770, 241, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_CurrentMeasurement.setFont(font)
        self.label_CurrentMeasurement.setText(_fromUtf8(""))
        self.label_CurrentMeasurement.setObjectName(
            _fromUtf8("label_CurrentMeasurement"))
        self.pushButton_Save = QtGui.QPushButton(self.scrollAreaWidgetContents)
        self.pushButton_Save.setGeometry(QtCore.QRect(1120, 750, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Save.setFont(font)
        self.pushButton_Save.setObjectName(_fromUtf8("pushButton_Save"))
        self.lineEdit_OneDrive = QtGui.QLineEdit(self.scrollAreaWidgetContents)
        self.lineEdit_OneDrive.setGeometry(QtCore.QRect(850, 630, 361, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_OneDrive.setFont(font)
        self.lineEdit_OneDrive.setObjectName(_fromUtf8("lineEdit_OneDrive"))
        self.label_3 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_3.setGeometry(QtCore.QRect(850, 600, 171, 21))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.label_CurrentVisa = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_CurrentVisa.setGeometry(QtCore.QRect(40, 640, 361, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_CurrentVisa.setFont(font)
        self.label_CurrentVisa.setText(_fromUtf8(""))
        self.label_CurrentVisa.setObjectName(_fromUtf8("label_CurrentVisa"))
        self.comboBox_Name_Folder = QtGui.QComboBox(
            self.scrollAreaWidgetContents)
        self.comboBox_Name_Folder.setGeometry(QtCore.QRect(850, 690, 191, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.comboBox_Name_Folder.setFont(font)
        self.comboBox_Name_Folder.setObjectName(
            _fromUtf8("comboBox_Name_Folder"))
        self.comboBox_Name_Folder.addItem(_fromUtf8(""))
        self.comboBox_Name_Folder.addItem(_fromUtf8(""))
        self.comboBox_Name_Folder.addItem(_fromUtf8(""))
        self.comboBox_Name_Folder.addItem(_fromUtf8(""))
        self.comboBox_Name_Folder.addItem(_fromUtf8(""))
        self.label_Meas_Points = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_Meas_Points.setGeometry(QtCore.QRect(450, 560, 271, 21))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_Meas_Points.setFont(font)
        self.label_Meas_Points.setObjectName(_fromUtf8("label_Meas_Points"))
        self.label_second = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_second.setGeometry(QtCore.QRect(810, 660, 41, 20))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_second.setFont(font)
        self.label_second.setObjectName(_fromUtf8("label_second"))
        self.pushButton_Stop = QtGui.QPushButton(self.scrollAreaWidgetContents)
        self.pushButton_Stop.setGeometry(QtCore.QRect(630, 780, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Stop.setFont(font)
        self.pushButton_Stop.setObjectName(_fromUtf8("pushButton_Stop"))
        self.label_Meas_Delay = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_Meas_Delay.setGeometry(QtCore.QRect(450, 650, 281, 31))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_Meas_Delay.setFont(font)
        self.label_Meas_Delay.setObjectName(_fromUtf8("label_Meas_Delay"))
        self.curvewidgetPlot = CurveWidget(self.scrollAreaWidgetContents)
        self.curvewidgetPlot.setGeometry(QtCore.QRect(210, 40, 771, 471))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.curvewidgetPlot.setFont(font)
        self.curvewidgetPlot.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidgetPlot.setObjectName(_fromUtf8("curvewidgetPlot"))
        self.label_Step_Reminder = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_Step_Reminder.setGeometry(QtCore.QRect(470, 670, 261, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_Step_Reminder.setFont(font)
        self.label_Step_Reminder.setText(_fromUtf8(""))
        self.label_Step_Reminder.setObjectName(
            _fromUtf8("label_Step_Reminder"))
        self.label_Current_Measurement = QtGui.QLabel(
            self.scrollAreaWidgetContents)
        self.label_Current_Measurement.setGeometry(
            QtCore.QRect(40, 750, 131, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_Current_Measurement.setFont(font)
        self.label_Current_Measurement.setObjectName(
            _fromUtf8("label_Current_Measurement"))
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.gridLayout_3.addWidget(self.scrollArea, 0, 0, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_3, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionCopy = QtGui.QAction(MainWindow)
        self.actionCopy.setObjectName(_fromUtf8("actionCopy"))
        self.actionSave = QtGui.QAction(MainWindow)
        self.actionSave.setObjectName(_fromUtf8("actionSave"))
        self.actionQuit = QtGui.QAction(MainWindow)
        self.actionQuit.setObjectName(_fromUtf8("actionQuit"))

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
        self.pushButton_Refresh.setText(
            _translate("MainWindow", "Refresh", None))
        self.label_Current_Visa.setText(
            _translate("MainWindow", "Current visa address:", None))
        self.label_Meas_Type.setText(
            _translate("MainWindow", "Choose one you want to measure", None))
        self.pushButton_Select_Visa.setText(
            _translate("MainWindow", "Select", None))
        self.label_2.setText(_translate("MainWindow", "Condition:", None))
        self.groupBox_Filename.setTitle(
            _translate("MainWindow", "File name", None))
        self.radioButton_Timename.setText(
            _translate("MainWindow", "Date and time", None))
        self.radioButton_Custom_Name.setText(
            _translate("MainWindow", "Custom", None))
        self.pushButton_Start.setText(_translate("MainWindow", "Start", None))
        self.pushButton_Select_Directory.setText(
            _translate("MainWindow", "Select", None))
        self.pushButton_Select_Measurement.setText(
            _translate("MainWindow", "Select", None))
        self.label_4.setText(
            _translate("MainWindow", "Pick up a name folder", None))
        self.checkBox_Continue.setText(
            _translate("MainWindow", "Continue Measure Mode", None))
        self.pushButton_Browse.setText(_translate("MainWindow", "Browse",
                                                  None))
        self.label.setText(
            _translate("MainWindow", "Choose the visa you need", None))
        self.comboBox_Meas_Type.setItemText(
            0, _translate("MainWindow", "None", None))
        self.comboBox_Meas_Type.setItemText(
            1, _translate("MainWindow", "AC Current", None))
        self.comboBox_Meas_Type.setItemText(
            2, _translate("MainWindow", "DC Current", None))
        self.comboBox_Meas_Type.setItemText(
            3, _translate("MainWindow", "AC Voltage", None))
        self.comboBox_Meas_Type.setItemText(
            4, _translate("MainWindow", "DC Voltage", None))
        self.comboBox_Meas_Type.setItemText(
            5, _translate("MainWindow", "Resistance", None))
        self.groupBox_File_Type.setTitle(
            _translate("MainWindow", "File type", None))
        self.radioButton_csv.setText(_translate("MainWindow", "csv", None))
        self.radioButton_txt.setText(_translate("MainWindow", "txt", None))
        self.pushButton_Save.setText(_translate("MainWindow", "Save", None))
        self.lineEdit_OneDrive.setText(
            _translate("MainWindow", "C:\\Google Drive\\03 User Accounts",
                       None))
        self.label_3.setText(
            _translate("MainWindow", "OneDrive directory:", None))
        self.comboBox_Name_Folder.setItemText(
            0, _translate("MainWindow", "None", None))
        self.comboBox_Name_Folder.setItemText(
            1, _translate("MainWindow", "Snyder", None))
        self.comboBox_Name_Folder.setItemText(
            2, _translate("MainWindow", "Wang", None))
        self.comboBox_Name_Folder.setItemText(
            3, _translate("MainWindow", "Williams", None))
        self.comboBox_Name_Folder.setItemText(
            4, _translate("MainWindow", "Vannucci", None))
        self.label_Meas_Points.setText(
            _translate("MainWindow", "How many points you want to plot?",
                       None))
        self.label_second.setText(_translate("MainWindow", "s", None))
        self.pushButton_Stop.setText(_translate("MainWindow", "Stop", None))
        self.label_Meas_Delay.setText(
            _translate("MainWindow", "How long do you want for time step?",
                       None))
        self.label_Current_Measurement.setText(
            _translate("MainWindow", "Current measurement:", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab),
            _translate("MainWindow", "Continuous Readings", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_2),
            _translate("MainWindow", "Hardware Triggering", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_3),
            _translate("MainWindow", "Visa Controls", None))
        self.actionCopy.setText(_translate("MainWindow", "Copy", None))
        self.actionSave.setText(_translate("MainWindow", "Save", None))
        self.actionQuit.setText(_translate("MainWindow", "Quit", None))
Esempio n. 25
0
class CentralWidget(QSplitter):
    def __init__(self, parent, toolbar):
        QSplitter.__init__(self, parent)
        # QTabWidget.__init__(self, parent)
        self.setContentsMargins(10, 10, 10, 10)
        self.setOrientation(Qt.Vertical)

        linelistwithproperties = LineListWithProperties(self)
        # self.addWidget(linelistwithproperties)
        self.lineList = linelistwithproperties.lineList
        self.connect(self.lineList, SIGNAL("currentRowChanged(int)"),
                     self.current_item_changed)
        self.connect(self.lineList, SIGNAL("itemSelectionChanged()"),
                     self.selection_changed)
        self.curveProperties = linelistwithproperties.properties
        self.connect(self.curveProperties, SIGNAL("apply_button_clicked()"),
                     self.curve_properties_changed)
        
        self.curvewidget = CurveWidget(self)
        self.curvewidget.register_all_curve_tools()
        self.curve_item = make.curve([], [], color='b')
        self.peak_item = make.curve([],[], markerfacecolor = 'r', marker = 'o', curvestyle="NoCurve")#, alpha = 0.75)
        self.curvewidget.plot.add_item(self.curve_item)
        self.curvewidget.plot.add_item(self.peak_item)
        self.curvewidget.plot.set_antialiasing(True)
        self.addWidget(self.curvewidget)
        
        self.lines = [] # List of ImageParam instances
        self.peaks = []

        
        vSplitter = QSplitter()
        vSplitter.setOrientation(Qt.Vertical)
        daqParamProperties = DAQParamsProperties(self)
        self.daqProperties = daqParamProperties.properties
        self.connect(self.daqProperties, SIGNAL("apply_button_clicked()"), self.daq_properties_changed)
        # daqButton = QPushButton("Upload DAQ Params")
        vSplitter.addWidget(daqParamProperties)
        # vSplitter.addWidget(daqButton)
        tabWidget = QTabWidget()
        tab1 = tabWidget.addTab(linelistwithproperties, "Curve Params")
        tab2 = tabWidget.addTab(vSplitter, "DAQ Params")
        
        self.addWidget(tabWidget)

        self.setStretchFactor(0, 0)
        self.setStretchFactor(1, 1)
        self.setHandleWidth(10)
        self.setSizes([1, 2])

    def refresh_list(self):
        self.lineList.clear()
        for line in self.lines:
            self.lineList.addItem(line.title)
        
    def selection_changed(self):
        """Image list: selection changed"""
        row = self.lineList.currentRow()
        self.curveProperties.setDisabled(row == -1)
        
    def current_item_changed(self, row):
        """Line list: current line changed"""
        line = self.lines[row]
        peaks = self.peaks[row]
        self.show_peaks(peaks)
        self.show_data(line)
        update_dataset(self.curveProperties.dataset, line)
        self.curveProperties.get()
        # print "Current Item Changed."
        
    def show_data(self, line):
        plot = self.curvewidget.plot
        # plot.add_item(self.curve_item)
        self.curve_item.setData(line.xydata[0], line.xydata[1])
        self.autoScale()

    def show_peaks(self, curPeak):
        print "Set Peaks"
        self.peak_item.setData(curPeak[0], curPeak[1])
    
    def autoScale(self):
        # print "AutoScale"
        plot = self.curvewidget.plot
        for ax in plot.get_active_axes():
            plot.setAxisAutoScale(ax)
        plot.replot()

    def curve_properties_changed(self):
        """The properties 'Apply' button was clicked: updating line plot"""
        row = self.lineList.currentRow()
        line = self.lines[row]
        update_dataset(line, self.curveProperties.dataset)
        self.refresh_list()
        self.show_data(line)

    def daq_properties_changed(self):
        """The properties 'Apply' button was clicked: updating DAQ Properties"""
        print self.daqProperties.dataset

    def add_curve(self, lineName, x, y, pickPeaks = True):
        line = SignalParam()
        line.title = lineName
        line.xydata = np.vstack((x,y))#array([x,y]))
        self.lines.append(line)
        self.refresh_list()
        # print line.xydata[0:10], lineName, np.array([x,y])[0:10]

        if pickPeaks:
            self.addPeaks(line)
        self.show_data(line)
        # self.curve_item.setData(x, y)
        # self.curvewidget.plot.do_autoscale()
        # for ax in self.curvewidget.plot.get_active_axes():
        #             self.curvewidget.plot.setAxisAutoScale(ax)
        # self.curvewidget.plot.replot()

    def addPeaks(self, line):
        '''
        Need to create the points
        Consider: https://pythonhosted.org/guiqwt/examples.html
        '''
        x = line.xydata[0]
        y = line.xydata[1]
        _max, _min = pd.peakdetect(y, x, 5)
        xm = [p[0] for p in _max]
        ym = [p[1] for p in _max]
        xn = [p[0] for p in _min]
        yn = [p[1] for p in _min]

        curPeak = np.vstack((xm,ym))
        self.peaks.append(curPeak)
        self.show_peaks(curPeak)
    
    def add_image_from_file(self, filename):
        image = SignalParam()
        image.title = to_text_string(filename)
        image.data = io.imread(filename, to_grayscale=True)
        image.height, image.width = image.data.shape
        self.add_image(image)
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.setEnabled(True)
        MainWindow.resize(912, 824)
        MainWindow.setTabShape(QtGui.QTabWidget.Rounded)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_3.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.verticalLayout_3.setContentsMargins(-1, 9, -1, -1)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setFrameShadow(QtGui.QFrame.Sunken)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.verticalLayout_3.addWidget(self.curvewidget)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.Slider = Qwt5.QwtSlider(self.centralwidget)
        self.Slider.setReadOnly(False)
        self.Slider.setScalePosition(Qwt5.QwtSlider.NoScale)
        self.Slider.setBgStyle(Qwt5.QwtSlider.BgSlot)
        self.Slider.setObjectName(_fromUtf8("Slider"))
        self.horizontalLayout_5.addWidget(self.Slider)
        self.verticalLayout_3.addLayout(self.horizontalLayout_5)
        self.line_10 = QtGui.QFrame(self.centralwidget)
        self.line_10.setFrameShape(QtGui.QFrame.HLine)
        self.line_10.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_10.setObjectName(_fromUtf8("line_10"))
        self.verticalLayout_3.addWidget(self.line_10)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.plottingIntervalDial = QtGui.QDial(self.centralwidget)
        self.plottingIntervalDial.setMinimum(100)
        self.plottingIntervalDial.setMaximum(5000)
        self.plottingIntervalDial.setSingleStep(100)
        self.plottingIntervalDial.setPageStep(100)
        self.plottingIntervalDial.setProperty("value", 1000)
        self.plottingIntervalDial.setOrientation(QtCore.Qt.Horizontal)
        self.plottingIntervalDial.setInvertedAppearance(False)
        self.plottingIntervalDial.setInvertedControls(False)
        self.plottingIntervalDial.setWrapping(False)
        self.plottingIntervalDial.setNotchTarget(10.0)
        self.plottingIntervalDial.setNotchesVisible(True)
        self.plottingIntervalDial.setObjectName(_fromUtf8("plottingIntervalDial"))
        self.verticalLayout_7.addWidget(self.plottingIntervalDial)
        self.plottingIntervalLabel = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.plottingIntervalLabel.setFont(font)
        self.plottingIntervalLabel.setObjectName(_fromUtf8("plottingIntervalLabel"))
        self.verticalLayout_7.addWidget(self.plottingIntervalLabel)
        self.sampleIntervalDial = QtGui.QDial(self.centralwidget)
        self.sampleIntervalDial.setMinimum(100)
        self.sampleIntervalDial.setMaximum(1000)
        self.sampleIntervalDial.setSingleStep(100)
        self.sampleIntervalDial.setPageStep(100)
        self.sampleIntervalDial.setProperty("value", 500)
        self.sampleIntervalDial.setWrapping(False)
        self.sampleIntervalDial.setNotchTarget(10.0)
        self.sampleIntervalDial.setNotchesVisible(True)
        self.sampleIntervalDial.setObjectName(_fromUtf8("sampleIntervalDial"))
        self.verticalLayout_7.addWidget(self.sampleIntervalDial)
        self.sampleIntervalLabel = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.sampleIntervalLabel.setFont(font)
        self.sampleIntervalLabel.setObjectName(_fromUtf8("sampleIntervalLabel"))
        self.verticalLayout_7.addWidget(self.sampleIntervalLabel)
        self.verticalLayout_7.setStretch(0, 1)
        self.horizontalLayout.addLayout(self.verticalLayout_7)
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.horizontalLayout.addWidget(self.line)
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.line_4 = QtGui.QFrame(self.centralwidget)
        self.line_4.setFrameShape(QtGui.QFrame.HLine)
        self.line_4.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_4.setObjectName(_fromUtf8("line_4"))
        self.verticalLayout_4.addWidget(self.line_4)
        self.timerStatusLabel = QtGui.QLabel(self.centralwidget)
        self.timerStatusLabel.setObjectName(_fromUtf8("timerStatusLabel"))
        self.verticalLayout_4.addWidget(self.timerStatusLabel)
        self.line_8 = QtGui.QFrame(self.centralwidget)
        self.line_8.setFrameShape(QtGui.QFrame.HLine)
        self.line_8.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_8.setObjectName(_fromUtf8("line_8"))
        self.verticalLayout_4.addWidget(self.line_8)
        self.timeLabel = QtGui.QLabel(self.centralwidget)
        self.timeLabel.setFrameShape(QtGui.QFrame.NoFrame)
        self.timeLabel.setFrameShadow(QtGui.QFrame.Sunken)
        self.timeLabel.setLineWidth(1)
        self.timeLabel.setObjectName(_fromUtf8("timeLabel"))
        self.verticalLayout_4.addWidget(self.timeLabel)
        self.line_5 = QtGui.QFrame(self.centralwidget)
        self.line_5.setFrameShape(QtGui.QFrame.HLine)
        self.line_5.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_5.setObjectName(_fromUtf8("line_5"))
        self.verticalLayout_4.addWidget(self.line_5)
        self.svLabel = QtGui.QLabel(self.centralwidget)
        self.svLabel.setFrameShape(QtGui.QFrame.NoFrame)
        self.svLabel.setObjectName(_fromUtf8("svLabel"))
        self.verticalLayout_4.addWidget(self.svLabel)
        self.line_7 = QtGui.QFrame(self.centralwidget)
        self.line_7.setFrameShape(QtGui.QFrame.HLine)
        self.line_7.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_7.setObjectName(_fromUtf8("line_7"))
        self.verticalLayout_4.addWidget(self.line_7)
        self.pvLabel = QtGui.QLabel(self.centralwidget)
        self.pvLabel.setObjectName(_fromUtf8("pvLabel"))
        self.verticalLayout_4.addWidget(self.pvLabel)
        self.line_3 = QtGui.QFrame(self.centralwidget)
        self.line_3.setFrameShape(QtGui.QFrame.HLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.verticalLayout_4.addWidget(self.line_3)
        self.label_3 = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout_4.addWidget(self.label_3)
        self.startButton = QtGui.QPushButton(self.centralwidget)
        self.startButton.setEnabled(False)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/gtk-media-play-ltr.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.startButton.setIcon(icon)
        self.startButton.setObjectName(_fromUtf8("startButton"))
        self.verticalLayout_4.addWidget(self.startButton)
        self.resetButton = QtGui.QPushButton(self.centralwidget)
        self.resetButton.setEnabled(False)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/editdelete.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.resetButton.setIcon(icon1)
        self.resetButton.setObjectName(_fromUtf8("resetButton"))
        self.verticalLayout_4.addWidget(self.resetButton)
        self.stopButton = QtGui.QPushButton(self.centralwidget)
        self.stopButton.setEnabled(False)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/gtk-media-stop.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.stopButton.setIcon(icon2)
        self.stopButton.setObjectName(_fromUtf8("stopButton"))
        self.verticalLayout_4.addWidget(self.stopButton)
        self.horizontalLayout.addLayout(self.verticalLayout_4)
        self.line_9 = QtGui.QFrame(self.centralwidget)
        self.line_9.setFrameShape(QtGui.QFrame.VLine)
        self.line_9.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_9.setObjectName(_fromUtf8("line_9"))
        self.horizontalLayout.addWidget(self.line_9)
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.svVerticalSlider = QtGui.QSlider(self.centralwidget)
        self.svVerticalSlider.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.svVerticalSlider.setMaximum(9999)
        self.svVerticalSlider.setOrientation(QtCore.Qt.Vertical)
        self.svVerticalSlider.setObjectName(_fromUtf8("svVerticalSlider"))
        self.verticalLayout_5.addWidget(self.svVerticalSlider)
        self.SvLcdNumber = QtGui.QLCDNumber(self.centralwidget)
        self.SvLcdNumber.setEnabled(True)
        font = QtGui.QFont()
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.SvLcdNumber.setFont(font)
        self.SvLcdNumber.setSmallDecimalPoint(False)
        self.SvLcdNumber.setNumDigits(5)
        self.SvLcdNumber.setProperty("value", 999.9)
        self.SvLcdNumber.setObjectName(_fromUtf8("SvLcdNumber"))
        self.verticalLayout_5.addWidget(self.SvLcdNumber)
        self.setSvButton = QtGui.QPushButton(self.centralwidget)
        self.setSvButton.setEnabled(False)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/1uparrow.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.setSvButton.setIcon(icon3)
        self.setSvButton.setObjectName(_fromUtf8("setSvButton"))
        self.verticalLayout_5.addWidget(self.setSvButton)
        self.horizontalLayout.addLayout(self.verticalLayout_5)
        self.line_2 = QtGui.QFrame(self.centralwidget)
        self.line_2.setFrameShape(QtGui.QFrame.VLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.horizontalLayout.addWidget(self.line_2)
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setStatusTip(_fromUtf8(""))
        self.tabWidget.setIconSize(QtCore.QSize(24, 24))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.connectionTab_2 = QtGui.QWidget()
        self.connectionTab_2.setObjectName(_fromUtf8("connectionTab_2"))
        self.verticalLayout_11 = QtGui.QVBoxLayout(self.connectionTab_2)
        self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11"))
        self.portComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.portComboBox.setObjectName(_fromUtf8("portComboBox"))
        self.verticalLayout_11.addWidget(self.portComboBox)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.timoutDoubleSpinBox = QtGui.QDoubleSpinBox(self.connectionTab_2)
        self.timoutDoubleSpinBox.setDecimals(1)
        self.timoutDoubleSpinBox.setMaximum(1.0)
        self.timoutDoubleSpinBox.setProperty("value", 0.1)
        self.timoutDoubleSpinBox.setObjectName(_fromUtf8("timoutDoubleSpinBox"))
        self.gridLayout_3.addWidget(self.timoutDoubleSpinBox, 0, 3, 1, 1)
        self.stopBitsComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.stopBitsComboBox.setObjectName(_fromUtf8("stopBitsComboBox"))
        self.stopBitsComboBox.addItem(_fromUtf8(""))
        self.stopBitsComboBox.addItem(_fromUtf8(""))
        self.stopBitsComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.stopBitsComboBox, 1, 1, 1, 1)
        self.label_14 = QtGui.QLabel(self.connectionTab_2)
        self.label_14.setWordWrap(False)
        self.label_14.setMargin(0)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.gridLayout_3.addWidget(self.label_14, 3, 0, 1, 1)
        self.baudComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.baudComboBox.setObjectName(_fromUtf8("baudComboBox"))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.baudComboBox, 0, 1, 1, 1)
        self.label_13 = QtGui.QLabel(self.connectionTab_2)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.gridLayout_3.addWidget(self.label_13, 1, 0, 1, 1)
        self.label_15 = QtGui.QLabel(self.connectionTab_2)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.gridLayout_3.addWidget(self.label_15, 1, 2, 1, 1)
        self.ParityComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.ParityComboBox.setObjectName(_fromUtf8("ParityComboBox"))
        self.ParityComboBox.addItem(_fromUtf8(""))
        self.ParityComboBox.addItem(_fromUtf8(""))
        self.ParityComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.ParityComboBox, 3, 1, 1, 1)
        self.dataBitsComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.dataBitsComboBox.setObjectName(_fromUtf8("dataBitsComboBox"))
        self.dataBitsComboBox.addItem(_fromUtf8(""))
        self.dataBitsComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.dataBitsComboBox, 1, 3, 1, 1)
        self.label_16 = QtGui.QLabel(self.connectionTab_2)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.gridLayout_3.addWidget(self.label_16, 0, 2, 1, 1)
        self.connectButton = QtGui.QPushButton(self.connectionTab_2)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(165, 240, 156))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(165, 240, 156))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(165, 240, 156))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        self.connectButton.setPalette(palette)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.connectButton.setFont(font)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/tool_logwindow.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.connectButton.setIcon(icon4)
        self.connectButton.setFlat(False)
        self.connectButton.setObjectName(_fromUtf8("connectButton"))
        self.gridLayout_3.addWidget(self.connectButton, 3, 2, 1, 1)
        self.disconnectButton = QtGui.QPushButton(self.connectionTab_2)
        self.disconnectButton.setEnabled(False)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.disconnectButton.setFont(font)
        self.disconnectButton.setIcon(icon1)
        self.disconnectButton.setObjectName(_fromUtf8("disconnectButton"))
        self.gridLayout_3.addWidget(self.disconnectButton, 3, 3, 1, 1)
        self.verticalLayout_11.addLayout(self.gridLayout_3)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/USBcable.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.connectionTab_2, icon5, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.tab_5)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(self.tab_5)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.pvLcdNumber = QtGui.QLCDNumber(self.tab_5)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(231, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(231, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
        self.pvLcdNumber.setPalette(palette)
        self.pvLcdNumber.setSmallDecimalPoint(False)
        self.pvLcdNumber.setDigitCount(5)
        self.pvLcdNumber.setProperty("value", 999.9)
        self.pvLcdNumber.setObjectName(_fromUtf8("pvLcdNumber"))
        self.verticalLayout.addWidget(self.pvLcdNumber)
        self.getPvButton = QtGui.QPushButton(self.tab_5)
        self.getPvButton.setEnabled(False)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(_fromUtf8(":/1downarrow.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.getPvButton.setIcon(icon6)
        self.getPvButton.setObjectName(_fromUtf8("getPvButton"))
        self.verticalLayout.addWidget(self.getPvButton)
        self.verticalLayout.setStretch(1, 1)
        self.horizontalLayout_2.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label_2 = QtGui.QLabel(self.tab_5)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_2.addWidget(self.label_2)
        self.svLcdNumber = QtGui.QLCDNumber(self.tab_5)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 222, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 222, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
        self.svLcdNumber.setPalette(palette)
        self.svLcdNumber.setSmallDecimalPoint(False)
        self.svLcdNumber.setProperty("value", 999.9)
        self.svLcdNumber.setObjectName(_fromUtf8("svLcdNumber"))
        self.verticalLayout_2.addWidget(self.svLcdNumber)
        self.getSvButton = QtGui.QPushButton(self.tab_5)
        self.getSvButton.setEnabled(False)
        self.getSvButton.setIcon(icon6)
        self.getSvButton.setObjectName(_fromUtf8("getSvButton"))
        self.verticalLayout_2.addWidget(self.getSvButton)
        self.verticalLayout_2.setStretch(1, 1)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(_fromUtf8(":/Analyzeloop.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab_5, icon7, _fromUtf8(""))
        self.monitorTab_2 = QtGui.QWidget()
        self.monitorTab_2.setObjectName(_fromUtf8("monitorTab_2"))
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.monitorTab_2)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.dataTextEdit = QtGui.QTextEdit(self.monitorTab_2)
        self.dataTextEdit.setEnabled(True)
        self.dataTextEdit.setObjectName(_fromUtf8("dataTextEdit"))
        self.verticalLayout_8.addWidget(self.dataTextEdit)
        self.monitorScrollCheckBox = QtGui.QCheckBox(self.monitorTab_2)
        self.monitorScrollCheckBox.setChecked(True)
        self.monitorScrollCheckBox.setObjectName(_fromUtf8("monitorScrollCheckBox"))
        self.verticalLayout_8.addWidget(self.monitorScrollCheckBox)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(_fromUtf8(":/Bill.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.monitorTab_2, icon8, _fromUtf8(""))
        self.dataTab_2 = QtGui.QWidget()
        self.dataTab_2.setObjectName(_fromUtf8("dataTab_2"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.dataTab_2)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.DaqTableWidget = QtGui.QTableWidget(self.dataTab_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.DaqTableWidget.sizePolicy().hasHeightForWidth())
        self.DaqTableWidget.setSizePolicy(sizePolicy)
        self.DaqTableWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.DaqTableWidget.setMidLineWidth(1)
        self.DaqTableWidget.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
        self.DaqTableWidget.setAlternatingRowColors(True)
        self.DaqTableWidget.setObjectName(_fromUtf8("DaqTableWidget"))
        self.DaqTableWidget.setColumnCount(6)
        self.DaqTableWidget.setRowCount(1)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 0, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 1, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 2, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 3, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 4, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 5, item)
        self.DaqTableWidget.horizontalHeader().setCascadingSectionResizes(False)
        self.DaqTableWidget.horizontalHeader().setMinimumSectionSize(25)
        self.DaqTableWidget.horizontalHeader().setStretchLastSection(False)
        self.DaqTableWidget.verticalHeader().setVisible(False)
        self.DaqTableWidget.verticalHeader().setDefaultSectionSize(20)
        self.verticalLayout_6.addWidget(self.DaqTableWidget)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.daqScrollCheckBox = QtGui.QCheckBox(self.dataTab_2)
        self.daqScrollCheckBox.setChecked(True)
        self.daqScrollCheckBox.setObjectName(_fromUtf8("daqScrollCheckBox"))
        self.horizontalLayout_4.addWidget(self.daqScrollCheckBox)
        self.daqSamplesTakenLabel = QtGui.QLabel(self.dataTab_2)
        self.daqSamplesTakenLabel.setObjectName(_fromUtf8("daqSamplesTakenLabel"))
        self.horizontalLayout_4.addWidget(self.daqSamplesTakenLabel)
        self.clearDaqButton = QtGui.QPushButton(self.dataTab_2)
        self.clearDaqButton.setStatusTip(_fromUtf8(""))
        self.clearDaqButton.setObjectName(_fromUtf8("clearDaqButton"))
        self.horizontalLayout_4.addWidget(self.clearDaqButton)
        self.verticalLayout_6.addLayout(self.horizontalLayout_4)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(_fromUtf8(":/Research.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.dataTab_2, icon9, _fromUtf8(""))
        self.modbusTab_2 = QtGui.QWidget()
        self.modbusTab_2.setObjectName(_fromUtf8("modbusTab_2"))
        self.verticalLayout_13 = QtGui.QVBoxLayout(self.modbusTab_2)
        self.verticalLayout_13.setObjectName(_fromUtf8("verticalLayout_13"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_4 = QtGui.QLabel(self.modbusTab_2)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_4)
        self.label_17 = QtGui.QLabel(self.modbusTab_2)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_17)
        self.PvReadSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.PvReadSpinBox.setMaximum(10000)
        self.PvReadSpinBox.setProperty("value", 4096)
        self.PvReadSpinBox.setObjectName(_fromUtf8("PvReadSpinBox"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.PvReadSpinBox)
        self.label_18 = QtGui.QLabel(self.modbusTab_2)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_18)
        self.SvReadSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.SvReadSpinBox.setMaximum(10000)
        self.SvReadSpinBox.setProperty("value", 4097)
        self.SvReadSpinBox.setObjectName(_fromUtf8("SvReadSpinBox"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.SvReadSpinBox)
        self.label_19 = QtGui.QLabel(self.modbusTab_2)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.formLayout_2.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_19)
        self.PvWriteSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.PvWriteSpinBox.setMaximum(10000)
        self.PvWriteSpinBox.setProperty("value", 4096)
        self.PvWriteSpinBox.setObjectName(_fromUtf8("PvWriteSpinBox"))
        self.formLayout_2.setWidget(4, QtGui.QFormLayout.FieldRole, self.PvWriteSpinBox)
        self.label_20 = QtGui.QLabel(self.modbusTab_2)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.formLayout_2.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_20)
        self.SvWriteSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.SvWriteSpinBox.setMaximum(10000)
        self.SvWriteSpinBox.setProperty("value", 4097)
        self.SvWriteSpinBox.setObjectName(_fromUtf8("SvWriteSpinBox"))
        self.formLayout_2.setWidget(5, QtGui.QFormLayout.FieldRole, self.SvWriteSpinBox)
        self.label_5 = QtGui.QLabel(self.modbusTab_2)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_5.setFont(font)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_5)
        self.verticalLayout_13.addLayout(self.formLayout_2)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap(_fromUtf8(":/PCboard.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.modbusTab_2, icon10, _fromUtf8(""))
        self.horizontalLayout.addWidget(self.tabWidget)
        self.horizontalLayout.setStretch(0, 2)
        self.horizontalLayout.setStretch(6, 7)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.verticalLayout_3.setStretch(0, 2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 912, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuHelp = QtGui.QMenu(self.menubar)
        self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionExit = QtGui.QAction(MainWindow)
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap(_fromUtf8(":/application-exit.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionExit.setIcon(icon11)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionSave_Daq = QtGui.QAction(MainWindow)
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap(_fromUtf8(":/stock_save.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSave_Daq.setIcon(icon12)
        self.actionSave_Daq.setObjectName(_fromUtf8("actionSave_Daq"))
        self.actionReset_DAQ = QtGui.QAction(MainWindow)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap(_fromUtf8(":/gtk-refresh.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionReset_DAQ.setIcon(icon13)
        self.actionReset_DAQ.setObjectName(_fromUtf8("actionReset_DAQ"))
        self.actionAbout = QtGui.QAction(MainWindow)
        icon14 = QtGui.QIcon()
        icon14.addPixmap(QtGui.QPixmap(_fromUtf8(":/help-about.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionAbout.setIcon(icon14)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.actionHelp = QtGui.QAction(MainWindow)
        icon15 = QtGui.QIcon()
        icon15.addPixmap(QtGui.QPixmap(_fromUtf8(":/gnome-help.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionHelp.setIcon(icon15)
        self.actionHelp.setObjectName(_fromUtf8("actionHelp"))
        self.menuFile.addAction(self.actionSave_Daq)
        self.menuFile.addAction(self.actionReset_DAQ)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionExit)
        self.menuHelp.addAction(self.actionAbout)
        self.menuHelp.addAction(self.actionHelp)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())
        self.toolBar.addAction(self.actionReset_DAQ)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionSave_Daq)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionExit)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionAbout)
        self.toolBar.addAction(self.actionHelp)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(3)
        self.baudComboBox.setCurrentIndex(2)
        self.ParityComboBox.setCurrentIndex(0)
        self.dataBitsComboBox.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 27
0
class ErrorTraceDialog(QtGui.QDialog):
    
    def __init__(self, text, freqs, trace, max_freq, ul=None, ll=None, ignore_button=False, parent=None):
        super(ErrorTraceDialog, self).__init__(parent)

        # Plot
        self.curveWidget = CurveWidget(self, xlabel='freq [Hz]')
        self.curveWidget.plot.set_axis_scale('bottom', 'log')

        self.curveWidget.plot.set_axis_limits('bottom', 1, max_freq)
        self.curveWidget.register_all_curve_tools()

        # Resultaat trace
        resultTrace = make.curve([], [], color='b')
        self.curveWidget.plot.add_item(resultTrace)
        resultTrace.set_data(freqs, trace)

        if ul is not None:
            # Upper limit
            ulTrace = make.curve([], [], color='r')
            self.curveWidget.plot.add_item(ulTrace)
            ulTrace.set_data(freqs, ul)

        if ll is not None:
            # Lower limit
            llTrace = make.curve([], [], color='r')
            self.curveWidget.plot.add_item(llTrace)
            llTrace.set_data(freqs, ll)

        # Error icon
        style = QtGui.QApplication.style()
        icon = style.standardIcon(QtGui.QStyle.SP_MessageBoxCritical)
        errorLabel = QtGui.QLabel()
        errorLabel.setPixmap(icon.pixmap(32))
        errorLabel.setMinimumWidth(40)
        errorLabel.setStyleSheet('border-bottom-style:none;')

        # Label
        label = QtGui.QLabel('%s! <p>Klik op Ok, controleer montage/aansluitingen en begin opnieuw.' % text)
        label.setStyleSheet('border-bottom-style:none;')        
        
        # Buttons
        buttonLayout = QtGui.QHBoxLayout()
        cancelButton = QtGui.QPushButton('Ok')
        ignoreButton = QtGui.QPushButton('Negeer')
        traceButton = QtGui.QPushButton('Trace...')
        traceButton.setCheckable(True)
        buttonLayout.addSpacing(10)
        buttonLayout.addWidget(traceButton)
        buttonLayout.addStretch()
        buttonLayout.addWidget(ignoreButton)
        buttonLayout.addWidget(cancelButton)
        buttonLayout.addSpacing(10)

        if not ignore_button:
            ignoreButton.setHidden(True)

        cancelButton.clicked.connect(self.reject)
        ignoreButton.clicked.connect(self.accept)

        # Frame voor de trace
        traceFrame = QtGui.QFrame()
        traceFrame.setFrameStyle(QtGui.QFrame.NoFrame)
        frameLayout = QtGui.QHBoxLayout()
        frameLayout.addWidget(self.curveWidget)
        traceFrame.setLayout(frameLayout)
        traceFrame.hide()

        # Frame voor de boodschap
        messageFrame = QtGui.QFrame()
        messageFrame.setStyleSheet('background-color: white;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color: rgb(190, 190, 190);')
        messageFrameLayout = QtGui.QHBoxLayout()
        messageFrameLayout.addWidget(errorLabel)
        messageFrameLayout.addWidget(label)
        messageFrame.setLayout(messageFrameLayout)

        # Layout
        layout = QtGui.QHBoxLayout()
        layout.setContentsMargins(0, 0, 0, 10)
        layout1 = QtGui.QVBoxLayout()
        messageFrameLayout.addStretch()
        layout1.addWidget(messageFrame)
        layout1.addSpacing(10)
        layout1.addLayout(buttonLayout)
        layout1.addWidget(traceFrame)

        layout.addLayout(layout1)
        self.setLayout(layout)
        self.setWindowTitle('Shake It')

        layout.setSizeConstraint(QtGui.QLayout.SetFixedSize)

        cancelButton.setFocus()

        traceButton.toggled.connect(traceFrame.setVisible)
Esempio n. 28
0
    def setupUi(self, ScopeWindow):
        ScopeWindow.setObjectName(_fromUtf8("ScopeWindow"))
        ScopeWindow.resize(1104, 737)
        self.centralwidget = QtGui.QWidget(ScopeWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.ScopeSettings = QtGui.QGroupBox(self.centralwidget)
        self.ScopeSettings.setObjectName(_fromUtf8("ScopeSettings"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.ScopeSettings)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.SampleSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.SampleSettings.sizePolicy().hasHeightForWidth())
        self.SampleSettings.setSizePolicy(sizePolicy)
        self.SampleSettings.setObjectName(_fromUtf8("SampleSettings"))
        self.gridLayout = QtGui.QGridLayout(self.SampleSettings)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(self.SampleSettings)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.samplesSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.samplesSpinBox.setMinimum(32)
        self.samplesSpinBox.setMaximum(999999999)
        self.samplesSpinBox.setSingleStep(64)
        self.samplesSpinBox.setProperty("value", 1024)
        self.samplesSpinBox.setObjectName(_fromUtf8("samplesSpinBox"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.samplesSpinBox)
        self.label_2 = QtGui.QLabel(self.SampleSettings)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
        self.recordsSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.recordsSpinBox.setMinimum(1)
        self.recordsSpinBox.setMaximum(999999999)
        self.recordsSpinBox.setObjectName(_fromUtf8("recordsSpinBox"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.recordsSpinBox)
        self.label_3 = QtGui.QLabel(self.SampleSettings)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
        self.buffersSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.buffersSpinBox.setMinimum(1)
        self.buffersSpinBox.setMaximum(999999999)
        self.buffersSpinBox.setObjectName(_fromUtf8("buffersSpinBox"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.buffersSpinBox)
        self.label_21 = QtGui.QLabel(self.SampleSettings)
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_21)
        self.recordsPerAcquisitionSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.recordsPerAcquisitionSpinBox.setMinimum(1)
        self.recordsPerAcquisitionSpinBox.setMaximum(999999999)
        self.recordsPerAcquisitionSpinBox.setProperty("value", 1)
        self.recordsPerAcquisitionSpinBox.setObjectName(_fromUtf8("recordsPerAcquisitionSpinBox"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.recordsPerAcquisitionSpinBox)
        self.gridLayout.addLayout(self.formLayout, 0, 0, 1, 1)
        self.verticalLayout_5.addWidget(self.SampleSettings)
        self.VerticalSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.VerticalSettings.sizePolicy().hasHeightForWidth())
        self.VerticalSettings.setSizePolicy(sizePolicy)
        self.VerticalSettings.setObjectName(_fromUtf8("VerticalSettings"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.VerticalSettings)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.Ch1Vertical = QtGui.QGroupBox(self.VerticalSettings)
        self.Ch1Vertical.setObjectName(_fromUtf8("Ch1Vertical"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.Ch1Vertical)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.formLayout_5 = QtGui.QFormLayout()
        self.formLayout_5.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_5.setObjectName(_fromUtf8("formLayout_5"))
        self.ch1_enabledCheckBox = QtGui.QCheckBox(self.Ch1Vertical)
        self.ch1_enabledCheckBox.setChecked(True)
        self.ch1_enabledCheckBox.setObjectName(_fromUtf8("ch1_enabledCheckBox"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.LabelRole, self.ch1_enabledCheckBox)
        self.ch1_filteredCheckBox = QtGui.QCheckBox(self.Ch1Vertical)
        self.ch1_filteredCheckBox.setObjectName(_fromUtf8("ch1_filteredCheckBox"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.FieldRole, self.ch1_filteredCheckBox)
        self.label_16 = QtGui.QLabel(self.Ch1Vertical)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_16)
        self.ch1_rangeComboBox = QtGui.QComboBox(self.Ch1Vertical)
        self.ch1_rangeComboBox.setObjectName(_fromUtf8("ch1_rangeComboBox"))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole, self.ch1_rangeComboBox)
        self.label_17 = QtGui.QLabel(self.Ch1Vertical)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_17)
        self.ch1_couplingComboBox = QtGui.QComboBox(self.Ch1Vertical)
        self.ch1_couplingComboBox.setObjectName(_fromUtf8("ch1_couplingComboBox"))
        self.ch1_couplingComboBox.addItem(_fromUtf8(""))
        self.ch1_couplingComboBox.addItem(_fromUtf8(""))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole, self.ch1_couplingComboBox)
        self.verticalLayout_3.addLayout(self.formLayout_5)
        self.horizontalLayout_2.addWidget(self.Ch1Vertical)
        self.Ch2Vertical = QtGui.QGroupBox(self.VerticalSettings)
        self.Ch2Vertical.setObjectName(_fromUtf8("Ch2Vertical"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.Ch2Vertical)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.formLayout_6 = QtGui.QFormLayout()
        self.formLayout_6.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_6.setObjectName(_fromUtf8("formLayout_6"))
        self.ch2_enabledCheckBox = QtGui.QCheckBox(self.Ch2Vertical)
        self.ch2_enabledCheckBox.setChecked(True)
        self.ch2_enabledCheckBox.setObjectName(_fromUtf8("ch2_enabledCheckBox"))
        self.formLayout_6.setWidget(0, QtGui.QFormLayout.LabelRole, self.ch2_enabledCheckBox)
        self.ch2_filteredCheckBox = QtGui.QCheckBox(self.Ch2Vertical)
        self.ch2_filteredCheckBox.setObjectName(_fromUtf8("ch2_filteredCheckBox"))
        self.formLayout_6.setWidget(0, QtGui.QFormLayout.FieldRole, self.ch2_filteredCheckBox)
        self.label_18 = QtGui.QLabel(self.Ch2Vertical)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout_6.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_18)
        self.ch2_rangeComboBox = QtGui.QComboBox(self.Ch2Vertical)
        self.ch2_rangeComboBox.setObjectName(_fromUtf8("ch2_rangeComboBox"))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.formLayout_6.setWidget(1, QtGui.QFormLayout.FieldRole, self.ch2_rangeComboBox)
        self.label_19 = QtGui.QLabel(self.Ch2Vertical)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.formLayout_6.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_19)
        self.ch2_couplingComboBox = QtGui.QComboBox(self.Ch2Vertical)
        self.ch2_couplingComboBox.setObjectName(_fromUtf8("ch2_couplingComboBox"))
        self.ch2_couplingComboBox.addItem(_fromUtf8(""))
        self.ch2_couplingComboBox.addItem(_fromUtf8(""))
        self.formLayout_6.setWidget(2, QtGui.QFormLayout.FieldRole, self.ch2_couplingComboBox)
        self.verticalLayout_4.addLayout(self.formLayout_6)
        self.horizontalLayout_2.addWidget(self.Ch2Vertical)
        self.verticalLayout_5.addWidget(self.VerticalSettings)
        self.ClockSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ClockSettings.sizePolicy().hasHeightForWidth())
        self.ClockSettings.setSizePolicy(sizePolicy)
        self.ClockSettings.setObjectName(_fromUtf8("ClockSettings"))
        self.verticalLayout = QtGui.QVBoxLayout(self.ClockSettings)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_6 = QtGui.QLabel(self.ClockSettings)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_6)
        self.samplerateComboBox = QtGui.QComboBox(self.ClockSettings)
        self.samplerateComboBox.setObjectName(_fromUtf8("samplerateComboBox"))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.samplerateComboBox)
        self.label_4 = QtGui.QLabel(self.ClockSettings)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_4)
        self.clocksourceComboBox = QtGui.QComboBox(self.ClockSettings)
        self.clocksourceComboBox.setObjectName(_fromUtf8("clocksourceComboBox"))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.clocksourceComboBox)
        self.label_5 = QtGui.QLabel(self.ClockSettings)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_5)
        self.clockedgeComboBox = QtGui.QComboBox(self.ClockSettings)
        self.clockedgeComboBox.setObjectName(_fromUtf8("clockedgeComboBox"))
        self.clockedgeComboBox.addItem(_fromUtf8(""))
        self.clockedgeComboBox.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.clockedgeComboBox)
        self.label_10 = QtGui.QLabel(self.ClockSettings)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_10)
        self.timeoutSpinBox = QtGui.QSpinBox(self.ClockSettings)
        self.timeoutSpinBox.setMaximum(1000000000)
        self.timeoutSpinBox.setProperty("value", 5000)
        self.timeoutSpinBox.setObjectName(_fromUtf8("timeoutSpinBox"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole, self.timeoutSpinBox)
        self.verticalLayout.addLayout(self.formLayout_2)
        self.verticalLayout_5.addWidget(self.ClockSettings)
        self.TriggerSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.TriggerSettings.sizePolicy().hasHeightForWidth())
        self.TriggerSettings.setSizePolicy(sizePolicy)
        self.TriggerSettings.setObjectName(_fromUtf8("TriggerSettings"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.TriggerSettings)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.formLayout_3 = QtGui.QFormLayout()
        self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_7 = QtGui.QLabel(self.TriggerSettings)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_7)
        self.trig1_sourceComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig1_sourceComboBox.setObjectName(_fromUtf8("trig1_sourceComboBox"))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.trig1_sourceComboBox)
        self.trig1_edgeComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig1_edgeComboBox.setObjectName(_fromUtf8("trig1_edgeComboBox"))
        self.trig1_edgeComboBox.addItem(_fromUtf8(""))
        self.trig1_edgeComboBox.addItem(_fromUtf8(""))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.trig1_edgeComboBox)
        self.label_9 = QtGui.QLabel(self.TriggerSettings)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_9)
        self.trig1_levelSpinBox = QtGui.QDoubleSpinBox(self.TriggerSettings)
        self.trig1_levelSpinBox.setProperty("value", 1.0)
        self.trig1_levelSpinBox.setObjectName(_fromUtf8("trig1_levelSpinBox"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.trig1_levelSpinBox)
        self.label_11 = QtGui.QLabel(self.TriggerSettings)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_11)
        self.trigCouplingComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trigCouplingComboBox.setObjectName(_fromUtf8("trigCouplingComboBox"))
        self.trigCouplingComboBox.addItem(_fromUtf8(""))
        self.trigCouplingComboBox.addItem(_fromUtf8(""))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.trigCouplingComboBox)
        self.label_8 = QtGui.QLabel(self.TriggerSettings)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_8)
        self.horizontalLayout.addLayout(self.formLayout_3)
        self.formLayout_4 = QtGui.QFormLayout()
        self.formLayout_4.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_4.setObjectName(_fromUtf8("formLayout_4"))
        self.label_12 = QtGui.QLabel(self.TriggerSettings)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_12)
        self.trig2_sourceComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig2_sourceComboBox.setObjectName(_fromUtf8("trig2_sourceComboBox"))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole, self.trig2_sourceComboBox)
        self.trig2_edgeComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig2_edgeComboBox.setObjectName(_fromUtf8("trig2_edgeComboBox"))
        self.trig2_edgeComboBox.addItem(_fromUtf8(""))
        self.trig2_edgeComboBox.addItem(_fromUtf8(""))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole, self.trig2_edgeComboBox)
        self.label_13 = QtGui.QLabel(self.TriggerSettings)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_13)
        self.trig2_levelSpinBox = QtGui.QDoubleSpinBox(self.TriggerSettings)
        self.trig2_levelSpinBox.setProperty("value", 1.0)
        self.trig2_levelSpinBox.setObjectName(_fromUtf8("trig2_levelSpinBox"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole, self.trig2_levelSpinBox)
        self.label_14 = QtGui.QLabel(self.TriggerSettings)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_14)
        self.label_15 = QtGui.QLabel(self.TriggerSettings)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_15)
        self.trigOpComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trigOpComboBox.setObjectName(_fromUtf8("trigOpComboBox"))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.FieldRole, self.trigOpComboBox)
        self.horizontalLayout.addLayout(self.formLayout_4)
        self.verticalLayout_6.addLayout(self.horizontalLayout)
        self.verticalLayout_5.addWidget(self.TriggerSettings)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem)
        self.horizontalLayout_5.addWidget(self.ScopeSettings)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.datapathButton = QtGui.QPushButton(self.centralwidget)
        self.datapathButton.setObjectName(_fromUtf8("datapathButton"))
        self.horizontalLayout_3.addWidget(self.datapathButton)
        self.datapathLineEdit = QtGui.QLineEdit(self.centralwidget)
        self.datapathLineEdit.setObjectName(_fromUtf8("datapathLineEdit"))
        self.horizontalLayout_3.addWidget(self.datapathLineEdit)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label_20 = QtGui.QLabel(self.centralwidget)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.horizontalLayout_6.addWidget(self.label_20)
        self.filenumberLabel = QtGui.QLabel(self.centralwidget)
        self.filenumberLabel.setObjectName(_fromUtf8("filenumberLabel"))
        self.horizontalLayout_6.addWidget(self.filenumberLabel)
        self.prefixLineEdit = QtGui.QLineEdit(self.centralwidget)
        self.prefixLineEdit.setObjectName(_fromUtf8("prefixLineEdit"))
        self.horizontalLayout_6.addWidget(self.prefixLineEdit)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.runButton = QtGui.QPushButton(self.centralwidget)
        self.runButton.setObjectName(_fromUtf8("runButton"))
        self.horizontalLayout_4.addWidget(self.runButton)
        self.saveButton = QtGui.QPushButton(self.centralwidget)
        self.saveButton.setObjectName(_fromUtf8("saveButton"))
        self.horizontalLayout_4.addWidget(self.saveButton)
        self.autosaveCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.autosaveCheckBox.setObjectName(_fromUtf8("autosaveCheckBox"))
        self.horizontalLayout_4.addWidget(self.autosaveCheckBox)
        self.autorunCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.autorunCheckBox.setChecked(True)
        self.autorunCheckBox.setObjectName(_fromUtf8("autorunCheckBox"))
        self.horizontalLayout_4.addWidget(self.autorunCheckBox)
        self.PSDCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.PSDCheckBox.setObjectName(_fromUtf8("PSDCheckBox"))
        self.horizontalLayout_4.addWidget(self.PSDCheckBox)
        self.x_autoscaleCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.x_autoscaleCheckBox.setEnabled(False)
        self.x_autoscaleCheckBox.setChecked(True)
        self.x_autoscaleCheckBox.setObjectName(_fromUtf8("x_autoscaleCheckBox"))
        self.horizontalLayout_4.addWidget(self.x_autoscaleCheckBox)
        self.y_autoscaleCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.y_autoscaleCheckBox.setEnabled(False)
        self.y_autoscaleCheckBox.setChecked(True)
        self.y_autoscaleCheckBox.setObjectName(_fromUtf8("y_autoscaleCheckBox"))
        self.horizontalLayout_4.addWidget(self.y_autoscaleCheckBox)
        self.autoscaleCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.autoscaleCheckBox.setChecked(True)
        self.autoscaleCheckBox.setObjectName(_fromUtf8("autoscaleCheckBox"))
        self.horizontalLayout_4.addWidget(self.autoscaleCheckBox)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.verticalLayout_2.addWidget(self.curvewidget)
        self.horizontalLayout_5.addLayout(self.verticalLayout_2)
        ScopeWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(ScopeWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1104, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        ScopeWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(ScopeWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        ScopeWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(ScopeWindow)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        ScopeWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)

        self.retranslateUi(ScopeWindow)
        self.trig1_sourceComboBox.setCurrentIndex(2)
        self.trig2_sourceComboBox.setCurrentIndex(3)
        QtCore.QMetaObject.connectSlotsByName(ScopeWindow)
Esempio n. 29
0
    def __init__(self,
                 ident,
                 rank,
                 accum,
                 plotkwargs,
                 trace=None,
                 xpts=[],
                 ypts=[]):
        qt.QWidget.__init__(self)
        qt.QVBoxLayout(self)
        self.layout().setSpacing(0)
        self.layout().setContentsMargins(5, 0, 5, 0)

        self.toolbar = toolbar = qt.QToolBar()
        self.layout().addWidget(toolbar)

        self.ident = ident
        self.rank = rank
        self.accum = accum
        self.xpts = xpts
        self.ypts = ypts
        self.update_count = 0
        self.collapsed = False

        autoscale_gui_default = True
        if self.rank == 1:
            self.plot_widget = CurveWidget(title=ident)
            self.plot_widget.add_toolbar(toolbar)
            self.plot_widget.register_all_curve_tools()
            try:
                vmin, vmax = plotkwargs.pop('xlimit')
                self.plot_widget.plot.set_axis_limits(2, vmin, vmax)
                autoscale_gui_default = False
            except:
                pass
            try:
                vmin, vmax = plotkwargs.pop('ylimit')
                self.plot_widget.plot.set_axis_limits(0, vmin, vmax)
                autoscale_gui_default = False
            except:
                pass
            try:
                title = plotkwargs.pop('title')
                self.plot_widget.set_title(title)
            except:
                pass
            try:
                background = plotkwargs.pop('background')
                self.plot_widget.plot.grid.gridparam.background = background
                self.plot_widget.plot.grid.update_params()
            except:
                pass

        elif self.rank == 2:
            self.plot_widget = ImageWidget(title=ident,
                                           lock_aspect_ratio=False)
            self.plot_widget.add_toolbar(toolbar)
            self.plot_widget.register_all_image_tools()
        else:
            raise ValueError
        self.items = {}
        self.add_item(trace, plotkwargs)
        self.layout().addWidget(self.plot_widget)

        self.buttons_widget = buttons = qt.QWidget()
        qt.QHBoxLayout(buttons)
        self.hide_button = qt.QPushButton('Hide')
        self.hide_button.clicked.connect(self.collapse)
        self.show_button = qt.QPushButton('Show ' + ident)
        self.show_button.clicked.connect(self.expand)
        self.show_button.hide()
        self.remove_button = qt.QPushButton('Remove')
        self.zoom_button = qt.QPushButton('Zoom')
        self.autoscale_check = qt.QCheckBox('autoscale')
        #print autoscale_gui_default,"<== is this true?"
        self.autoscale_check.setChecked(autoscale_gui_default)
        buttons.layout().addWidget(self.hide_button)
        buttons.layout().addWidget(self.remove_button)
        buttons.layout().addWidget(self.zoom_button)
        buttons.layout().addWidget(self.autoscale_check)
        self.layout().addWidget(buttons)
        self.layout().addWidget(self.show_button)
Esempio n. 30
0
 def createPlotCurve(self):
     curvewidget = CurveWidget(self)
     curvewidget.register_all_curve_tools()
     curvewidget.plot.set_antialiasing(True)
     self.curvewidget = curvewidget
    def setupUi(self, SpectrumAnalyzerWindow):
        SpectrumAnalyzerWindow.setObjectName(_fromUtf8("SpectrumAnalyzerWindow"))
        SpectrumAnalyzerWindow.resize(817, 666)
        self.centralwidget = QtGui.QWidget(SpectrumAnalyzerWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setGeometry(QtCore.QRect(190, 10, 471, 301))
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.clearButton = QtGui.QPushButton(self.centralwidget)
        self.clearButton.setGeometry(QtCore.QRect(680, 10, 121, 61))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.clearButton.setFont(font)
        self.clearButton.setObjectName(_fromUtf8("clearButton"))
        self.layoutWidget = QtGui.QWidget(self.centralwidget)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 10, 176, 321))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.powerLCD = QtGui.QLCDNumber(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.powerLCD.setFont(font)
        self.powerLCD.setFrameShape(QtGui.QFrame.Panel)
        self.powerLCD.setFrameShadow(QtGui.QFrame.Raised)
        self.powerLCD.setLineWidth(1)
        self.powerLCD.setMidLineWidth(-2)
        self.powerLCD.setSegmentStyle(QtGui.QLCDNumber.Flat)
        self.powerLCD.setObjectName(_fromUtf8("powerLCD"))
        self.horizontalLayout_6.addWidget(self.powerLCD)
        self.dBmLabel = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.dBmLabel.setFont(font)
        self.dBmLabel.setObjectName(_fromUtf8("dBmLabel"))
        self.horizontalLayout_6.addWidget(self.dBmLabel)
        self.verticalLayout.addLayout(self.horizontalLayout_6)
        self.calibratedOuputCheckBox = QtGui.QCheckBox(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.calibratedOuputCheckBox.setFont(font)
        self.calibratedOuputCheckBox.setObjectName(_fromUtf8("calibratedOuputCheckBox"))
        self.verticalLayout.addWidget(self.calibratedOuputCheckBox)
        self.label_12 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_12.setFont(font)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.verticalLayout.addWidget(self.label_12)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.frequencySpinBox = QtGui.QDoubleSpinBox(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.frequencySpinBox.setFont(font)
        self.frequencySpinBox.setDecimals(5)
        self.frequencySpinBox.setMinimum(1.0)
        self.frequencySpinBox.setMaximum(10.0)
        self.frequencySpinBox.setSingleStep(0.01)
        self.frequencySpinBox.setProperty(_fromUtf8("value"), 7.000)
        self.frequencySpinBox.setObjectName(_fromUtf8("frequencySpinBox"))
        self.horizontalLayout_5.addWidget(self.frequencySpinBox)
        self.label_13 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_13.setFont(font)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.horizontalLayout_5.addWidget(self.label_13)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.label_2 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout.addWidget(self.label_2)
        self.instantRButton = QtGui.QRadioButton(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.instantRButton.setFont(font)
        self.instantRButton.setChecked(True)
        self.instantRButton.setObjectName(_fromUtf8("instantRButton"))
        self.powerReadingButtonGroup = QtGui.QButtonGroup(SpectrumAnalyzerWindow)
        self.powerReadingButtonGroup.setObjectName(_fromUtf8("powerReadingButtonGroup"))
        self.powerReadingButtonGroup.addButton(self.instantRButton)
        self.verticalLayout.addWidget(self.instantRButton)
        self.averageRButton = QtGui.QRadioButton(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.averageRButton.setFont(font)
        self.averageRButton.setObjectName(_fromUtf8("averageRButton"))
        self.powerReadingButtonGroup.addButton(self.averageRButton)
        self.verticalLayout.addWidget(self.averageRButton)
        self.label_3 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout.addWidget(self.label_3)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.updateRateSpinBox = QtGui.QDoubleSpinBox(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.updateRateSpinBox.setFont(font)
        self.updateRateSpinBox.setMinimum(0.01)
        self.updateRateSpinBox.setMaximum(30.0)
        self.updateRateSpinBox.setSingleStep(0.2)
        self.updateRateSpinBox.setObjectName(_fromUtf8("updateRateSpinBox"))
        self.horizontalLayout.addWidget(self.updateRateSpinBox)
        self.label_4 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout.addWidget(self.label_4)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.spectrumCurvewidget = CurveWidget(self.centralwidget)
        self.spectrumCurvewidget.setGeometry(QtCore.QRect(190, 350, 601, 251))
        self.spectrumCurvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.spectrumCurvewidget.setObjectName(_fromUtf8("spectrumCurvewidget"))
        self.layoutWidget1 = QtGui.QWidget(self.centralwidget)
        self.layoutWidget1.setGeometry(QtCore.QRect(10, 350, 161, 251))
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label_7 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_7.setFont(font)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.verticalLayout_2.addWidget(self.label_7)
        self.label_8 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_8.setFont(font)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.verticalLayout_2.addWidget(self.label_8)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.startSweepSpinBox = QtGui.QDoubleSpinBox(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.startSweepSpinBox.setFont(font)
        self.startSweepSpinBox.setMinimum(1.0)
        self.startSweepSpinBox.setMaximum(10.0)
        self.startSweepSpinBox.setSingleStep(0.00001)
        self.startSweepSpinBox.setProperty(_fromUtf8("value"), 6.5)
        self.startSweepSpinBox.setObjectName(_fromUtf8("startSweepSpinBox"))
        self.horizontalLayout_2.addWidget(self.startSweepSpinBox)
        self.label_5 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_5.setFont(font)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.horizontalLayout_2.addWidget(self.label_5)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.label_9 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_9.setFont(font)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.verticalLayout_2.addWidget(self.label_9)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.endSweepSpinBox = QtGui.QDoubleSpinBox(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.endSweepSpinBox.setFont(font)
        self.endSweepSpinBox.setMinimum(1.0)
        self.endSweepSpinBox.setMaximum(10.0)
        self.endSweepSpinBox.setSingleStep(0.00001)
        self.endSweepSpinBox.setProperty(_fromUtf8("value"), 7.2)
        self.endSweepSpinBox.setObjectName(_fromUtf8("endSweepSpinBox"))
        self.horizontalLayout_3.addWidget(self.endSweepSpinBox)
        self.label_6 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_6.setFont(font)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.horizontalLayout_3.addWidget(self.label_6)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.label_10 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_10.setFont(font)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.verticalLayout_2.addWidget(self.label_10)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.stepSweepSpinBox = QtGui.QDoubleSpinBox(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.stepSweepSpinBox.setFont(font)
        self.stepSweepSpinBox.setDecimals(6)
        self.stepSweepSpinBox.setMinimum(0.00001)
        self.stepSweepSpinBox.setMaximum(1.0)
        self.stepSweepSpinBox.setSingleStep(0.00001)
        self.stepSweepSpinBox.setProperty(_fromUtf8("value"), 0.005)
        self.stepSweepSpinBox.setObjectName(_fromUtf8("stepSweepSpinBox"))
        self.horizontalLayout_4.addWidget(self.stepSweepSpinBox)
        self.label_11 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_11.setFont(font)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.horizontalLayout_4.addWidget(self.label_11)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        self.sweepButton = QtGui.QPushButton(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.sweepButton.setFont(font)
        self.sweepButton.setObjectName(_fromUtf8("sweepButton"))
        self.verticalLayout_2.addWidget(self.sweepButton)
        SpectrumAnalyzerWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(SpectrumAnalyzerWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 817, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        SpectrumAnalyzerWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(SpectrumAnalyzerWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        SpectrumAnalyzerWindow.setStatusBar(self.statusbar)

        self.retranslateUi(SpectrumAnalyzerWindow)
        QtCore.QMetaObject.connectSlotsByName(SpectrumAnalyzerWindow)
Esempio n. 32
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(626, 397)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.groupBox = QtGui.QGroupBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setMinimumSize(QtCore.QSize(225, 225))
        self.groupBox.setTitle(_fromUtf8(""))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.labelFlow = QtGui.QLabel(self.groupBox)
        self.labelFlow.setGeometry(QtCore.QRect(10, 40, 191, 41))
        font = QtGui.QFont()
        font.setPointSize(20)
        self.labelFlow.setFont(font)
        self.labelFlow.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.labelFlow.setObjectName(_fromUtf8("labelFlow"))
        self.labelVolume = QtGui.QLabel(self.groupBox)
        self.labelVolume.setGeometry(QtCore.QRect(20, 0, 181, 41))
        font = QtGui.QFont()
        font.setPointSize(20)
        self.labelVolume.setFont(font)
        self.labelVolume.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.labelVolume.setObjectName(_fromUtf8("labelVolume"))
        self.labelLevelMeter = QtGui.QLabel(self.groupBox)
        self.labelLevelMeter.setGeometry(QtCore.QRect(10, 80, 191, 41))
        font = QtGui.QFont()
        font.setPointSize(20)
        self.labelLevelMeter.setFont(font)
        self.labelLevelMeter.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.labelLevelMeter.setObjectName(_fromUtf8("labelLevelMeter"))
        self.groupBox_2 = QtGui.QGroupBox(self.groupBox)
        self.groupBox_2.setGeometry(QtCore.QRect(10, 229, 211, 101))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.label_3 = QtGui.QLabel(self.groupBox_2)
        self.label_3.setGeometry(QtCore.QRect(20, 50, 46, 13))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.label = QtGui.QLabel(self.groupBox_2)
        self.label.setGeometry(QtCore.QRect(80, 70, 16, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.editRefresh = QtGui.QLineEdit(self.groupBox_2)
        self.editRefresh.setGeometry(QtCore.QRect(20, 70, 51, 20))
        self.editRefresh.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.editRefresh.setObjectName(_fromUtf8("editRefresh"))
        self.editSetVolume = QtGui.QLineEdit(self.groupBox_2)
        self.editSetVolume.setGeometry(QtCore.QRect(20, 20, 81, 20))
        self.editSetVolume.setObjectName(_fromUtf8("editSetVolume"))
        self.label_4 = QtGui.QLabel(self.groupBox_2)
        self.label_4.setGeometry(QtCore.QRect(120, 50, 71, 16))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.label_2 = QtGui.QLabel(self.groupBox_2)
        self.label_2.setGeometry(QtCore.QRect(180, 70, 16, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.editRange = QtGui.QLineEdit(self.groupBox_2)
        self.editRange.setGeometry(QtCore.QRect(120, 70, 51, 20))
        self.editRange.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.editRange.setObjectName(_fromUtf8("editRange"))
        self.btnSetVolume = QtGui.QPushButton(self.groupBox_2)
        self.btnSetVolume.setGeometry(QtCore.QRect(110, 20, 81, 23))
        self.btnSetVolume.setObjectName(_fromUtf8("btnSetVolume"))
        self.labelLevelMeter_2 = QtGui.QLabel(self.groupBox)
        self.labelLevelMeter_2.setGeometry(QtCore.QRect(10, 120, 191, 41))
        font = QtGui.QFont()
        font.setPointSize(20)
        self.labelLevelMeter_2.setFont(font)
        self.labelLevelMeter_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.labelLevelMeter_2.setObjectName(_fromUtf8("labelLevelMeter_2"))
        self.btnHe = QtGui.QToolButton(self.groupBox)
        self.btnHe.setGeometry(QtCore.QRect(30, 200, 25, 19))
        self.btnHe.setObjectName(_fromUtf8("btnHe"))
        self.btnN2 = QtGui.QToolButton(self.groupBox)
        self.btnN2.setGeometry(QtCore.QRect(60, 200, 25, 19))
        self.btnN2.setObjectName(_fromUtf8("btnN2"))
        self.btnZzz = QtGui.QToolButton(self.groupBox)
        self.btnZzz.setGeometry(QtCore.QRect(90, 200, 25, 19))
        self.btnZzz.setObjectName(_fromUtf8("btnZzz"))
        self.horizontalLayout.addWidget(self.groupBox)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.verticalLayout.addWidget(self.curvewidget)
        self.curvewidget_2 = CurveWidget(self.centralwidget)
        self.curvewidget_2.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget_2.setObjectName(_fromUtf8("curvewidget_2"))
        self.verticalLayout.addWidget(self.curvewidget_2)
        self.horizontalLayout.addLayout(self.verticalLayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 626, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 33
0
 def __init__(self, xlabel, ylabel):
     self.widget = CurveWidget(xlabel=xlabel, ylabel=ylabel)
Esempio n. 34
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.setEnabled(True)
        MainWindow.resize(912, 824)
        MainWindow.setTabShape(QtGui.QTabWidget.Rounded)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_3.setSizeConstraint(
            QtGui.QLayout.SetDefaultConstraint)
        self.verticalLayout_3.setContentsMargins(-1, 9, -1, -1)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setFrameShadow(QtGui.QFrame.Sunken)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.verticalLayout_3.addWidget(self.curvewidget)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.Slider = Qwt5.QwtSlider(self.centralwidget)
        self.Slider.setReadOnly(False)
        self.Slider.setScalePosition(Qwt5.QwtSlider.NoScale)
        self.Slider.setBgStyle(Qwt5.QwtSlider.BgSlot)
        self.Slider.setObjectName(_fromUtf8("Slider"))
        self.horizontalLayout_5.addWidget(self.Slider)
        self.verticalLayout_3.addLayout(self.horizontalLayout_5)
        self.line_10 = QtGui.QFrame(self.centralwidget)
        self.line_10.setFrameShape(QtGui.QFrame.HLine)
        self.line_10.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_10.setObjectName(_fromUtf8("line_10"))
        self.verticalLayout_3.addWidget(self.line_10)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.plottingIntervalDial = QtGui.QDial(self.centralwidget)
        self.plottingIntervalDial.setMinimum(100)
        self.plottingIntervalDial.setMaximum(5000)
        self.plottingIntervalDial.setSingleStep(100)
        self.plottingIntervalDial.setPageStep(100)
        self.plottingIntervalDial.setProperty("value", 1000)
        self.plottingIntervalDial.setOrientation(QtCore.Qt.Horizontal)
        self.plottingIntervalDial.setInvertedAppearance(False)
        self.plottingIntervalDial.setInvertedControls(False)
        self.plottingIntervalDial.setWrapping(False)
        self.plottingIntervalDial.setNotchTarget(10.0)
        self.plottingIntervalDial.setNotchesVisible(True)
        self.plottingIntervalDial.setObjectName(
            _fromUtf8("plottingIntervalDial"))
        self.verticalLayout_7.addWidget(self.plottingIntervalDial)
        self.plottingIntervalLabel = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.plottingIntervalLabel.setFont(font)
        self.plottingIntervalLabel.setObjectName(
            _fromUtf8("plottingIntervalLabel"))
        self.verticalLayout_7.addWidget(self.plottingIntervalLabel)
        self.sampleIntervalDial = QtGui.QDial(self.centralwidget)
        self.sampleIntervalDial.setMinimum(100)
        self.sampleIntervalDial.setMaximum(1000)
        self.sampleIntervalDial.setSingleStep(100)
        self.sampleIntervalDial.setPageStep(100)
        self.sampleIntervalDial.setProperty("value", 500)
        self.sampleIntervalDial.setWrapping(False)
        self.sampleIntervalDial.setNotchTarget(10.0)
        self.sampleIntervalDial.setNotchesVisible(True)
        self.sampleIntervalDial.setObjectName(_fromUtf8("sampleIntervalDial"))
        self.verticalLayout_7.addWidget(self.sampleIntervalDial)
        self.sampleIntervalLabel = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.sampleIntervalLabel.setFont(font)
        self.sampleIntervalLabel.setObjectName(
            _fromUtf8("sampleIntervalLabel"))
        self.verticalLayout_7.addWidget(self.sampleIntervalLabel)
        self.verticalLayout_7.setStretch(0, 1)
        self.horizontalLayout.addLayout(self.verticalLayout_7)
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.horizontalLayout.addWidget(self.line)
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.line_4 = QtGui.QFrame(self.centralwidget)
        self.line_4.setFrameShape(QtGui.QFrame.HLine)
        self.line_4.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_4.setObjectName(_fromUtf8("line_4"))
        self.verticalLayout_4.addWidget(self.line_4)
        self.timerStatusLabel = QtGui.QLabel(self.centralwidget)
        self.timerStatusLabel.setObjectName(_fromUtf8("timerStatusLabel"))
        self.verticalLayout_4.addWidget(self.timerStatusLabel)
        self.line_8 = QtGui.QFrame(self.centralwidget)
        self.line_8.setFrameShape(QtGui.QFrame.HLine)
        self.line_8.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_8.setObjectName(_fromUtf8("line_8"))
        self.verticalLayout_4.addWidget(self.line_8)
        self.timeLabel = QtGui.QLabel(self.centralwidget)
        self.timeLabel.setFrameShape(QtGui.QFrame.NoFrame)
        self.timeLabel.setFrameShadow(QtGui.QFrame.Sunken)
        self.timeLabel.setLineWidth(1)
        self.timeLabel.setObjectName(_fromUtf8("timeLabel"))
        self.verticalLayout_4.addWidget(self.timeLabel)
        self.line_5 = QtGui.QFrame(self.centralwidget)
        self.line_5.setFrameShape(QtGui.QFrame.HLine)
        self.line_5.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_5.setObjectName(_fromUtf8("line_5"))
        self.verticalLayout_4.addWidget(self.line_5)
        self.svLabel = QtGui.QLabel(self.centralwidget)
        self.svLabel.setFrameShape(QtGui.QFrame.NoFrame)
        self.svLabel.setObjectName(_fromUtf8("svLabel"))
        self.verticalLayout_4.addWidget(self.svLabel)
        self.line_7 = QtGui.QFrame(self.centralwidget)
        self.line_7.setFrameShape(QtGui.QFrame.HLine)
        self.line_7.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_7.setObjectName(_fromUtf8("line_7"))
        self.verticalLayout_4.addWidget(self.line_7)
        self.pvLabel = QtGui.QLabel(self.centralwidget)
        self.pvLabel.setObjectName(_fromUtf8("pvLabel"))
        self.verticalLayout_4.addWidget(self.pvLabel)
        self.line_3 = QtGui.QFrame(self.centralwidget)
        self.line_3.setFrameShape(QtGui.QFrame.HLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.verticalLayout_4.addWidget(self.line_3)
        self.label_3 = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout_4.addWidget(self.label_3)
        self.startButton = QtGui.QPushButton(self.centralwidget)
        self.startButton.setEnabled(False)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/gtk-media-play-ltr.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.startButton.setIcon(icon)
        self.startButton.setObjectName(_fromUtf8("startButton"))
        self.verticalLayout_4.addWidget(self.startButton)
        self.resetButton = QtGui.QPushButton(self.centralwidget)
        self.resetButton.setEnabled(False)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/editdelete.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.resetButton.setIcon(icon1)
        self.resetButton.setObjectName(_fromUtf8("resetButton"))
        self.verticalLayout_4.addWidget(self.resetButton)
        self.stopButton = QtGui.QPushButton(self.centralwidget)
        self.stopButton.setEnabled(False)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/gtk-media-stop.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.stopButton.setIcon(icon2)
        self.stopButton.setObjectName(_fromUtf8("stopButton"))
        self.verticalLayout_4.addWidget(self.stopButton)
        self.horizontalLayout.addLayout(self.verticalLayout_4)
        self.line_9 = QtGui.QFrame(self.centralwidget)
        self.line_9.setFrameShape(QtGui.QFrame.VLine)
        self.line_9.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_9.setObjectName(_fromUtf8("line_9"))
        self.horizontalLayout.addWidget(self.line_9)
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.svVerticalSlider = QtGui.QSlider(self.centralwidget)
        self.svVerticalSlider.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.svVerticalSlider.setMaximum(9999)
        self.svVerticalSlider.setOrientation(QtCore.Qt.Vertical)
        self.svVerticalSlider.setObjectName(_fromUtf8("svVerticalSlider"))
        self.verticalLayout_5.addWidget(self.svVerticalSlider)
        self.SvLcdNumber = QtGui.QLCDNumber(self.centralwidget)
        self.SvLcdNumber.setEnabled(True)
        font = QtGui.QFont()
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.SvLcdNumber.setFont(font)
        self.SvLcdNumber.setSmallDecimalPoint(False)
        self.SvLcdNumber.setNumDigits(5)
        self.SvLcdNumber.setProperty("value", 999.9)
        self.SvLcdNumber.setObjectName(_fromUtf8("SvLcdNumber"))
        self.verticalLayout_5.addWidget(self.SvLcdNumber)
        self.setSvButton = QtGui.QPushButton(self.centralwidget)
        self.setSvButton.setEnabled(False)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/1uparrow.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.setSvButton.setIcon(icon3)
        self.setSvButton.setObjectName(_fromUtf8("setSvButton"))
        self.verticalLayout_5.addWidget(self.setSvButton)
        self.horizontalLayout.addLayout(self.verticalLayout_5)
        self.line_2 = QtGui.QFrame(self.centralwidget)
        self.line_2.setFrameShape(QtGui.QFrame.VLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.horizontalLayout.addWidget(self.line_2)
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setStatusTip(_fromUtf8(""))
        self.tabWidget.setIconSize(QtCore.QSize(24, 24))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.connectionTab_2 = QtGui.QWidget()
        self.connectionTab_2.setObjectName(_fromUtf8("connectionTab_2"))
        self.verticalLayout_11 = QtGui.QVBoxLayout(self.connectionTab_2)
        self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11"))
        self.portComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.portComboBox.setObjectName(_fromUtf8("portComboBox"))
        self.verticalLayout_11.addWidget(self.portComboBox)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.timoutDoubleSpinBox = QtGui.QDoubleSpinBox(self.connectionTab_2)
        self.timoutDoubleSpinBox.setDecimals(1)
        self.timoutDoubleSpinBox.setMaximum(1.0)
        self.timoutDoubleSpinBox.setProperty("value", 0.1)
        self.timoutDoubleSpinBox.setObjectName(
            _fromUtf8("timoutDoubleSpinBox"))
        self.gridLayout_3.addWidget(self.timoutDoubleSpinBox, 0, 3, 1, 1)
        self.stopBitsComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.stopBitsComboBox.setObjectName(_fromUtf8("stopBitsComboBox"))
        self.stopBitsComboBox.addItem(_fromUtf8(""))
        self.stopBitsComboBox.addItem(_fromUtf8(""))
        self.stopBitsComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.stopBitsComboBox, 1, 1, 1, 1)
        self.label_14 = QtGui.QLabel(self.connectionTab_2)
        self.label_14.setWordWrap(False)
        self.label_14.setMargin(0)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.gridLayout_3.addWidget(self.label_14, 3, 0, 1, 1)
        self.baudComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.baudComboBox.setObjectName(_fromUtf8("baudComboBox"))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.baudComboBox, 0, 1, 1, 1)
        self.label_13 = QtGui.QLabel(self.connectionTab_2)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.gridLayout_3.addWidget(self.label_13, 1, 0, 1, 1)
        self.label_15 = QtGui.QLabel(self.connectionTab_2)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.gridLayout_3.addWidget(self.label_15, 1, 2, 1, 1)
        self.ParityComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.ParityComboBox.setObjectName(_fromUtf8("ParityComboBox"))
        self.ParityComboBox.addItem(_fromUtf8(""))
        self.ParityComboBox.addItem(_fromUtf8(""))
        self.ParityComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.ParityComboBox, 3, 1, 1, 1)
        self.dataBitsComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.dataBitsComboBox.setObjectName(_fromUtf8("dataBitsComboBox"))
        self.dataBitsComboBox.addItem(_fromUtf8(""))
        self.dataBitsComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.dataBitsComboBox, 1, 3, 1, 1)
        self.label_16 = QtGui.QLabel(self.connectionTab_2)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.gridLayout_3.addWidget(self.label_16, 0, 2, 1, 1)
        self.connectButton = QtGui.QPushButton(self.connectionTab_2)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(165, 240, 156))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(165, 240, 156))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(165, 240, 156))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        self.connectButton.setPalette(palette)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.connectButton.setFont(font)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/tool_logwindow.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.connectButton.setIcon(icon4)
        self.connectButton.setFlat(False)
        self.connectButton.setObjectName(_fromUtf8("connectButton"))
        self.gridLayout_3.addWidget(self.connectButton, 3, 2, 1, 1)
        self.disconnectButton = QtGui.QPushButton(self.connectionTab_2)
        self.disconnectButton.setEnabled(False)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.disconnectButton.setFont(font)
        self.disconnectButton.setIcon(icon1)
        self.disconnectButton.setObjectName(_fromUtf8("disconnectButton"))
        self.gridLayout_3.addWidget(self.disconnectButton, 3, 3, 1, 1)
        self.verticalLayout_11.addLayout(self.gridLayout_3)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/USBcable.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.connectionTab_2, icon5, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.tab_5)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(self.tab_5)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.pvLcdNumber = QtGui.QLCDNumber(self.tab_5)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(231, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(231, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText,
                         brush)
        self.pvLcdNumber.setPalette(palette)
        self.pvLcdNumber.setSmallDecimalPoint(False)
        self.pvLcdNumber.setDigitCount(5)
        self.pvLcdNumber.setProperty("value", 999.9)
        self.pvLcdNumber.setObjectName(_fromUtf8("pvLcdNumber"))
        self.verticalLayout.addWidget(self.pvLcdNumber)
        self.getPvButton = QtGui.QPushButton(self.tab_5)
        self.getPvButton.setEnabled(False)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(_fromUtf8(":/1downarrow.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.getPvButton.setIcon(icon6)
        self.getPvButton.setObjectName(_fromUtf8("getPvButton"))
        self.verticalLayout.addWidget(self.getPvButton)
        self.verticalLayout.setStretch(1, 1)
        self.horizontalLayout_2.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label_2 = QtGui.QLabel(self.tab_5)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_2.addWidget(self.label_2)
        self.svLcdNumber = QtGui.QLCDNumber(self.tab_5)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 222, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 222, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText,
                         brush)
        self.svLcdNumber.setPalette(palette)
        self.svLcdNumber.setSmallDecimalPoint(False)
        self.svLcdNumber.setProperty("value", 999.9)
        self.svLcdNumber.setObjectName(_fromUtf8("svLcdNumber"))
        self.verticalLayout_2.addWidget(self.svLcdNumber)
        self.getSvButton = QtGui.QPushButton(self.tab_5)
        self.getSvButton.setEnabled(False)
        self.getSvButton.setIcon(icon6)
        self.getSvButton.setObjectName(_fromUtf8("getSvButton"))
        self.verticalLayout_2.addWidget(self.getSvButton)
        self.verticalLayout_2.setStretch(1, 1)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(_fromUtf8(":/Analyzeloop.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab_5, icon7, _fromUtf8(""))
        self.monitorTab_2 = QtGui.QWidget()
        self.monitorTab_2.setObjectName(_fromUtf8("monitorTab_2"))
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.monitorTab_2)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.dataTextEdit = QtGui.QTextEdit(self.monitorTab_2)
        self.dataTextEdit.setEnabled(True)
        self.dataTextEdit.setObjectName(_fromUtf8("dataTextEdit"))
        self.verticalLayout_8.addWidget(self.dataTextEdit)
        self.monitorScrollCheckBox = QtGui.QCheckBox(self.monitorTab_2)
        self.monitorScrollCheckBox.setChecked(True)
        self.monitorScrollCheckBox.setObjectName(
            _fromUtf8("monitorScrollCheckBox"))
        self.verticalLayout_8.addWidget(self.monitorScrollCheckBox)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(_fromUtf8(":/Bill.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.monitorTab_2, icon8, _fromUtf8(""))
        self.dataTab_2 = QtGui.QWidget()
        self.dataTab_2.setObjectName(_fromUtf8("dataTab_2"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.dataTab_2)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.DaqTableWidget = QtGui.QTableWidget(self.dataTab_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.DaqTableWidget.sizePolicy().hasHeightForWidth())
        self.DaqTableWidget.setSizePolicy(sizePolicy)
        self.DaqTableWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.DaqTableWidget.setMidLineWidth(1)
        self.DaqTableWidget.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOn)
        self.DaqTableWidget.setAlternatingRowColors(True)
        self.DaqTableWidget.setObjectName(_fromUtf8("DaqTableWidget"))
        self.DaqTableWidget.setColumnCount(6)
        self.DaqTableWidget.setRowCount(1)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 0, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 1, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 2, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 3, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 4, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 5, item)
        self.DaqTableWidget.horizontalHeader().setCascadingSectionResizes(
            False)
        self.DaqTableWidget.horizontalHeader().setMinimumSectionSize(25)
        self.DaqTableWidget.horizontalHeader().setStretchLastSection(False)
        self.DaqTableWidget.verticalHeader().setVisible(False)
        self.DaqTableWidget.verticalHeader().setDefaultSectionSize(20)
        self.verticalLayout_6.addWidget(self.DaqTableWidget)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.daqScrollCheckBox = QtGui.QCheckBox(self.dataTab_2)
        self.daqScrollCheckBox.setChecked(True)
        self.daqScrollCheckBox.setObjectName(_fromUtf8("daqScrollCheckBox"))
        self.horizontalLayout_4.addWidget(self.daqScrollCheckBox)
        self.daqSamplesTakenLabel = QtGui.QLabel(self.dataTab_2)
        self.daqSamplesTakenLabel.setObjectName(
            _fromUtf8("daqSamplesTakenLabel"))
        self.horizontalLayout_4.addWidget(self.daqSamplesTakenLabel)
        self.clearDaqButton = QtGui.QPushButton(self.dataTab_2)
        self.clearDaqButton.setStatusTip(_fromUtf8(""))
        self.clearDaqButton.setObjectName(_fromUtf8("clearDaqButton"))
        self.horizontalLayout_4.addWidget(self.clearDaqButton)
        self.verticalLayout_6.addLayout(self.horizontalLayout_4)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(_fromUtf8(":/Research.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.dataTab_2, icon9, _fromUtf8(""))
        self.modbusTab_2 = QtGui.QWidget()
        self.modbusTab_2.setObjectName(_fromUtf8("modbusTab_2"))
        self.verticalLayout_13 = QtGui.QVBoxLayout(self.modbusTab_2)
        self.verticalLayout_13.setObjectName(_fromUtf8("verticalLayout_13"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_4 = QtGui.QLabel(self.modbusTab_2)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_4)
        self.label_17 = QtGui.QLabel(self.modbusTab_2)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_17)
        self.PvReadSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.PvReadSpinBox.setMaximum(10000)
        self.PvReadSpinBox.setProperty("value", 4096)
        self.PvReadSpinBox.setObjectName(_fromUtf8("PvReadSpinBox"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.PvReadSpinBox)
        self.label_18 = QtGui.QLabel(self.modbusTab_2)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_18)
        self.SvReadSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.SvReadSpinBox.setMaximum(10000)
        self.SvReadSpinBox.setProperty("value", 4097)
        self.SvReadSpinBox.setObjectName(_fromUtf8("SvReadSpinBox"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.SvReadSpinBox)
        self.label_19 = QtGui.QLabel(self.modbusTab_2)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.formLayout_2.setWidget(4, QtGui.QFormLayout.LabelRole,
                                    self.label_19)
        self.PvWriteSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.PvWriteSpinBox.setMaximum(10000)
        self.PvWriteSpinBox.setProperty("value", 4096)
        self.PvWriteSpinBox.setObjectName(_fromUtf8("PvWriteSpinBox"))
        self.formLayout_2.setWidget(4, QtGui.QFormLayout.FieldRole,
                                    self.PvWriteSpinBox)
        self.label_20 = QtGui.QLabel(self.modbusTab_2)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.formLayout_2.setWidget(5, QtGui.QFormLayout.LabelRole,
                                    self.label_20)
        self.SvWriteSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.SvWriteSpinBox.setMaximum(10000)
        self.SvWriteSpinBox.setProperty("value", 4097)
        self.SvWriteSpinBox.setObjectName(_fromUtf8("SvWriteSpinBox"))
        self.formLayout_2.setWidget(5, QtGui.QFormLayout.FieldRole,
                                    self.SvWriteSpinBox)
        self.label_5 = QtGui.QLabel(self.modbusTab_2)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_5.setFont(font)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_5)
        self.verticalLayout_13.addLayout(self.formLayout_2)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap(_fromUtf8(":/PCboard.svg")),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.modbusTab_2, icon10, _fromUtf8(""))
        self.horizontalLayout.addWidget(self.tabWidget)
        self.horizontalLayout.setStretch(0, 2)
        self.horizontalLayout.setStretch(6, 7)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.verticalLayout_3.setStretch(0, 2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 912, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuHelp = QtGui.QMenu(self.menubar)
        self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionExit = QtGui.QAction(MainWindow)
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap(_fromUtf8(":/application-exit.svg")),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionExit.setIcon(icon11)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionSave_Daq = QtGui.QAction(MainWindow)
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap(_fromUtf8(":/stock_save.svg")),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSave_Daq.setIcon(icon12)
        self.actionSave_Daq.setObjectName(_fromUtf8("actionSave_Daq"))
        self.actionReset_DAQ = QtGui.QAction(MainWindow)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap(_fromUtf8(":/gtk-refresh.svg")),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionReset_DAQ.setIcon(icon13)
        self.actionReset_DAQ.setObjectName(_fromUtf8("actionReset_DAQ"))
        self.actionAbout = QtGui.QAction(MainWindow)
        icon14 = QtGui.QIcon()
        icon14.addPixmap(QtGui.QPixmap(_fromUtf8(":/help-about.svg")),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionAbout.setIcon(icon14)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.actionHelp = QtGui.QAction(MainWindow)
        icon15 = QtGui.QIcon()
        icon15.addPixmap(QtGui.QPixmap(_fromUtf8(":/gnome-help.svg")),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionHelp.setIcon(icon15)
        self.actionHelp.setObjectName(_fromUtf8("actionHelp"))
        self.menuFile.addAction(self.actionSave_Daq)
        self.menuFile.addAction(self.actionReset_DAQ)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionExit)
        self.menuHelp.addAction(self.actionAbout)
        self.menuHelp.addAction(self.actionHelp)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())
        self.toolBar.addAction(self.actionReset_DAQ)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionSave_Daq)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionExit)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionAbout)
        self.toolBar.addAction(self.actionHelp)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(3)
        self.baudComboBox.setCurrentIndex(2)
        self.ParityComboBox.setCurrentIndex(0)
        self.dataBitsComboBox.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
        self.plottingIntervalLabel.setText(
            _translate("MainWindow", "Plotting Interval: 1000", None))
        self.sampleIntervalLabel.setText(
            _translate("MainWindow", "Sample Interval: 100", None))
        self.timerStatusLabel.setText(
            _translate("MainWindow", "Status: Stopped", None))
        self.timeLabel.setText(_translate("MainWindow", "Time: 12:59:59",
                                          None))
        self.svLabel.setText(_translate("MainWindow", "SV: 999.9", None))
        self.pvLabel.setText(_translate("MainWindow", "PV: 999.9", None))
        self.label_3.setText(_translate("MainWindow", "DAQ Record", None))
        self.startButton.setStatusTip(
            _translate("MainWindow",
                       "Start recording DAQ at plotting interval", None))
        self.startButton.setText(_translate("MainWindow", "Start", None))
        self.resetButton.setStatusTip(
            _translate("MainWindow", "Reset DAQ", None))
        self.resetButton.setText(_translate("MainWindow", "Reset", None))
        self.stopButton.setStatusTip(
            _translate("MainWindow", "Stop Taking DAQ data (cannot restart)",
                       None))
        self.stopButton.setText(_translate("MainWindow", "Stop", None))
        self.svVerticalSlider.setStatusTip(
            _translate("MainWindow", "Value to set SV to", None))
        self.setSvButton.setStatusTip(
            _translate("MainWindow", "Set the SV on the Love 16B", None))
        self.setSvButton.setText(_translate("MainWindow", "Set SV", None))
        self.portComboBox.setStatusTip(
            _translate("MainWindow", "Com port for ModBus connection", None))
        self.stopBitsComboBox.setItemText(0,
                                          _translate("MainWindow", "1", None))
        self.stopBitsComboBox.setItemText(
            1, _translate("MainWindow", "1.5", None))
        self.stopBitsComboBox.setItemText(2,
                                          _translate("MainWindow", "2", None))
        self.label_14.setText(_translate("MainWindow", "Parity:", None))
        self.baudComboBox.setItemText(0, _translate("MainWindow", "9600",
                                                    None))
        self.baudComboBox.setItemText(1, _translate("MainWindow", "19200",
                                                    None))
        self.baudComboBox.setItemText(2, _translate("MainWindow", "38400",
                                                    None))
        self.baudComboBox.setItemText(3, _translate("MainWindow", "57600",
                                                    None))
        self.baudComboBox.setItemText(4,
                                      _translate("MainWindow", "115200", None))
        self.label_13.setText(_translate("MainWindow", "Stop Bits:", None))
        self.label_15.setText(_translate("MainWindow", "Data Bits:", None))
        self.ParityComboBox.setItemText(0,
                                        _translate("MainWindow", "NONE", None))
        self.ParityComboBox.setItemText(1,
                                        _translate("MainWindow", "EVEN", None))
        self.ParityComboBox.setItemText(2, _translate("MainWindow", "ODD",
                                                      None))
        self.dataBitsComboBox.setItemText(0,
                                          _translate("MainWindow", "7", None))
        self.dataBitsComboBox.setItemText(1,
                                          _translate("MainWindow", "8", None))
        self.label_16.setText(_translate("MainWindow", "Modbus Timeout", None))
        self.connectButton.setText(
            _translate("MainWindow", "Connect Modbus", None))
        self.disconnectButton.setText(
            _translate("MainWindow", "Disconnect ModBus", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.connectionTab_2),
                                  _translate("MainWindow", "Connection", None))
        self.label.setText(_translate("MainWindow", "PV", None))
        self.getPvButton.setStatusTip(
            _translate("MainWindow", "Get PV from Love 16B", None))
        self.getPvButton.setText(_translate("MainWindow", "Get PV", None))
        self.label_2.setText(_translate("MainWindow", "SV", None))
        self.getSvButton.setStatusTip(
            _translate("MainWindow", "Get SV from Love 16B", None))
        self.getSvButton.setText(_translate("MainWindow", "Get SV", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5),
                                  _translate("MainWindow", "Readouts", None))
        self.dataTextEdit.setStatusTip(
            _translate("MainWindow", "Message log...", None))
        self.dataTextEdit.setHtml(
            _translate(
                "MainWindow",
                "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt; font-weight:600;\">Love 16B Data Monitor...</span></p></body></html>",
                None))
        self.monitorScrollCheckBox.setText(
            _translate("MainWindow", "Scroll to Bottom", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.monitorTab_2),
                                  _translate("MainWindow", "Monitor", None))
        item = self.DaqTableWidget.verticalHeaderItem(0)
        item.setText(_translate("MainWindow", "0", None))
        item = self.DaqTableWidget.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "Sample#", None))
        item = self.DaqTableWidget.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "Time(H:M:S)", None))
        item = self.DaqTableWidget.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "Datetime", None))
        item = self.DaqTableWidget.horizontalHeaderItem(3)
        item.setText(_translate("MainWindow", "Temperature", None))
        item = self.DaqTableWidget.horizontalHeaderItem(4)
        item.setText(_translate("MainWindow", "Set Point", None))
        item = self.DaqTableWidget.horizontalHeaderItem(5)
        item.setText(_translate("MainWindow", "Error", None))
        __sortingEnabled = self.DaqTableWidget.isSortingEnabled()
        self.DaqTableWidget.setSortingEnabled(False)
        item = self.DaqTableWidget.item(0, 0)
        item.setText(_translate("MainWindow", "0", None))
        item = self.DaqTableWidget.item(0, 1)
        item.setText(_translate("MainWindow", "00:00", None))
        item = self.DaqTableWidget.item(0, 2)
        item.setText(_translate("MainWindow", "0", None))
        item = self.DaqTableWidget.item(0, 3)
        item.setText(_translate("MainWindow", "0", None))
        item = self.DaqTableWidget.item(0, 4)
        item.setText(_translate("MainWindow", "0", None))
        item = self.DaqTableWidget.item(0, 5)
        item.setText(_translate("MainWindow", "0", None))
        self.DaqTableWidget.setSortingEnabled(__sortingEnabled)
        self.daqScrollCheckBox.setText(
            _translate("MainWindow", "Scroll to Bottom", None))
        self.daqSamplesTakenLabel.setText(
            _translate("MainWindow", "# of Samples Taken: 00000", None))
        self.clearDaqButton.setToolTip(
            _translate("MainWindow", "Clear Program and Readout", None))
        self.clearDaqButton.setText(_translate("MainWindow", "Clear DAQ",
                                               None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.dataTab_2),
                                  _translate("MainWindow", "DAQ Viewer", None))
        self.label_4.setText(_translate("MainWindow", "Read Registers", None))
        self.label_17.setText(
            _translate("MainWindow", "PV Read Register", None))
        self.label_18.setText(
            _translate("MainWindow", "SV Read Register", None))
        self.label_19.setText(
            _translate("MainWindow", "PV Write Register", None))
        self.label_20.setText(
            _translate("MainWindow", "SV Write Register", None))
        self.label_5.setText(_translate("MainWindow", "Write Registers", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.modbusTab_2),
            _translate("MainWindow", "ModBus Config", None))
        self.menuFile.setTitle(_translate("MainWindow", "File", None))
        self.menuHelp.setTitle(_translate("MainWindow", "Help", None))
        self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None))
        self.actionExit.setText(_translate("MainWindow", "E&xit", None))
        self.actionExit.setToolTip(
            _translate("MainWindow", "Exit the program", None))
        self.actionExit.setStatusTip(
            _translate("MainWindow", "Exit the program", None))
        self.actionExit.setShortcut(_translate("MainWindow", "Ctrl+X", None))
        self.actionSave_Daq.setText(_translate("MainWindow", "Save DAQ", None))
        self.actionSave_Daq.setToolTip(
            _translate("MainWindow", "Save DAQ Data", None))
        self.actionSave_Daq.setStatusTip(
            _translate("MainWindow", "Save DAQ Data", None))
        self.actionSave_Daq.setShortcut(
            _translate("MainWindow", "Ctrl+S", None))
        self.actionReset_DAQ.setText(
            _translate("MainWindow", "Reset DAQ", None))
        self.actionReset_DAQ.setToolTip(
            _translate("MainWindow", "Reset the DAQ", None))
        self.actionReset_DAQ.setStatusTip(
            _translate("MainWindow", "Reset the DAQ", None))
        self.actionAbout.setText(_translate("MainWindow", "About", None))
        self.actionAbout.setStatusTip(_translate("MainWindow", "About", None))
        self.actionHelp.setText(_translate("MainWindow", "Help", None))
        self.actionHelp.setStatusTip(_translate("MainWindow", "Help", None))
Esempio n. 35
0
    def setupUi(self, ScopeWindow):
        ScopeWindow.setObjectName(_fromUtf8("ScopeWindow"))
        ScopeWindow.resize(1104, 737)
        self.centralwidget = QtGui.QWidget(ScopeWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.ScopeSettings = QtGui.QGroupBox(self.centralwidget)
        self.ScopeSettings.setObjectName(_fromUtf8("ScopeSettings"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.ScopeSettings)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.SampleSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.SampleSettings.sizePolicy().hasHeightForWidth())
        self.SampleSettings.setSizePolicy(sizePolicy)
        self.SampleSettings.setObjectName(_fromUtf8("SampleSettings"))
        self.gridLayout = QtGui.QGridLayout(self.SampleSettings)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(self.SampleSettings)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.samplesSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.samplesSpinBox.setMinimum(32)
        self.samplesSpinBox.setMaximum(999999999)
        self.samplesSpinBox.setSingleStep(64)
        self.samplesSpinBox.setProperty("value", 1024)
        self.samplesSpinBox.setObjectName(_fromUtf8("samplesSpinBox"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.samplesSpinBox)
        self.label_2 = QtGui.QLabel(self.SampleSettings)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
        self.recordsSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.recordsSpinBox.setMinimum(1)
        self.recordsSpinBox.setMaximum(999999999)
        self.recordsSpinBox.setObjectName(_fromUtf8("recordsSpinBox"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.recordsSpinBox)
        self.label_3 = QtGui.QLabel(self.SampleSettings)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
        self.buffersSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.buffersSpinBox.setMinimum(1)
        self.buffersSpinBox.setMaximum(999999999)
        self.buffersSpinBox.setObjectName(_fromUtf8("buffersSpinBox"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.buffersSpinBox)
        self.label_21 = QtGui.QLabel(self.SampleSettings)
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole,
                                  self.label_21)
        self.recordsPerAcquisitionSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.recordsPerAcquisitionSpinBox.setMinimum(1)
        self.recordsPerAcquisitionSpinBox.setMaximum(999999999)
        self.recordsPerAcquisitionSpinBox.setProperty("value", 1)
        self.recordsPerAcquisitionSpinBox.setObjectName(
            _fromUtf8("recordsPerAcquisitionSpinBox"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole,
                                  self.recordsPerAcquisitionSpinBox)
        self.gridLayout.addLayout(self.formLayout, 0, 0, 1, 1)
        self.verticalLayout_5.addWidget(self.SampleSettings)
        self.VerticalSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.VerticalSettings.sizePolicy().hasHeightForWidth())
        self.VerticalSettings.setSizePolicy(sizePolicy)
        self.VerticalSettings.setObjectName(_fromUtf8("VerticalSettings"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.VerticalSettings)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.Ch1Vertical = QtGui.QGroupBox(self.VerticalSettings)
        self.Ch1Vertical.setObjectName(_fromUtf8("Ch1Vertical"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.Ch1Vertical)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.formLayout_5 = QtGui.QFormLayout()
        self.formLayout_5.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_5.setObjectName(_fromUtf8("formLayout_5"))
        self.ch1_enabledCheckBox = QtGui.QCheckBox(self.Ch1Vertical)
        self.ch1_enabledCheckBox.setChecked(True)
        self.ch1_enabledCheckBox.setObjectName(
            _fromUtf8("ch1_enabledCheckBox"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.ch1_enabledCheckBox)
        self.ch1_filteredCheckBox = QtGui.QCheckBox(self.Ch1Vertical)
        self.ch1_filteredCheckBox.setObjectName(
            _fromUtf8("ch1_filteredCheckBox"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.ch1_filteredCheckBox)
        self.label_16 = QtGui.QLabel(self.Ch1Vertical)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_16)
        self.ch1_rangeComboBox = QtGui.QComboBox(self.Ch1Vertical)
        self.ch1_rangeComboBox.setObjectName(_fromUtf8("ch1_rangeComboBox"))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.ch1_rangeComboBox)
        self.label_17 = QtGui.QLabel(self.Ch1Vertical)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_17)
        self.ch1_couplingComboBox = QtGui.QComboBox(self.Ch1Vertical)
        self.ch1_couplingComboBox.setObjectName(
            _fromUtf8("ch1_couplingComboBox"))
        self.ch1_couplingComboBox.addItem(_fromUtf8(""))
        self.ch1_couplingComboBox.addItem(_fromUtf8(""))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.ch1_couplingComboBox)
        self.verticalLayout_3.addLayout(self.formLayout_5)
        self.horizontalLayout_2.addWidget(self.Ch1Vertical)
        self.Ch2Vertical = QtGui.QGroupBox(self.VerticalSettings)
        self.Ch2Vertical.setObjectName(_fromUtf8("Ch2Vertical"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.Ch2Vertical)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.formLayout_6 = QtGui.QFormLayout()
        self.formLayout_6.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_6.setObjectName(_fromUtf8("formLayout_6"))
        self.ch2_enabledCheckBox = QtGui.QCheckBox(self.Ch2Vertical)
        self.ch2_enabledCheckBox.setChecked(True)
        self.ch2_enabledCheckBox.setObjectName(
            _fromUtf8("ch2_enabledCheckBox"))
        self.formLayout_6.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.ch2_enabledCheckBox)
        self.ch2_filteredCheckBox = QtGui.QCheckBox(self.Ch2Vertical)
        self.ch2_filteredCheckBox.setObjectName(
            _fromUtf8("ch2_filteredCheckBox"))
        self.formLayout_6.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.ch2_filteredCheckBox)
        self.label_18 = QtGui.QLabel(self.Ch2Vertical)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout_6.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_18)
        self.ch2_rangeComboBox = QtGui.QComboBox(self.Ch2Vertical)
        self.ch2_rangeComboBox.setObjectName(_fromUtf8("ch2_rangeComboBox"))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.formLayout_6.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.ch2_rangeComboBox)
        self.label_19 = QtGui.QLabel(self.Ch2Vertical)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.formLayout_6.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_19)
        self.ch2_couplingComboBox = QtGui.QComboBox(self.Ch2Vertical)
        self.ch2_couplingComboBox.setObjectName(
            _fromUtf8("ch2_couplingComboBox"))
        self.ch2_couplingComboBox.addItem(_fromUtf8(""))
        self.ch2_couplingComboBox.addItem(_fromUtf8(""))
        self.formLayout_6.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.ch2_couplingComboBox)
        self.verticalLayout_4.addLayout(self.formLayout_6)
        self.horizontalLayout_2.addWidget(self.Ch2Vertical)
        self.verticalLayout_5.addWidget(self.VerticalSettings)
        self.ClockSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ClockSettings.sizePolicy().hasHeightForWidth())
        self.ClockSettings.setSizePolicy(sizePolicy)
        self.ClockSettings.setObjectName(_fromUtf8("ClockSettings"))
        self.verticalLayout = QtGui.QVBoxLayout(self.ClockSettings)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_6 = QtGui.QLabel(self.ClockSettings)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_6)
        self.samplerateComboBox = QtGui.QComboBox(self.ClockSettings)
        self.samplerateComboBox.setObjectName(_fromUtf8("samplerateComboBox"))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.samplerateComboBox)
        self.label_4 = QtGui.QLabel(self.ClockSettings)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_4)
        self.clocksourceComboBox = QtGui.QComboBox(self.ClockSettings)
        self.clocksourceComboBox.setObjectName(
            _fromUtf8("clocksourceComboBox"))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.clocksourceComboBox)
        self.label_5 = QtGui.QLabel(self.ClockSettings)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_5)
        self.clockedgeComboBox = QtGui.QComboBox(self.ClockSettings)
        self.clockedgeComboBox.setObjectName(_fromUtf8("clockedgeComboBox"))
        self.clockedgeComboBox.addItem(_fromUtf8(""))
        self.clockedgeComboBox.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.clockedgeComboBox)
        self.label_10 = QtGui.QLabel(self.ClockSettings)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_10)
        self.timeoutSpinBox = QtGui.QSpinBox(self.ClockSettings)
        self.timeoutSpinBox.setMaximum(1000000000)
        self.timeoutSpinBox.setProperty("value", 5000)
        self.timeoutSpinBox.setObjectName(_fromUtf8("timeoutSpinBox"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.timeoutSpinBox)
        self.verticalLayout.addLayout(self.formLayout_2)
        self.verticalLayout_5.addWidget(self.ClockSettings)
        self.TriggerSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.TriggerSettings.sizePolicy().hasHeightForWidth())
        self.TriggerSettings.setSizePolicy(sizePolicy)
        self.TriggerSettings.setObjectName(_fromUtf8("TriggerSettings"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.TriggerSettings)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.formLayout_3 = QtGui.QFormLayout()
        self.formLayout_3.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_7 = QtGui.QLabel(self.TriggerSettings)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_7)
        self.trig1_sourceComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig1_sourceComboBox.setObjectName(
            _fromUtf8("trig1_sourceComboBox"))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.trig1_sourceComboBox)
        self.trig1_edgeComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig1_edgeComboBox.setObjectName(_fromUtf8("trig1_edgeComboBox"))
        self.trig1_edgeComboBox.addItem(_fromUtf8(""))
        self.trig1_edgeComboBox.addItem(_fromUtf8(""))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.trig1_edgeComboBox)
        self.label_9 = QtGui.QLabel(self.TriggerSettings)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_9)
        self.trig1_levelSpinBox = QtGui.QDoubleSpinBox(self.TriggerSettings)
        self.trig1_levelSpinBox.setProperty("value", 1.0)
        self.trig1_levelSpinBox.setObjectName(_fromUtf8("trig1_levelSpinBox"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.trig1_levelSpinBox)
        self.label_11 = QtGui.QLabel(self.TriggerSettings)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_11)
        self.trigCouplingComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trigCouplingComboBox.setObjectName(
            _fromUtf8("trigCouplingComboBox"))
        self.trigCouplingComboBox.addItem(_fromUtf8(""))
        self.trigCouplingComboBox.addItem(_fromUtf8(""))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.trigCouplingComboBox)
        self.label_8 = QtGui.QLabel(self.TriggerSettings)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_8)
        self.horizontalLayout.addLayout(self.formLayout_3)
        self.formLayout_4 = QtGui.QFormLayout()
        self.formLayout_4.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_4.setObjectName(_fromUtf8("formLayout_4"))
        self.label_12 = QtGui.QLabel(self.TriggerSettings)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_12)
        self.trig2_sourceComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig2_sourceComboBox.setObjectName(
            _fromUtf8("trig2_sourceComboBox"))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.trig2_sourceComboBox)
        self.trig2_edgeComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig2_edgeComboBox.setObjectName(_fromUtf8("trig2_edgeComboBox"))
        self.trig2_edgeComboBox.addItem(_fromUtf8(""))
        self.trig2_edgeComboBox.addItem(_fromUtf8(""))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.trig2_edgeComboBox)
        self.label_13 = QtGui.QLabel(self.TriggerSettings)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_13)
        self.trig2_levelSpinBox = QtGui.QDoubleSpinBox(self.TriggerSettings)
        self.trig2_levelSpinBox.setProperty("value", 1.0)
        self.trig2_levelSpinBox.setObjectName(_fromUtf8("trig2_levelSpinBox"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.trig2_levelSpinBox)
        self.label_14 = QtGui.QLabel(self.TriggerSettings)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_14)
        self.label_15 = QtGui.QLabel(self.TriggerSettings)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_15)
        self.trigOpComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trigOpComboBox.setObjectName(_fromUtf8("trigOpComboBox"))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.trigOpComboBox)
        self.horizontalLayout.addLayout(self.formLayout_4)
        self.verticalLayout_6.addLayout(self.horizontalLayout)
        self.verticalLayout_5.addWidget(self.TriggerSettings)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem)
        self.horizontalLayout_5.addWidget(self.ScopeSettings)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.datapathButton = QtGui.QPushButton(self.centralwidget)
        self.datapathButton.setObjectName(_fromUtf8("datapathButton"))
        self.horizontalLayout_3.addWidget(self.datapathButton)
        self.datapathLineEdit = QtGui.QLineEdit(self.centralwidget)
        self.datapathLineEdit.setObjectName(_fromUtf8("datapathLineEdit"))
        self.horizontalLayout_3.addWidget(self.datapathLineEdit)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label_20 = QtGui.QLabel(self.centralwidget)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.horizontalLayout_6.addWidget(self.label_20)
        self.filenumberLabel = QtGui.QLabel(self.centralwidget)
        self.filenumberLabel.setObjectName(_fromUtf8("filenumberLabel"))
        self.horizontalLayout_6.addWidget(self.filenumberLabel)
        self.prefixLineEdit = QtGui.QLineEdit(self.centralwidget)
        self.prefixLineEdit.setObjectName(_fromUtf8("prefixLineEdit"))
        self.horizontalLayout_6.addWidget(self.prefixLineEdit)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.runButton = QtGui.QPushButton(self.centralwidget)
        self.runButton.setObjectName(_fromUtf8("runButton"))
        self.horizontalLayout_4.addWidget(self.runButton)
        self.saveButton = QtGui.QPushButton(self.centralwidget)
        self.saveButton.setObjectName(_fromUtf8("saveButton"))
        self.horizontalLayout_4.addWidget(self.saveButton)
        self.autosaveCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.autosaveCheckBox.setObjectName(_fromUtf8("autosaveCheckBox"))
        self.horizontalLayout_4.addWidget(self.autosaveCheckBox)
        self.autorunCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.autorunCheckBox.setChecked(True)
        self.autorunCheckBox.setObjectName(_fromUtf8("autorunCheckBox"))
        self.horizontalLayout_4.addWidget(self.autorunCheckBox)
        self.PSDCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.PSDCheckBox.setObjectName(_fromUtf8("PSDCheckBox"))
        self.horizontalLayout_4.addWidget(self.PSDCheckBox)
        self.x_autoscaleCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.x_autoscaleCheckBox.setEnabled(False)
        self.x_autoscaleCheckBox.setChecked(True)
        self.x_autoscaleCheckBox.setObjectName(
            _fromUtf8("x_autoscaleCheckBox"))
        self.horizontalLayout_4.addWidget(self.x_autoscaleCheckBox)
        self.y_autoscaleCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.y_autoscaleCheckBox.setEnabled(False)
        self.y_autoscaleCheckBox.setChecked(True)
        self.y_autoscaleCheckBox.setObjectName(
            _fromUtf8("y_autoscaleCheckBox"))
        self.horizontalLayout_4.addWidget(self.y_autoscaleCheckBox)
        self.autoscaleCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.autoscaleCheckBox.setChecked(True)
        self.autoscaleCheckBox.setObjectName(_fromUtf8("autoscaleCheckBox"))
        self.horizontalLayout_4.addWidget(self.autoscaleCheckBox)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.verticalLayout_2.addWidget(self.curvewidget)
        self.horizontalLayout_5.addLayout(self.verticalLayout_2)
        ScopeWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(ScopeWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1104, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        ScopeWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(ScopeWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        ScopeWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(ScopeWindow)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        ScopeWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)

        self.retranslateUi(ScopeWindow)
        self.trig1_sourceComboBox.setCurrentIndex(2)
        self.trig2_sourceComboBox.setCurrentIndex(3)
        QtCore.QMetaObject.connectSlotsByName(ScopeWindow)
Esempio n. 36
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.setEnabled(True)
        MainWindow.resize(912, 824)
        MainWindow.setTabShape(QtGui.QTabWidget.Rounded)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_3.setSizeConstraint(
            QtGui.QLayout.SetDefaultConstraint)
        self.verticalLayout_3.setContentsMargins(-1, 9, -1, -1)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setFrameShadow(QtGui.QFrame.Sunken)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.verticalLayout_3.addWidget(self.curvewidget)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.Slider = Qwt5.QwtSlider(self.centralwidget)
        self.Slider.setReadOnly(False)
        self.Slider.setScalePosition(Qwt5.QwtSlider.NoScale)
        self.Slider.setBgStyle(Qwt5.QwtSlider.BgSlot)
        self.Slider.setObjectName(_fromUtf8("Slider"))
        self.horizontalLayout_5.addWidget(self.Slider)
        self.verticalLayout_3.addLayout(self.horizontalLayout_5)
        self.line_10 = QtGui.QFrame(self.centralwidget)
        self.line_10.setFrameShape(QtGui.QFrame.HLine)
        self.line_10.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_10.setObjectName(_fromUtf8("line_10"))
        self.verticalLayout_3.addWidget(self.line_10)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.plottingIntervalDial = QtGui.QDial(self.centralwidget)
        self.plottingIntervalDial.setMinimum(100)
        self.plottingIntervalDial.setMaximum(5000)
        self.plottingIntervalDial.setSingleStep(100)
        self.plottingIntervalDial.setPageStep(100)
        self.plottingIntervalDial.setProperty("value", 1000)
        self.plottingIntervalDial.setOrientation(QtCore.Qt.Horizontal)
        self.plottingIntervalDial.setInvertedAppearance(False)
        self.plottingIntervalDial.setInvertedControls(False)
        self.plottingIntervalDial.setWrapping(False)
        self.plottingIntervalDial.setNotchTarget(10.0)
        self.plottingIntervalDial.setNotchesVisible(True)
        self.plottingIntervalDial.setObjectName(
            _fromUtf8("plottingIntervalDial"))
        self.verticalLayout_7.addWidget(self.plottingIntervalDial)
        self.plottingIntervalLabel = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.plottingIntervalLabel.setFont(font)
        self.plottingIntervalLabel.setObjectName(
            _fromUtf8("plottingIntervalLabel"))
        self.verticalLayout_7.addWidget(self.plottingIntervalLabel)
        self.sampleIntervalDial = QtGui.QDial(self.centralwidget)
        self.sampleIntervalDial.setMinimum(100)
        self.sampleIntervalDial.setMaximum(1000)
        self.sampleIntervalDial.setSingleStep(100)
        self.sampleIntervalDial.setPageStep(100)
        self.sampleIntervalDial.setProperty("value", 500)
        self.sampleIntervalDial.setWrapping(False)
        self.sampleIntervalDial.setNotchTarget(10.0)
        self.sampleIntervalDial.setNotchesVisible(True)
        self.sampleIntervalDial.setObjectName(_fromUtf8("sampleIntervalDial"))
        self.verticalLayout_7.addWidget(self.sampleIntervalDial)
        self.sampleIntervalLabel = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.sampleIntervalLabel.setFont(font)
        self.sampleIntervalLabel.setObjectName(
            _fromUtf8("sampleIntervalLabel"))
        self.verticalLayout_7.addWidget(self.sampleIntervalLabel)
        self.verticalLayout_7.setStretch(0, 1)
        self.horizontalLayout.addLayout(self.verticalLayout_7)
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.horizontalLayout.addWidget(self.line)
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.line_4 = QtGui.QFrame(self.centralwidget)
        self.line_4.setFrameShape(QtGui.QFrame.HLine)
        self.line_4.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_4.setObjectName(_fromUtf8("line_4"))
        self.verticalLayout_4.addWidget(self.line_4)
        self.timerStatusLabel = QtGui.QLabel(self.centralwidget)
        self.timerStatusLabel.setObjectName(_fromUtf8("timerStatusLabel"))
        self.verticalLayout_4.addWidget(self.timerStatusLabel)
        self.line_8 = QtGui.QFrame(self.centralwidget)
        self.line_8.setFrameShape(QtGui.QFrame.HLine)
        self.line_8.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_8.setObjectName(_fromUtf8("line_8"))
        self.verticalLayout_4.addWidget(self.line_8)
        self.timeLabel = QtGui.QLabel(self.centralwidget)
        self.timeLabel.setFrameShape(QtGui.QFrame.NoFrame)
        self.timeLabel.setFrameShadow(QtGui.QFrame.Sunken)
        self.timeLabel.setLineWidth(1)
        self.timeLabel.setObjectName(_fromUtf8("timeLabel"))
        self.verticalLayout_4.addWidget(self.timeLabel)
        self.line_5 = QtGui.QFrame(self.centralwidget)
        self.line_5.setFrameShape(QtGui.QFrame.HLine)
        self.line_5.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_5.setObjectName(_fromUtf8("line_5"))
        self.verticalLayout_4.addWidget(self.line_5)
        self.svLabel = QtGui.QLabel(self.centralwidget)
        self.svLabel.setFrameShape(QtGui.QFrame.NoFrame)
        self.svLabel.setObjectName(_fromUtf8("svLabel"))
        self.verticalLayout_4.addWidget(self.svLabel)
        self.line_7 = QtGui.QFrame(self.centralwidget)
        self.line_7.setFrameShape(QtGui.QFrame.HLine)
        self.line_7.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_7.setObjectName(_fromUtf8("line_7"))
        self.verticalLayout_4.addWidget(self.line_7)
        self.pvLabel = QtGui.QLabel(self.centralwidget)
        self.pvLabel.setObjectName(_fromUtf8("pvLabel"))
        self.verticalLayout_4.addWidget(self.pvLabel)
        self.line_3 = QtGui.QFrame(self.centralwidget)
        self.line_3.setFrameShape(QtGui.QFrame.HLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.verticalLayout_4.addWidget(self.line_3)
        self.label_3 = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout_4.addWidget(self.label_3)
        self.startButton = QtGui.QPushButton(self.centralwidget)
        self.startButton.setEnabled(False)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/gtk-media-play-ltr.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.startButton.setIcon(icon)
        self.startButton.setObjectName(_fromUtf8("startButton"))
        self.verticalLayout_4.addWidget(self.startButton)
        self.resetButton = QtGui.QPushButton(self.centralwidget)
        self.resetButton.setEnabled(False)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/editdelete.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.resetButton.setIcon(icon1)
        self.resetButton.setObjectName(_fromUtf8("resetButton"))
        self.verticalLayout_4.addWidget(self.resetButton)
        self.stopButton = QtGui.QPushButton(self.centralwidget)
        self.stopButton.setEnabled(False)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/gtk-media-stop.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.stopButton.setIcon(icon2)
        self.stopButton.setObjectName(_fromUtf8("stopButton"))
        self.verticalLayout_4.addWidget(self.stopButton)
        self.horizontalLayout.addLayout(self.verticalLayout_4)
        self.line_9 = QtGui.QFrame(self.centralwidget)
        self.line_9.setFrameShape(QtGui.QFrame.VLine)
        self.line_9.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_9.setObjectName(_fromUtf8("line_9"))
        self.horizontalLayout.addWidget(self.line_9)
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.svVerticalSlider = QtGui.QSlider(self.centralwidget)
        self.svVerticalSlider.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.svVerticalSlider.setMaximum(9999)
        self.svVerticalSlider.setOrientation(QtCore.Qt.Vertical)
        self.svVerticalSlider.setObjectName(_fromUtf8("svVerticalSlider"))
        self.verticalLayout_5.addWidget(self.svVerticalSlider)
        self.SvLcdNumber = QtGui.QLCDNumber(self.centralwidget)
        self.SvLcdNumber.setEnabled(True)
        font = QtGui.QFont()
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.SvLcdNumber.setFont(font)
        self.SvLcdNumber.setSmallDecimalPoint(False)
        self.SvLcdNumber.setNumDigits(5)
        self.SvLcdNumber.setProperty("value", 999.9)
        self.SvLcdNumber.setObjectName(_fromUtf8("SvLcdNumber"))
        self.verticalLayout_5.addWidget(self.SvLcdNumber)
        self.setSvButton = QtGui.QPushButton(self.centralwidget)
        self.setSvButton.setEnabled(False)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/1uparrow.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.setSvButton.setIcon(icon3)
        self.setSvButton.setObjectName(_fromUtf8("setSvButton"))
        self.verticalLayout_5.addWidget(self.setSvButton)
        self.horizontalLayout.addLayout(self.verticalLayout_5)
        self.line_2 = QtGui.QFrame(self.centralwidget)
        self.line_2.setFrameShape(QtGui.QFrame.VLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.horizontalLayout.addWidget(self.line_2)
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setStatusTip(_fromUtf8(""))
        self.tabWidget.setIconSize(QtCore.QSize(24, 24))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.connectionTab_2 = QtGui.QWidget()
        self.connectionTab_2.setObjectName(_fromUtf8("connectionTab_2"))
        self.verticalLayout_11 = QtGui.QVBoxLayout(self.connectionTab_2)
        self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11"))
        self.portComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.portComboBox.setObjectName(_fromUtf8("portComboBox"))
        self.verticalLayout_11.addWidget(self.portComboBox)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.timoutDoubleSpinBox = QtGui.QDoubleSpinBox(self.connectionTab_2)
        self.timoutDoubleSpinBox.setDecimals(1)
        self.timoutDoubleSpinBox.setMaximum(1.0)
        self.timoutDoubleSpinBox.setProperty("value", 0.1)
        self.timoutDoubleSpinBox.setObjectName(
            _fromUtf8("timoutDoubleSpinBox"))
        self.gridLayout_3.addWidget(self.timoutDoubleSpinBox, 0, 3, 1, 1)
        self.stopBitsComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.stopBitsComboBox.setObjectName(_fromUtf8("stopBitsComboBox"))
        self.stopBitsComboBox.addItem(_fromUtf8(""))
        self.stopBitsComboBox.addItem(_fromUtf8(""))
        self.stopBitsComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.stopBitsComboBox, 1, 1, 1, 1)
        self.label_14 = QtGui.QLabel(self.connectionTab_2)
        self.label_14.setWordWrap(False)
        self.label_14.setMargin(0)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.gridLayout_3.addWidget(self.label_14, 3, 0, 1, 1)
        self.baudComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.baudComboBox.setObjectName(_fromUtf8("baudComboBox"))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.baudComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.baudComboBox, 0, 1, 1, 1)
        self.label_13 = QtGui.QLabel(self.connectionTab_2)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.gridLayout_3.addWidget(self.label_13, 1, 0, 1, 1)
        self.label_15 = QtGui.QLabel(self.connectionTab_2)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.gridLayout_3.addWidget(self.label_15, 1, 2, 1, 1)
        self.ParityComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.ParityComboBox.setObjectName(_fromUtf8("ParityComboBox"))
        self.ParityComboBox.addItem(_fromUtf8(""))
        self.ParityComboBox.addItem(_fromUtf8(""))
        self.ParityComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.ParityComboBox, 3, 1, 1, 1)
        self.dataBitsComboBox = QtGui.QComboBox(self.connectionTab_2)
        self.dataBitsComboBox.setObjectName(_fromUtf8("dataBitsComboBox"))
        self.dataBitsComboBox.addItem(_fromUtf8(""))
        self.dataBitsComboBox.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.dataBitsComboBox, 1, 3, 1, 1)
        self.label_16 = QtGui.QLabel(self.connectionTab_2)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.gridLayout_3.addWidget(self.label_16, 0, 2, 1, 1)
        self.connectButton = QtGui.QPushButton(self.connectionTab_2)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(165, 240, 156))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(165, 240, 156))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(165, 240, 156))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        self.connectButton.setPalette(palette)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.connectButton.setFont(font)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/tool_logwindow.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.connectButton.setIcon(icon4)
        self.connectButton.setFlat(False)
        self.connectButton.setObjectName(_fromUtf8("connectButton"))
        self.gridLayout_3.addWidget(self.connectButton, 3, 2, 1, 1)
        self.disconnectButton = QtGui.QPushButton(self.connectionTab_2)
        self.disconnectButton.setEnabled(False)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.disconnectButton.setFont(font)
        self.disconnectButton.setIcon(icon1)
        self.disconnectButton.setObjectName(_fromUtf8("disconnectButton"))
        self.gridLayout_3.addWidget(self.disconnectButton, 3, 3, 1, 1)
        self.verticalLayout_11.addLayout(self.gridLayout_3)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/USBcable.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.connectionTab_2, icon5, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.tab_5)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(self.tab_5)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.pvLcdNumber = QtGui.QLCDNumber(self.tab_5)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(231, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(231, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText,
                         brush)
        self.pvLcdNumber.setPalette(palette)
        self.pvLcdNumber.setSmallDecimalPoint(False)
        self.pvLcdNumber.setDigitCount(5)
        self.pvLcdNumber.setProperty("value", 999.9)
        self.pvLcdNumber.setObjectName(_fromUtf8("pvLcdNumber"))
        self.verticalLayout.addWidget(self.pvLcdNumber)
        self.getPvButton = QtGui.QPushButton(self.tab_5)
        self.getPvButton.setEnabled(False)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(_fromUtf8(":/1downarrow.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.getPvButton.setIcon(icon6)
        self.getPvButton.setObjectName(_fromUtf8("getPvButton"))
        self.verticalLayout.addWidget(self.getPvButton)
        self.verticalLayout.setStretch(1, 1)
        self.horizontalLayout_2.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label_2 = QtGui.QLabel(self.tab_5)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_2.addWidget(self.label_2)
        self.svLcdNumber = QtGui.QLCDNumber(self.tab_5)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 222, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 222, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText,
                         brush)
        self.svLcdNumber.setPalette(palette)
        self.svLcdNumber.setSmallDecimalPoint(False)
        self.svLcdNumber.setProperty("value", 999.9)
        self.svLcdNumber.setObjectName(_fromUtf8("svLcdNumber"))
        self.verticalLayout_2.addWidget(self.svLcdNumber)
        self.getSvButton = QtGui.QPushButton(self.tab_5)
        self.getSvButton.setEnabled(False)
        self.getSvButton.setIcon(icon6)
        self.getSvButton.setObjectName(_fromUtf8("getSvButton"))
        self.verticalLayout_2.addWidget(self.getSvButton)
        self.verticalLayout_2.setStretch(1, 1)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(_fromUtf8(":/Analyzeloop.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab_5, icon7, _fromUtf8(""))
        self.monitorTab_2 = QtGui.QWidget()
        self.monitorTab_2.setObjectName(_fromUtf8("monitorTab_2"))
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.monitorTab_2)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.dataTextEdit = QtGui.QTextEdit(self.monitorTab_2)
        self.dataTextEdit.setEnabled(True)
        self.dataTextEdit.setObjectName(_fromUtf8("dataTextEdit"))
        self.verticalLayout_8.addWidget(self.dataTextEdit)
        self.monitorScrollCheckBox = QtGui.QCheckBox(self.monitorTab_2)
        self.monitorScrollCheckBox.setChecked(True)
        self.monitorScrollCheckBox.setObjectName(
            _fromUtf8("monitorScrollCheckBox"))
        self.verticalLayout_8.addWidget(self.monitorScrollCheckBox)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(_fromUtf8(":/Bill.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.monitorTab_2, icon8, _fromUtf8(""))
        self.dataTab_2 = QtGui.QWidget()
        self.dataTab_2.setObjectName(_fromUtf8("dataTab_2"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.dataTab_2)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.DaqTableWidget = QtGui.QTableWidget(self.dataTab_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.DaqTableWidget.sizePolicy().hasHeightForWidth())
        self.DaqTableWidget.setSizePolicy(sizePolicy)
        self.DaqTableWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.DaqTableWidget.setMidLineWidth(1)
        self.DaqTableWidget.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOn)
        self.DaqTableWidget.setAlternatingRowColors(True)
        self.DaqTableWidget.setObjectName(_fromUtf8("DaqTableWidget"))
        self.DaqTableWidget.setColumnCount(6)
        self.DaqTableWidget.setRowCount(1)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        item.setFont(font)
        self.DaqTableWidget.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 0, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 1, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 2, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 3, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 4, item)
        item = QtGui.QTableWidgetItem()
        self.DaqTableWidget.setItem(0, 5, item)
        self.DaqTableWidget.horizontalHeader().setCascadingSectionResizes(
            False)
        self.DaqTableWidget.horizontalHeader().setMinimumSectionSize(25)
        self.DaqTableWidget.horizontalHeader().setStretchLastSection(False)
        self.DaqTableWidget.verticalHeader().setVisible(False)
        self.DaqTableWidget.verticalHeader().setDefaultSectionSize(20)
        self.verticalLayout_6.addWidget(self.DaqTableWidget)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.daqScrollCheckBox = QtGui.QCheckBox(self.dataTab_2)
        self.daqScrollCheckBox.setChecked(True)
        self.daqScrollCheckBox.setObjectName(_fromUtf8("daqScrollCheckBox"))
        self.horizontalLayout_4.addWidget(self.daqScrollCheckBox)
        self.daqSamplesTakenLabel = QtGui.QLabel(self.dataTab_2)
        self.daqSamplesTakenLabel.setObjectName(
            _fromUtf8("daqSamplesTakenLabel"))
        self.horizontalLayout_4.addWidget(self.daqSamplesTakenLabel)
        self.clearDaqButton = QtGui.QPushButton(self.dataTab_2)
        self.clearDaqButton.setStatusTip(_fromUtf8(""))
        self.clearDaqButton.setObjectName(_fromUtf8("clearDaqButton"))
        self.horizontalLayout_4.addWidget(self.clearDaqButton)
        self.verticalLayout_6.addLayout(self.horizontalLayout_4)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(_fromUtf8(":/Research.svg")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.dataTab_2, icon9, _fromUtf8(""))
        self.modbusTab_2 = QtGui.QWidget()
        self.modbusTab_2.setObjectName(_fromUtf8("modbusTab_2"))
        self.verticalLayout_13 = QtGui.QVBoxLayout(self.modbusTab_2)
        self.verticalLayout_13.setObjectName(_fromUtf8("verticalLayout_13"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_4 = QtGui.QLabel(self.modbusTab_2)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_4)
        self.label_17 = QtGui.QLabel(self.modbusTab_2)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_17)
        self.PvReadSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.PvReadSpinBox.setMaximum(10000)
        self.PvReadSpinBox.setProperty("value", 4096)
        self.PvReadSpinBox.setObjectName(_fromUtf8("PvReadSpinBox"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.PvReadSpinBox)
        self.label_18 = QtGui.QLabel(self.modbusTab_2)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_18)
        self.SvReadSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.SvReadSpinBox.setMaximum(10000)
        self.SvReadSpinBox.setProperty("value", 4097)
        self.SvReadSpinBox.setObjectName(_fromUtf8("SvReadSpinBox"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.SvReadSpinBox)
        self.label_19 = QtGui.QLabel(self.modbusTab_2)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.formLayout_2.setWidget(4, QtGui.QFormLayout.LabelRole,
                                    self.label_19)
        self.PvWriteSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.PvWriteSpinBox.setMaximum(10000)
        self.PvWriteSpinBox.setProperty("value", 4096)
        self.PvWriteSpinBox.setObjectName(_fromUtf8("PvWriteSpinBox"))
        self.formLayout_2.setWidget(4, QtGui.QFormLayout.FieldRole,
                                    self.PvWriteSpinBox)
        self.label_20 = QtGui.QLabel(self.modbusTab_2)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.formLayout_2.setWidget(5, QtGui.QFormLayout.LabelRole,
                                    self.label_20)
        self.SvWriteSpinBox = QtGui.QSpinBox(self.modbusTab_2)
        self.SvWriteSpinBox.setMaximum(10000)
        self.SvWriteSpinBox.setProperty("value", 4097)
        self.SvWriteSpinBox.setObjectName(_fromUtf8("SvWriteSpinBox"))
        self.formLayout_2.setWidget(5, QtGui.QFormLayout.FieldRole,
                                    self.SvWriteSpinBox)
        self.label_5 = QtGui.QLabel(self.modbusTab_2)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_5.setFont(font)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_5)
        self.verticalLayout_13.addLayout(self.formLayout_2)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap(_fromUtf8(":/PCboard.svg")),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.modbusTab_2, icon10, _fromUtf8(""))
        self.horizontalLayout.addWidget(self.tabWidget)
        self.horizontalLayout.setStretch(0, 2)
        self.horizontalLayout.setStretch(6, 7)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.verticalLayout_3.setStretch(0, 2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 912, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuHelp = QtGui.QMenu(self.menubar)
        self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionExit = QtGui.QAction(MainWindow)
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap(_fromUtf8(":/application-exit.svg")),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionExit.setIcon(icon11)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionSave_Daq = QtGui.QAction(MainWindow)
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap(_fromUtf8(":/stock_save.svg")),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSave_Daq.setIcon(icon12)
        self.actionSave_Daq.setObjectName(_fromUtf8("actionSave_Daq"))
        self.actionReset_DAQ = QtGui.QAction(MainWindow)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap(_fromUtf8(":/gtk-refresh.svg")),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionReset_DAQ.setIcon(icon13)
        self.actionReset_DAQ.setObjectName(_fromUtf8("actionReset_DAQ"))
        self.actionAbout = QtGui.QAction(MainWindow)
        icon14 = QtGui.QIcon()
        icon14.addPixmap(QtGui.QPixmap(_fromUtf8(":/help-about.svg")),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionAbout.setIcon(icon14)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.actionHelp = QtGui.QAction(MainWindow)
        icon15 = QtGui.QIcon()
        icon15.addPixmap(QtGui.QPixmap(_fromUtf8(":/gnome-help.svg")),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionHelp.setIcon(icon15)
        self.actionHelp.setObjectName(_fromUtf8("actionHelp"))
        self.menuFile.addAction(self.actionSave_Daq)
        self.menuFile.addAction(self.actionReset_DAQ)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionExit)
        self.menuHelp.addAction(self.actionAbout)
        self.menuHelp.addAction(self.actionHelp)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())
        self.toolBar.addAction(self.actionReset_DAQ)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionSave_Daq)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionExit)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionAbout)
        self.toolBar.addAction(self.actionHelp)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(3)
        self.baudComboBox.setCurrentIndex(2)
        self.ParityComboBox.setCurrentIndex(0)
        self.dataBitsComboBox.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 37
0
    def setupUi(self, NWAViewerWindow):
        NWAViewerWindow.setObjectName("NWAViewerWindow")
        NWAViewerWindow.resize(946, 819)
        self.centralwidget = QtGui.QWidget(NWAViewerWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.fileLabel = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.fileLabel.sizePolicy().hasHeightForWidth())
        self.fileLabel.setSizePolicy(sizePolicy)
        self.fileLabel.setObjectName("fileLabel")
        self.horizontalLayout.addWidget(self.fileLabel)
        self.linearCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.linearCheckBox.setObjectName("linearCheckBox")
        self.horizontalLayout.addWidget(self.linearCheckBox)
        self.fileButton = QtGui.QPushButton(self.centralwidget)
        self.fileButton.setObjectName("fileButton")
        self.horizontalLayout.addWidget(self.fileButton)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.curvewidget = CurveWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.curvewidget.sizePolicy().hasHeightForWidth())
        self.curvewidget.setSizePolicy(sizePolicy)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName("curvewidget")
        self.verticalLayout.addWidget(self.curvewidget)
        self.curvewidget2 = CurveWidget(self.centralwidget)
        self.curvewidget2.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget2.setObjectName("curvewidget2")
        self.verticalLayout.addWidget(self.curvewidget2)
        NWAViewerWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(NWAViewerWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 946, 22))
        self.menubar.setObjectName("menubar")
        NWAViewerWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(NWAViewerWindow)
        self.statusbar.setObjectName("statusbar")
        NWAViewerWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(NWAViewerWindow)
        self.toolBar.setObjectName("toolBar")
        NWAViewerWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)

        self.retranslateUi(NWAViewerWindow)
        QtCore.QMetaObject.connectSlotsByName(NWAViewerWindow)
Esempio n. 38
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.setEnabled(True)
        MainWindow.resize(1268, 918)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setStrikeOut(False)
        font.setKerning(True)
        MainWindow.setFont(font)
        MainWindow.setMouseTracking(False)
        MainWindow.setIconSize(QtCore.QSize(24, 24))
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout_2 = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.gridLayout_4 = QtGui.QGridLayout(self.tab)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.scrollArea = QtGui.QScrollArea(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.scrollArea.sizePolicy().hasHeightForWidth())
        self.scrollArea.setSizePolicy(sizePolicy)
        self.scrollArea.setWidgetResizable(False)
        self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(
            0, 0, 1220, 830))
        self.scrollAreaWidgetContents.setObjectName(
            _fromUtf8("scrollAreaWidgetContents"))
        self.pushButton_Refresh = QtGui.QPushButton(
            self.scrollAreaWidgetContents)
        self.pushButton_Refresh.setGeometry(QtCore.QRect(320, 560, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Refresh.setFont(font)
        self.pushButton_Refresh.setObjectName(_fromUtf8("pushButton_Refresh"))
        self.label_Current_Visa = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_Current_Visa.setGeometry(QtCore.QRect(40, 620, 131, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_Current_Visa.setFont(font)
        self.label_Current_Visa.setObjectName(_fromUtf8("label_Current_Visa"))
        self.label_Meas_Type = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_Meas_Type.setGeometry(QtCore.QRect(40, 680, 301, 21))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_Meas_Type.setFont(font)
        self.label_Meas_Type.setObjectName(_fromUtf8("label_Meas_Type"))
        self.pushButton_Select_Visa = QtGui.QPushButton(
            self.scrollAreaWidgetContents)
        self.pushButton_Select_Visa.setGeometry(QtCore.QRect(320, 600, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Select_Visa.setFont(font)
        self.pushButton_Select_Visa.setObjectName(
            _fromUtf8("pushButton_Select_Visa"))
        self.label_2 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_2.setGeometry(QtCore.QRect(370, 700, 91, 51))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.lineEdit_Steps = QtGui.QLineEdit(self.scrollAreaWidgetContents)
        self.lineEdit_Steps.setGeometry(QtCore.QRect(730, 650, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_Steps.setFont(font)
        self.lineEdit_Steps.setObjectName(_fromUtf8("lineEdit_Steps"))
        self.groupBox_Filename = QtGui.QGroupBox(self.scrollAreaWidgetContents)
        self.groupBox_Filename.setGeometry(QtCore.QRect(840, 730, 271, 91))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.groupBox_Filename.setFont(font)
        self.groupBox_Filename.setObjectName(_fromUtf8("groupBox_Filename"))
        self.radioButton_Timename = QtGui.QRadioButton(self.groupBox_Filename)
        self.radioButton_Timename.setGeometry(QtCore.QRect(20, 20, 151, 21))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.radioButton_Timename.setFont(font)
        self.radioButton_Timename.setObjectName(
            _fromUtf8("radioButton_Timename"))
        self.radioButton_Custom_Name = QtGui.QRadioButton(
            self.groupBox_Filename)
        self.radioButton_Custom_Name.setGeometry(QtCore.QRect(20, 50, 121, 21))
        self.radioButton_Custom_Name.setObjectName(
            _fromUtf8("radioButton_Custom_Name"))
        self.lineEdit_Custom_Name = QtGui.QLineEdit(self.groupBox_Filename)
        self.lineEdit_Custom_Name.setGeometry(QtCore.QRect(120, 50, 141, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_Custom_Name.setFont(font)
        self.lineEdit_Custom_Name.setObjectName(
            _fromUtf8("lineEdit_Custom_Name"))
        self.lineEdit_Points = QtGui.QLineEdit(self.scrollAreaWidgetContents)
        self.lineEdit_Points.setGeometry(QtCore.QRect(730, 560, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_Points.setFont(font)
        self.lineEdit_Points.setObjectName(_fromUtf8("lineEdit_Points"))
        self.lineEdit_Error = QtGui.QLineEdit(self.scrollAreaWidgetContents)
        self.lineEdit_Error.setGeometry(QtCore.QRect(450, 710, 371, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_Error.setFont(font)
        self.lineEdit_Error.setObjectName(_fromUtf8("lineEdit_Error"))
        self.pushButton_Start = QtGui.QPushButton(
            self.scrollAreaWidgetContents)
        self.pushButton_Start.setGeometry(QtCore.QRect(510, 780, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Start.setFont(font)
        self.pushButton_Start.setObjectName(_fromUtf8("pushButton_Start"))
        self.comboBox_All_Visas = QtGui.QComboBox(
            self.scrollAreaWidgetContents)
        self.comboBox_All_Visas.setGeometry(QtCore.QRect(40, 580, 261, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.comboBox_All_Visas.setFont(font)
        self.comboBox_All_Visas.setObjectName(_fromUtf8("comboBox_All_Visas"))
        self.pushButton_Select_Directory = QtGui.QPushButton(
            self.scrollAreaWidgetContents)
        self.pushButton_Select_Directory.setGeometry(
            QtCore.QRect(1070, 690, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Select_Directory.setFont(font)
        self.pushButton_Select_Directory.setObjectName(
            _fromUtf8("pushButton_Select_Directory"))
        self.pushButton_Select_Measurement = QtGui.QPushButton(
            self.scrollAreaWidgetContents)
        self.pushButton_Select_Measurement.setGeometry(
            QtCore.QRect(250, 710, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Select_Measurement.setFont(font)
        self.pushButton_Select_Measurement.setObjectName(
            _fromUtf8("pushButton_Select_Measurement"))
        self.label_4 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_4.setGeometry(QtCore.QRect(850, 670, 201, 20))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.checkBox_Continue = QtGui.QCheckBox(self.scrollAreaWidgetContents)
        self.checkBox_Continue.setGeometry(QtCore.QRect(480, 580, 201, 41))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.checkBox_Continue.setFont(font)
        self.checkBox_Continue.setObjectName(_fromUtf8("checkBox_Continue"))
        self.pushButton_Browse = QtGui.QPushButton(
            self.scrollAreaWidgetContents)
        self.pushButton_Browse.setGeometry(QtCore.QRect(850, 560, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Browse.setFont(font)
        self.pushButton_Browse.setObjectName(_fromUtf8("pushButton_Browse"))
        self.label = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label.setGeometry(QtCore.QRect(40, 550, 231, 31))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.comboBox_Meas_Type = QtGui.QComboBox(
            self.scrollAreaWidgetContents)
        self.comboBox_Meas_Type.setGeometry(QtCore.QRect(40, 710, 191, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.comboBox_Meas_Type.setFont(font)
        self.comboBox_Meas_Type.setObjectName(_fromUtf8("comboBox_Meas_Type"))
        self.comboBox_Meas_Type.addItem(_fromUtf8(""))
        self.comboBox_Meas_Type.addItem(_fromUtf8(""))
        self.comboBox_Meas_Type.addItem(_fromUtf8(""))
        self.comboBox_Meas_Type.addItem(_fromUtf8(""))
        self.comboBox_Meas_Type.addItem(_fromUtf8(""))
        self.comboBox_Meas_Type.addItem(_fromUtf8(""))
        self.groupBox_File_Type = QtGui.QGroupBox(
            self.scrollAreaWidgetContents)
        self.groupBox_File_Type.setGeometry(QtCore.QRect(970, 550, 221, 51))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.groupBox_File_Type.setFont(font)
        self.groupBox_File_Type.setObjectName(_fromUtf8("groupBox_File_Type"))
        self.radioButton_csv = QtGui.QRadioButton(self.groupBox_File_Type)
        self.radioButton_csv.setGeometry(QtCore.QRect(40, 20, 61, 31))
        self.radioButton_csv.setObjectName(_fromUtf8("radioButton_csv"))
        self.radioButton_txt = QtGui.QRadioButton(self.groupBox_File_Type)
        self.radioButton_txt.setGeometry(QtCore.QRect(100, 20, 61, 31))
        self.radioButton_txt.setObjectName(_fromUtf8("radioButton_txt"))
        self.label_CurrentMeasurement = QtGui.QLabel(
            self.scrollAreaWidgetContents)
        self.label_CurrentMeasurement.setGeometry(
            QtCore.QRect(40, 770, 241, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_CurrentMeasurement.setFont(font)
        self.label_CurrentMeasurement.setText(_fromUtf8(""))
        self.label_CurrentMeasurement.setObjectName(
            _fromUtf8("label_CurrentMeasurement"))
        self.pushButton_Save = QtGui.QPushButton(self.scrollAreaWidgetContents)
        self.pushButton_Save.setGeometry(QtCore.QRect(1120, 750, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Save.setFont(font)
        self.pushButton_Save.setObjectName(_fromUtf8("pushButton_Save"))
        self.lineEdit_OneDrive = QtGui.QLineEdit(self.scrollAreaWidgetContents)
        self.lineEdit_OneDrive.setGeometry(QtCore.QRect(850, 630, 361, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_OneDrive.setFont(font)
        self.lineEdit_OneDrive.setObjectName(_fromUtf8("lineEdit_OneDrive"))
        self.label_3 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_3.setGeometry(QtCore.QRect(850, 600, 171, 21))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.label_CurrentVisa = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_CurrentVisa.setGeometry(QtCore.QRect(40, 640, 361, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_CurrentVisa.setFont(font)
        self.label_CurrentVisa.setText(_fromUtf8(""))
        self.label_CurrentVisa.setObjectName(_fromUtf8("label_CurrentVisa"))
        self.comboBox_Name_Folder = QtGui.QComboBox(
            self.scrollAreaWidgetContents)
        self.comboBox_Name_Folder.setGeometry(QtCore.QRect(850, 690, 191, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.comboBox_Name_Folder.setFont(font)
        self.comboBox_Name_Folder.setObjectName(
            _fromUtf8("comboBox_Name_Folder"))
        self.comboBox_Name_Folder.addItem(_fromUtf8(""))
        self.comboBox_Name_Folder.addItem(_fromUtf8(""))
        self.comboBox_Name_Folder.addItem(_fromUtf8(""))
        self.comboBox_Name_Folder.addItem(_fromUtf8(""))
        self.comboBox_Name_Folder.addItem(_fromUtf8(""))
        self.label_Meas_Points = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_Meas_Points.setGeometry(QtCore.QRect(450, 560, 271, 21))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_Meas_Points.setFont(font)
        self.label_Meas_Points.setObjectName(_fromUtf8("label_Meas_Points"))
        self.label_second = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_second.setGeometry(QtCore.QRect(810, 660, 41, 20))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_second.setFont(font)
        self.label_second.setObjectName(_fromUtf8("label_second"))
        self.pushButton_Stop = QtGui.QPushButton(self.scrollAreaWidgetContents)
        self.pushButton_Stop.setGeometry(QtCore.QRect(630, 780, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_Stop.setFont(font)
        self.pushButton_Stop.setObjectName(_fromUtf8("pushButton_Stop"))
        self.label_Meas_Delay = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_Meas_Delay.setGeometry(QtCore.QRect(450, 650, 281, 31))
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_Meas_Delay.setFont(font)
        self.label_Meas_Delay.setObjectName(_fromUtf8("label_Meas_Delay"))
        self.curvewidgetPlot = CurveWidget(self.scrollAreaWidgetContents)
        self.curvewidgetPlot.setGeometry(QtCore.QRect(210, 40, 771, 471))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.curvewidgetPlot.setFont(font)
        self.curvewidgetPlot.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidgetPlot.setObjectName(_fromUtf8("curvewidgetPlot"))
        self.label_Step_Reminder = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_Step_Reminder.setGeometry(QtCore.QRect(470, 670, 261, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_Step_Reminder.setFont(font)
        self.label_Step_Reminder.setText(_fromUtf8(""))
        self.label_Step_Reminder.setObjectName(
            _fromUtf8("label_Step_Reminder"))
        self.label_Current_Measurement = QtGui.QLabel(
            self.scrollAreaWidgetContents)
        self.label_Current_Measurement.setGeometry(
            QtCore.QRect(40, 750, 131, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_Current_Measurement.setFont(font)
        self.label_Current_Measurement.setObjectName(
            _fromUtf8("label_Current_Measurement"))
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.gridLayout_3.addWidget(self.scrollArea, 0, 0, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_3, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionCopy = QtGui.QAction(MainWindow)
        self.actionCopy.setObjectName(_fromUtf8("actionCopy"))
        self.actionSave = QtGui.QAction(MainWindow)
        self.actionSave.setObjectName(_fromUtf8("actionSave"))
        self.actionQuit = QtGui.QAction(MainWindow)
        self.actionQuit.setObjectName(_fromUtf8("actionQuit"))

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 39
0
class CentralWidget(QSplitter):
    def __init__(self, parent, settings, toolbar, start_freq, bandwidth,
                 numpts, dev):
        QSplitter.__init__(self, parent)
        self.setContentsMargins(10, 10, 10, 10)
        self.setOrientation(Qt.Vertical)
        self.curvewidget = CurveWidget(self)
        self.item = {}
        self.points = []
        self.max_hold = False
        self.do_log = True
        self.colours = ['b', 'r', 'c', 'y']
        self.legend = None
        self.settings = settings

        self.curvewidget.add_toolbar(toolbar, "default")
        self.curvewidget.register_all_image_tools()
        self.curvewidget.plot.set_axis_title(BasePlot.X_BOTTOM, 'Frequency')

        self.addWidget(self.curvewidget)
        self.prog = QProgressBar()
        self.prog.setMaximumHeight(32)
        self.addWidget(self.prog)
        self.setStretchFactor(0, 0)
        self.setStretchFactor(1, 0)
        self.setStretchFactor(2, 1)
        self.setHandleWidth(10)
        self.setSizes([1, 5, 1])

        if start_freq is None:
            start_freq = float(
                self.settings.value('spectrum/start_freq', 190e6))

        if bandwidth is None:
            bandwidth = float(self.settings.value('spectrum/bandwidth', 50e6))

        if numpts is None:
            numpts = int(self.settings.value('spectrum/num_samps', 6000))

        print start_freq, bandwidth, numpts

        self.settings.setValue('spectrum/start_freq', start_freq)
        self.settings.setValue('spectrum/bandwidth', bandwidth)
        self.settings.setValue('spectrum/num_samps', numpts)

        self.bg7 = BG7(start_freq, bandwidth, numpts, sport=dev)

        self.reset_data()

        self.bg7.measurement_progress.connect(self.measurement_progress)
        self.bg7.measurement_complete.connect(self.measurement_complete)

        self.bg7.start()

    def reset_data(self):
        self.count_data = 0
        self.raw_data = {}
        self.raw_data['Latest'] = {}
        self.raw_data['Max'] = {}
        self.raw_data['Mean'] = {}
        self.raw_data['Max']['data'] = None
        self.raw_data['Logged'] = self.bg7.log_mode

    def measurement_progress(self, val):
        self.prog.setValue(int(val))

    def measurement_complete(self, data, start_freq, step_size, num_samples):
        print 'cback', start_freq, step_size
        # data, start_freq, step_size, num_samples = cback_data
        if data is not None:
            if 'Cal Data' in self.raw_data.keys():
                self.raw_data['Latest'][
                    'data'] = data[:] - self.raw_data['Cal Data']['data']
            else:
                self.raw_data['Latest']['data'] = data[:]
            self.raw_data['Latest']['freqs'] = (np.arange(num_samples) *
                                                step_size) + start_freq
            self.raw_data['Latest']['freq_units'] = 'MHz'
            if self.raw_data['Latest']['freqs'][num_samples / 2] > 1e9:
                self.raw_data['Latest']['freqs'] /= 1e9
                self.raw_data['Latest']['freq_units'] = 'GHz'
            else:
                self.raw_data['Latest']['freqs'] /= 1e6

            self.curvewidget.plot.set_axis_unit(
                BasePlot.X_BOTTOM, self.raw_data['Latest']['freq_units'])

            self.show_data('Latest')

            if self.count_data == 0:
                self.raw_data['Mean'][
                    'data'] = self.raw_data['Latest']['data'] * 1.0
            else:
                self.raw_data['Mean']['data'] = ((
                    (self.raw_data['Mean']['data'] * self.count_data) +
                    self.raw_data['Latest']['data']) / (self.count_data + 1.0))
            self.count_data += 1

            self.show_data('Mean')

            if self.max_hold:
                if self.raw_data['Max']['data'] is None:
                    self.raw_data['Max']['data'] = self.raw_data['Latest'][
                        'data']
                else:
                    self.raw_data['Max']['data'][:] = np.maximum(
                        self.raw_data['Max']['data'],
                        self.raw_data['Latest']['data'])
                    self.show_data('Max')

            if 'Cal Data' in self.raw_data.keys():
                self.show_data('Cal Data')

        self.bg7.start()

    def save_cal_data(self, fname):
        fp = open(fname, 'wb')
        cPickle.dump(self.raw_data, fp)
        fp.close()
        self.settings.setValue('spectrum/file_dir', os.path.dirname(fname))

    def load_cal_data(self, fname):
        fp = open(fname, 'rb')
        cal_data = cPickle.load(fp)
        # Add some checks to make sure cal data is valid for our current setup
        self.raw_data['Cal Data'] = {}
        self.raw_data['Cal Data']['data'] = cal_data['Mean']['data'][:]
        fp.close()
        self.settings.setValue('spectrum/file_dir', os.path.dirname(fname))

    def axes_changed(self, plot):
        pass

    def show_data(self, label):
        data = self.raw_data[label]['data']
        xaxis = self.raw_data['Latest']['freqs']
        print 'xmin', np.min(xaxis), np.max(xaxis)

        self.dshape = data.shape[0]

        vals = np.log10(data.shape[0])
        if vals > 4:
            fact = 10**int(vals - 4)
            n = int(data.shape[0] / fact)
            print 'Factor', fact, 'N', n

            s = data[0:n * fact].reshape(n, fact)
            data = np.mean(s, axis=1)

            s = xaxis[0:n * fact].reshape(n, fact)
            xaxis = np.mean(s, axis=1)

        print 'Min', np.min(data), 'Max', np.max(data), data.shape
        print 'dshape', self.dshape
        if label in self.item.keys():
            if self.do_log:
                self.item[label].set_data(xaxis, data)
            else:
                self.item[label].set_data(xaxis, np.log10(data))
        else:
            if self.do_log:
                self.item[label] = make.curve(
                    xaxis,
                    data,
                    color=self.colours[len(self.item) % len(self.colours)],
                    title=label)
            else:
                self.item[label] = make.curve(
                    xaxis,
                    data,
                    color=self.colours[len(self.item) % len(self.colours)],
                    title=label)

            self.curvewidget.plot.add_item(self.item[label])
            self.curvewidget.plot.set_antialiasing(True)
            if self.legend is None:
                self.legend = make.legend("TR")
                self.curvewidget.plot.add_item(self.legend)

        self.item[label].plot().replot()

    def rescan(self):
        print self.curvewidget.plot.get_axis_limits(BasePlot.X_BOTTOM)
        ax = self.curvewidget.plot.get_axis_limits(BasePlot.X_BOTTOM)
        un = self.curvewidget.plot.get_axis_unit(BasePlot.X_BOTTOM)
        if un == 'MHz':
            factor = 1e6
        elif un == 'GHz':
            factor = 1e9
        else:
            factor = 1.0

        self.reset_data()

        self.bg7.setParams(ax[0] * factor, (ax[1] - ax[0]) * factor)

        self.settings.setValue('spectrum/start_freq', ax[0] * factor)
        self.settings.setValue('spectrum/bandwidth', (ax[1] - ax[0]) * factor)

        #self.bg7.start()

    def do_max_hold(self):
        self.max_hold = not self.max_hold
        self.settings.setValue('gui/max_hold', self.max_hold)

    def do_log_lin(self, new_state):
        self.bg7.do_log(new_state)
        self.reset_data()

        # self.settings.setValue('gui/log_lin', new_state)

    def do_new_plot(self):
        pass
Esempio n. 40
0
    def setupUi(self, SpectrumAnalyzerWindow):
        SpectrumAnalyzerWindow.setObjectName(_fromUtf8("SpectrumAnalyzerWindow"))
        SpectrumAnalyzerWindow.resize(813, 321)
        self.centralwidget = QtGui.QWidget(SpectrumAnalyzerWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setGeometry(QtCore.QRect(190, 10, 471, 251))
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.clearButton = QtGui.QPushButton(self.centralwidget)
        self.clearButton.setGeometry(QtCore.QRect(680, 10, 121, 61))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.clearButton.setFont(font)
        self.clearButton.setObjectName(_fromUtf8("clearButton"))
        self.layoutWidget = QtGui.QWidget(self.centralwidget)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 10, 164, 251))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.powerLCD = QtGui.QLCDNumber(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.powerLCD.setFont(font)
        self.powerLCD.setFrameShape(QtGui.QFrame.Panel)
        self.powerLCD.setFrameShadow(QtGui.QFrame.Raised)
        self.powerLCD.setLineWidth(1)
        self.powerLCD.setMidLineWidth(-2)
        self.powerLCD.setSegmentStyle(QtGui.QLCDNumber.Flat)
        self.powerLCD.setObjectName(_fromUtf8("powerLCD"))
        self.verticalLayout.addWidget(self.powerLCD)
        self.label_2 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout.addWidget(self.label_2)
        self.instantRButton = QtGui.QRadioButton(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.instantRButton.setFont(font)
        self.instantRButton.setChecked(True)
        self.instantRButton.setObjectName(_fromUtf8("instantRButton"))
        self.powerReadingButtonGroup = QtGui.QButtonGroup(SpectrumAnalyzerWindow)
        self.powerReadingButtonGroup.setObjectName(_fromUtf8("powerReadingButtonGroup"))
        self.powerReadingButtonGroup.addButton(self.instantRButton)
        self.verticalLayout.addWidget(self.instantRButton)
        self.averageRButton = QtGui.QRadioButton(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.averageRButton.setFont(font)
        self.averageRButton.setObjectName(_fromUtf8("averageRButton"))
        self.powerReadingButtonGroup.addButton(self.averageRButton)
        self.verticalLayout.addWidget(self.averageRButton)
        self.label_3 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout.addWidget(self.label_3)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.updateRateSpinBox = QtGui.QDoubleSpinBox(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.updateRateSpinBox.setFont(font)
        self.updateRateSpinBox.setMinimum(0.01)
        self.updateRateSpinBox.setMaximum(1000.0)
        self.updateRateSpinBox.setSingleStep(0.01)
        self.updateRateSpinBox.setObjectName(_fromUtf8("updateRateSpinBox"))
        self.horizontalLayout.addWidget(self.updateRateSpinBox)
        self.label_4 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout.addWidget(self.label_4)
        self.verticalLayout.addLayout(self.horizontalLayout)
        SpectrumAnalyzerWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(SpectrumAnalyzerWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 813, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        SpectrumAnalyzerWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(SpectrumAnalyzerWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        SpectrumAnalyzerWindow.setStatusBar(self.statusbar)

        self.retranslateUi(SpectrumAnalyzerWindow)
        QtCore.QMetaObject.connectSlotsByName(SpectrumAnalyzerWindow)
Esempio n. 41
0
class Ui_ScopeWindow(object):
    def setupUi(self, ScopeWindow):
        ScopeWindow.setObjectName(_fromUtf8("ScopeWindow"))
        ScopeWindow.resize(1104, 737)
        self.centralwidget = QtGui.QWidget(ScopeWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.ScopeSettings = QtGui.QGroupBox(self.centralwidget)
        self.ScopeSettings.setObjectName(_fromUtf8("ScopeSettings"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.ScopeSettings)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.SampleSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.SampleSettings.sizePolicy().hasHeightForWidth())
        self.SampleSettings.setSizePolicy(sizePolicy)
        self.SampleSettings.setObjectName(_fromUtf8("SampleSettings"))
        self.gridLayout = QtGui.QGridLayout(self.SampleSettings)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(self.SampleSettings)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.samplesSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.samplesSpinBox.setMinimum(32)
        self.samplesSpinBox.setMaximum(999999999)
        self.samplesSpinBox.setSingleStep(64)
        self.samplesSpinBox.setProperty("value", 1024)
        self.samplesSpinBox.setObjectName(_fromUtf8("samplesSpinBox"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.samplesSpinBox)
        self.label_2 = QtGui.QLabel(self.SampleSettings)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
        self.recordsSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.recordsSpinBox.setMinimum(1)
        self.recordsSpinBox.setMaximum(999999999)
        self.recordsSpinBox.setObjectName(_fromUtf8("recordsSpinBox"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.recordsSpinBox)
        self.label_3 = QtGui.QLabel(self.SampleSettings)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
        self.buffersSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.buffersSpinBox.setMinimum(1)
        self.buffersSpinBox.setMaximum(999999999)
        self.buffersSpinBox.setObjectName(_fromUtf8("buffersSpinBox"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.buffersSpinBox)
        self.label_21 = QtGui.QLabel(self.SampleSettings)
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_21)
        self.recordsPerAcquisitionSpinBox = QtGui.QSpinBox(self.SampleSettings)
        self.recordsPerAcquisitionSpinBox.setMinimum(1)
        self.recordsPerAcquisitionSpinBox.setMaximum(999999999)
        self.recordsPerAcquisitionSpinBox.setProperty("value", 1)
        self.recordsPerAcquisitionSpinBox.setObjectName(_fromUtf8("recordsPerAcquisitionSpinBox"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.recordsPerAcquisitionSpinBox)
        self.gridLayout.addLayout(self.formLayout, 0, 0, 1, 1)
        self.verticalLayout_5.addWidget(self.SampleSettings)
        self.VerticalSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.VerticalSettings.sizePolicy().hasHeightForWidth())
        self.VerticalSettings.setSizePolicy(sizePolicy)
        self.VerticalSettings.setObjectName(_fromUtf8("VerticalSettings"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.VerticalSettings)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.Ch1Vertical = QtGui.QGroupBox(self.VerticalSettings)
        self.Ch1Vertical.setObjectName(_fromUtf8("Ch1Vertical"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.Ch1Vertical)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.formLayout_5 = QtGui.QFormLayout()
        self.formLayout_5.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_5.setObjectName(_fromUtf8("formLayout_5"))
        self.ch1_enabledCheckBox = QtGui.QCheckBox(self.Ch1Vertical)
        self.ch1_enabledCheckBox.setChecked(True)
        self.ch1_enabledCheckBox.setObjectName(_fromUtf8("ch1_enabledCheckBox"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.LabelRole, self.ch1_enabledCheckBox)
        self.ch1_filteredCheckBox = QtGui.QCheckBox(self.Ch1Vertical)
        self.ch1_filteredCheckBox.setObjectName(_fromUtf8("ch1_filteredCheckBox"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.FieldRole, self.ch1_filteredCheckBox)
        self.label_16 = QtGui.QLabel(self.Ch1Vertical)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_16)
        self.ch1_rangeComboBox = QtGui.QComboBox(self.Ch1Vertical)
        self.ch1_rangeComboBox.setObjectName(_fromUtf8("ch1_rangeComboBox"))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.ch1_rangeComboBox.addItem(_fromUtf8(""))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole, self.ch1_rangeComboBox)
        self.label_17 = QtGui.QLabel(self.Ch1Vertical)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_17)
        self.ch1_couplingComboBox = QtGui.QComboBox(self.Ch1Vertical)
        self.ch1_couplingComboBox.setObjectName(_fromUtf8("ch1_couplingComboBox"))
        self.ch1_couplingComboBox.addItem(_fromUtf8(""))
        self.ch1_couplingComboBox.addItem(_fromUtf8(""))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole, self.ch1_couplingComboBox)
        self.verticalLayout_3.addLayout(self.formLayout_5)
        self.horizontalLayout_2.addWidget(self.Ch1Vertical)
        self.Ch2Vertical = QtGui.QGroupBox(self.VerticalSettings)
        self.Ch2Vertical.setObjectName(_fromUtf8("Ch2Vertical"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.Ch2Vertical)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.formLayout_6 = QtGui.QFormLayout()
        self.formLayout_6.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_6.setObjectName(_fromUtf8("formLayout_6"))
        self.ch2_enabledCheckBox = QtGui.QCheckBox(self.Ch2Vertical)
        self.ch2_enabledCheckBox.setChecked(True)
        self.ch2_enabledCheckBox.setObjectName(_fromUtf8("ch2_enabledCheckBox"))
        self.formLayout_6.setWidget(0, QtGui.QFormLayout.LabelRole, self.ch2_enabledCheckBox)
        self.ch2_filteredCheckBox = QtGui.QCheckBox(self.Ch2Vertical)
        self.ch2_filteredCheckBox.setObjectName(_fromUtf8("ch2_filteredCheckBox"))
        self.formLayout_6.setWidget(0, QtGui.QFormLayout.FieldRole, self.ch2_filteredCheckBox)
        self.label_18 = QtGui.QLabel(self.Ch2Vertical)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout_6.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_18)
        self.ch2_rangeComboBox = QtGui.QComboBox(self.Ch2Vertical)
        self.ch2_rangeComboBox.setObjectName(_fromUtf8("ch2_rangeComboBox"))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.ch2_rangeComboBox.addItem(_fromUtf8(""))
        self.formLayout_6.setWidget(1, QtGui.QFormLayout.FieldRole, self.ch2_rangeComboBox)
        self.label_19 = QtGui.QLabel(self.Ch2Vertical)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.formLayout_6.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_19)
        self.ch2_couplingComboBox = QtGui.QComboBox(self.Ch2Vertical)
        self.ch2_couplingComboBox.setObjectName(_fromUtf8("ch2_couplingComboBox"))
        self.ch2_couplingComboBox.addItem(_fromUtf8(""))
        self.ch2_couplingComboBox.addItem(_fromUtf8(""))
        self.formLayout_6.setWidget(2, QtGui.QFormLayout.FieldRole, self.ch2_couplingComboBox)
        self.verticalLayout_4.addLayout(self.formLayout_6)
        self.horizontalLayout_2.addWidget(self.Ch2Vertical)
        self.verticalLayout_5.addWidget(self.VerticalSettings)
        self.ClockSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ClockSettings.sizePolicy().hasHeightForWidth())
        self.ClockSettings.setSizePolicy(sizePolicy)
        self.ClockSettings.setObjectName(_fromUtf8("ClockSettings"))
        self.verticalLayout = QtGui.QVBoxLayout(self.ClockSettings)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_6 = QtGui.QLabel(self.ClockSettings)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_6)
        self.samplerateComboBox = QtGui.QComboBox(self.ClockSettings)
        self.samplerateComboBox.setObjectName(_fromUtf8("samplerateComboBox"))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.samplerateComboBox.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.samplerateComboBox)
        self.label_4 = QtGui.QLabel(self.ClockSettings)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_4)
        self.clocksourceComboBox = QtGui.QComboBox(self.ClockSettings)
        self.clocksourceComboBox.setObjectName(_fromUtf8("clocksourceComboBox"))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.clocksourceComboBox.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.clocksourceComboBox)
        self.label_5 = QtGui.QLabel(self.ClockSettings)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_5)
        self.clockedgeComboBox = QtGui.QComboBox(self.ClockSettings)
        self.clockedgeComboBox.setObjectName(_fromUtf8("clockedgeComboBox"))
        self.clockedgeComboBox.addItem(_fromUtf8(""))
        self.clockedgeComboBox.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.clockedgeComboBox)
        self.label_10 = QtGui.QLabel(self.ClockSettings)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_10)
        self.timeoutSpinBox = QtGui.QSpinBox(self.ClockSettings)
        self.timeoutSpinBox.setMaximum(1000000000)
        self.timeoutSpinBox.setProperty("value", 5000)
        self.timeoutSpinBox.setObjectName(_fromUtf8("timeoutSpinBox"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole, self.timeoutSpinBox)
        self.verticalLayout.addLayout(self.formLayout_2)
        self.verticalLayout_5.addWidget(self.ClockSettings)
        self.TriggerSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.TriggerSettings.sizePolicy().hasHeightForWidth())
        self.TriggerSettings.setSizePolicy(sizePolicy)
        self.TriggerSettings.setObjectName(_fromUtf8("TriggerSettings"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.TriggerSettings)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.formLayout_3 = QtGui.QFormLayout()
        self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_7 = QtGui.QLabel(self.TriggerSettings)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_7)
        self.trig1_sourceComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig1_sourceComboBox.setObjectName(_fromUtf8("trig1_sourceComboBox"))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.trig1_sourceComboBox.addItem(_fromUtf8(""))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.trig1_sourceComboBox)
        self.trig1_edgeComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig1_edgeComboBox.setObjectName(_fromUtf8("trig1_edgeComboBox"))
        self.trig1_edgeComboBox.addItem(_fromUtf8(""))
        self.trig1_edgeComboBox.addItem(_fromUtf8(""))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.trig1_edgeComboBox)
        self.label_9 = QtGui.QLabel(self.TriggerSettings)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_9)
        self.trig1_levelSpinBox = QtGui.QDoubleSpinBox(self.TriggerSettings)
        self.trig1_levelSpinBox.setProperty("value", 1.0)
        self.trig1_levelSpinBox.setObjectName(_fromUtf8("trig1_levelSpinBox"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.trig1_levelSpinBox)
        self.label_11 = QtGui.QLabel(self.TriggerSettings)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_11)
        self.trigCouplingComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trigCouplingComboBox.setObjectName(_fromUtf8("trigCouplingComboBox"))
        self.trigCouplingComboBox.addItem(_fromUtf8(""))
        self.trigCouplingComboBox.addItem(_fromUtf8(""))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.trigCouplingComboBox)
        self.label_8 = QtGui.QLabel(self.TriggerSettings)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_8)
        self.horizontalLayout.addLayout(self.formLayout_3)
        self.formLayout_4 = QtGui.QFormLayout()
        self.formLayout_4.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_4.setObjectName(_fromUtf8("formLayout_4"))
        self.label_12 = QtGui.QLabel(self.TriggerSettings)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_12)
        self.trig2_sourceComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig2_sourceComboBox.setObjectName(_fromUtf8("trig2_sourceComboBox"))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.trig2_sourceComboBox.addItem(_fromUtf8(""))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole, self.trig2_sourceComboBox)
        self.trig2_edgeComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trig2_edgeComboBox.setObjectName(_fromUtf8("trig2_edgeComboBox"))
        self.trig2_edgeComboBox.addItem(_fromUtf8(""))
        self.trig2_edgeComboBox.addItem(_fromUtf8(""))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole, self.trig2_edgeComboBox)
        self.label_13 = QtGui.QLabel(self.TriggerSettings)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_13)
        self.trig2_levelSpinBox = QtGui.QDoubleSpinBox(self.TriggerSettings)
        self.trig2_levelSpinBox.setProperty("value", 1.0)
        self.trig2_levelSpinBox.setObjectName(_fromUtf8("trig2_levelSpinBox"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole, self.trig2_levelSpinBox)
        self.label_14 = QtGui.QLabel(self.TriggerSettings)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_14)
        self.label_15 = QtGui.QLabel(self.TriggerSettings)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_15)
        self.trigOpComboBox = QtGui.QComboBox(self.TriggerSettings)
        self.trigOpComboBox.setObjectName(_fromUtf8("trigOpComboBox"))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.trigOpComboBox.addItem(_fromUtf8(""))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.FieldRole, self.trigOpComboBox)
        self.horizontalLayout.addLayout(self.formLayout_4)
        self.verticalLayout_6.addLayout(self.horizontalLayout)
        self.verticalLayout_5.addWidget(self.TriggerSettings)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem)
        self.horizontalLayout_5.addWidget(self.ScopeSettings)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.datapathButton = QtGui.QPushButton(self.centralwidget)
        self.datapathButton.setObjectName(_fromUtf8("datapathButton"))
        self.horizontalLayout_3.addWidget(self.datapathButton)
        self.datapathLineEdit = QtGui.QLineEdit(self.centralwidget)
        self.datapathLineEdit.setObjectName(_fromUtf8("datapathLineEdit"))
        self.horizontalLayout_3.addWidget(self.datapathLineEdit)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label_20 = QtGui.QLabel(self.centralwidget)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.horizontalLayout_6.addWidget(self.label_20)
        self.filenumberLabel = QtGui.QLabel(self.centralwidget)
        self.filenumberLabel.setObjectName(_fromUtf8("filenumberLabel"))
        self.horizontalLayout_6.addWidget(self.filenumberLabel)
        self.prefixLineEdit = QtGui.QLineEdit(self.centralwidget)
        self.prefixLineEdit.setObjectName(_fromUtf8("prefixLineEdit"))
        self.horizontalLayout_6.addWidget(self.prefixLineEdit)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.runButton = QtGui.QPushButton(self.centralwidget)
        self.runButton.setObjectName(_fromUtf8("runButton"))
        self.horizontalLayout_4.addWidget(self.runButton)
        self.saveButton = QtGui.QPushButton(self.centralwidget)
        self.saveButton.setObjectName(_fromUtf8("saveButton"))
        self.horizontalLayout_4.addWidget(self.saveButton)
        self.autosaveCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.autosaveCheckBox.setObjectName(_fromUtf8("autosaveCheckBox"))
        self.horizontalLayout_4.addWidget(self.autosaveCheckBox)
        self.autorunCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.autorunCheckBox.setChecked(True)
        self.autorunCheckBox.setObjectName(_fromUtf8("autorunCheckBox"))
        self.horizontalLayout_4.addWidget(self.autorunCheckBox)
        self.PSDCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.PSDCheckBox.setObjectName(_fromUtf8("PSDCheckBox"))
        self.horizontalLayout_4.addWidget(self.PSDCheckBox)
        self.x_autoscaleCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.x_autoscaleCheckBox.setEnabled(False)
        self.x_autoscaleCheckBox.setChecked(True)
        self.x_autoscaleCheckBox.setObjectName(_fromUtf8("x_autoscaleCheckBox"))
        self.horizontalLayout_4.addWidget(self.x_autoscaleCheckBox)
        self.y_autoscaleCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.y_autoscaleCheckBox.setEnabled(False)
        self.y_autoscaleCheckBox.setChecked(True)
        self.y_autoscaleCheckBox.setObjectName(_fromUtf8("y_autoscaleCheckBox"))
        self.horizontalLayout_4.addWidget(self.y_autoscaleCheckBox)
        self.autoscaleCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.autoscaleCheckBox.setChecked(True)
        self.autoscaleCheckBox.setObjectName(_fromUtf8("autoscaleCheckBox"))
        self.horizontalLayout_4.addWidget(self.autoscaleCheckBox)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.verticalLayout_2.addWidget(self.curvewidget)
        self.horizontalLayout_5.addLayout(self.verticalLayout_2)
        ScopeWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(ScopeWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1104, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        ScopeWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(ScopeWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        ScopeWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(ScopeWindow)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        ScopeWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)

        self.retranslateUi(ScopeWindow)
        self.trig1_sourceComboBox.setCurrentIndex(2)
        self.trig2_sourceComboBox.setCurrentIndex(3)
        QtCore.QMetaObject.connectSlotsByName(ScopeWindow)

    def retranslateUi(self, ScopeWindow):
        ScopeWindow.setWindowTitle(QtGui.QApplication.translate("ScopeWindow", "DScope", None, QtGui.QApplication.UnicodeUTF8))
        self.ScopeSettings.setTitle(QtGui.QApplication.translate("ScopeWindow", "Scope Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.SampleSettings.setTitle(QtGui.QApplication.translate("ScopeWindow", "Sample / Buffer Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("ScopeWindow", "Samples", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("ScopeWindow", "Records per Buffer", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("ScopeWindow", "Buffers", None, QtGui.QApplication.UnicodeUTF8))
        self.label_21.setText(QtGui.QApplication.translate("ScopeWindow", "Records per Acquisition", None, QtGui.QApplication.UnicodeUTF8))
        self.VerticalSettings.setTitle(QtGui.QApplication.translate("ScopeWindow", "Vertical Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.Ch1Vertical.setTitle(QtGui.QApplication.translate("ScopeWindow", "Channel 1", None, QtGui.QApplication.UnicodeUTF8))
        self.ch1_enabledCheckBox.setText(QtGui.QApplication.translate("ScopeWindow", "Enabled", None, QtGui.QApplication.UnicodeUTF8))
        self.ch1_filteredCheckBox.setText(QtGui.QApplication.translate("ScopeWindow", "Filtered", None, QtGui.QApplication.UnicodeUTF8))
        self.label_16.setText(QtGui.QApplication.translate("ScopeWindow", "Range", None, QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "4 V", None, QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "2 V", None, QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "1 V", None, QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "400 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(4, QtGui.QApplication.translate("ScopeWindow", "200 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(5, QtGui.QApplication.translate("ScopeWindow", "100 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.ch1_rangeComboBox.setItemText(6, QtGui.QApplication.translate("ScopeWindow", "40 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.label_17.setText(QtGui.QApplication.translate("ScopeWindow", "Coupling", None, QtGui.QApplication.UnicodeUTF8))
        self.ch1_couplingComboBox.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "DC", None, QtGui.QApplication.UnicodeUTF8))
        self.ch1_couplingComboBox.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "AC", None, QtGui.QApplication.UnicodeUTF8))
        self.Ch2Vertical.setTitle(QtGui.QApplication.translate("ScopeWindow", "Channel 2", None, QtGui.QApplication.UnicodeUTF8))
        self.ch2_enabledCheckBox.setText(QtGui.QApplication.translate("ScopeWindow", "Enabled", None, QtGui.QApplication.UnicodeUTF8))
        self.ch2_filteredCheckBox.setText(QtGui.QApplication.translate("ScopeWindow", "Filtered", None, QtGui.QApplication.UnicodeUTF8))
        self.label_18.setText(QtGui.QApplication.translate("ScopeWindow", "Range", None, QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "4 V", None, QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "2 V", None, QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "1 V", None, QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "400 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(4, QtGui.QApplication.translate("ScopeWindow", "200 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(5, QtGui.QApplication.translate("ScopeWindow", "100 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.ch2_rangeComboBox.setItemText(6, QtGui.QApplication.translate("ScopeWindow", "40 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.label_19.setText(QtGui.QApplication.translate("ScopeWindow", "Coupling", None, QtGui.QApplication.UnicodeUTF8))
        self.ch2_couplingComboBox.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "DC", None, QtGui.QApplication.UnicodeUTF8))
        self.ch2_couplingComboBox.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "AC", None, QtGui.QApplication.UnicodeUTF8))
        self.ClockSettings.setTitle(QtGui.QApplication.translate("ScopeWindow", "Clock Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("ScopeWindow", "Clock Rate", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "1 GHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "500 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "250 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "100 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(4, QtGui.QApplication.translate("ScopeWindow", "50 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(5, QtGui.QApplication.translate("ScopeWindow", "20 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(6, QtGui.QApplication.translate("ScopeWindow", "10 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(7, QtGui.QApplication.translate("ScopeWindow", "5 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(8, QtGui.QApplication.translate("ScopeWindow", "2 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(9, QtGui.QApplication.translate("ScopeWindow", "1 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(10, QtGui.QApplication.translate("ScopeWindow", "20 kHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(11, QtGui.QApplication.translate("ScopeWindow", "10 kHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(12, QtGui.QApplication.translate("ScopeWindow", "5 kHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(13, QtGui.QApplication.translate("ScopeWindow", "2 kHz", None, QtGui.QApplication.UnicodeUTF8))
        self.samplerateComboBox.setItemText(14, QtGui.QApplication.translate("ScopeWindow", "1 kHz", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("ScopeWindow", "Clock Source", None, QtGui.QApplication.UnicodeUTF8))
        self.clocksourceComboBox.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "internal", None, QtGui.QApplication.UnicodeUTF8))
        self.clocksourceComboBox.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "reference", None, QtGui.QApplication.UnicodeUTF8))
        self.clocksourceComboBox.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "60 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.clocksourceComboBox.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "1 GHz", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("ScopeWindow", "Clock Edge", None, QtGui.QApplication.UnicodeUTF8))
        self.clockedgeComboBox.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "rising", None, QtGui.QApplication.UnicodeUTF8))
        self.clockedgeComboBox.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "falling", None, QtGui.QApplication.UnicodeUTF8))
        self.label_10.setText(QtGui.QApplication.translate("ScopeWindow", "Timeout", None, QtGui.QApplication.UnicodeUTF8))
        self.TriggerSettings.setTitle(QtGui.QApplication.translate("ScopeWindow", "Trigger Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(QtGui.QApplication.translate("ScopeWindow", "Source 1", None, QtGui.QApplication.UnicodeUTF8))
        self.trig1_sourceComboBox.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "CH_A", None, QtGui.QApplication.UnicodeUTF8))
        self.trig1_sourceComboBox.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "CH_B", None, QtGui.QApplication.UnicodeUTF8))
        self.trig1_sourceComboBox.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "external", None, QtGui.QApplication.UnicodeUTF8))
        self.trig1_sourceComboBox.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "disabled", None, QtGui.QApplication.UnicodeUTF8))
        self.trig1_edgeComboBox.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "rising", None, QtGui.QApplication.UnicodeUTF8))
        self.trig1_edgeComboBox.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "falling", None, QtGui.QApplication.UnicodeUTF8))
        self.label_9.setText(QtGui.QApplication.translate("ScopeWindow", "Level 1", None, QtGui.QApplication.UnicodeUTF8))
        self.label_11.setText(QtGui.QApplication.translate("ScopeWindow", "Coupling", None, QtGui.QApplication.UnicodeUTF8))
        self.trigCouplingComboBox.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "DC", None, QtGui.QApplication.UnicodeUTF8))
        self.trigCouplingComboBox.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "AC", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(QtGui.QApplication.translate("ScopeWindow", "Edge 1", None, QtGui.QApplication.UnicodeUTF8))
        self.label_12.setText(QtGui.QApplication.translate("ScopeWindow", "Source 2", None, QtGui.QApplication.UnicodeUTF8))
        self.trig2_sourceComboBox.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "CH_A", None, QtGui.QApplication.UnicodeUTF8))
        self.trig2_sourceComboBox.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "CH_B", None, QtGui.QApplication.UnicodeUTF8))
        self.trig2_sourceComboBox.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "external", None, QtGui.QApplication.UnicodeUTF8))
        self.trig2_sourceComboBox.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "disabled", None, QtGui.QApplication.UnicodeUTF8))
        self.trig2_edgeComboBox.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "rising", None, QtGui.QApplication.UnicodeUTF8))
        self.trig2_edgeComboBox.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "falling", None, QtGui.QApplication.UnicodeUTF8))
        self.label_13.setText(QtGui.QApplication.translate("ScopeWindow", "Level 2", None, QtGui.QApplication.UnicodeUTF8))
        self.label_14.setText(QtGui.QApplication.translate("ScopeWindow", "Operation", None, QtGui.QApplication.UnicodeUTF8))
        self.label_15.setText(QtGui.QApplication.translate("ScopeWindow", "Edge 2", None, QtGui.QApplication.UnicodeUTF8))
        self.trigOpComboBox.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "or", None, QtGui.QApplication.UnicodeUTF8))
        self.trigOpComboBox.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "and", None, QtGui.QApplication.UnicodeUTF8))
        self.trigOpComboBox.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "xor", None, QtGui.QApplication.UnicodeUTF8))
        self.trigOpComboBox.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "and not", None, QtGui.QApplication.UnicodeUTF8))
        self.datapathButton.setText(QtGui.QApplication.translate("ScopeWindow", "Datapath", None, QtGui.QApplication.UnicodeUTF8))
        self.label_20.setText(QtGui.QApplication.translate("ScopeWindow", "File Prefix", None, QtGui.QApplication.UnicodeUTF8))
        self.filenumberLabel.setText(QtGui.QApplication.translate("ScopeWindow", "000_", None, QtGui.QApplication.UnicodeUTF8))
        self.prefixLineEdit.setText(QtGui.QApplication.translate("ScopeWindow", "trace", None, QtGui.QApplication.UnicodeUTF8))
        self.runButton.setText(QtGui.QApplication.translate("ScopeWindow", "Run", None, QtGui.QApplication.UnicodeUTF8))
        self.saveButton.setText(QtGui.QApplication.translate("ScopeWindow", "Save", None, QtGui.QApplication.UnicodeUTF8))
        self.autosaveCheckBox.setText(QtGui.QApplication.translate("ScopeWindow", "autosave", None, QtGui.QApplication.UnicodeUTF8))
        self.autorunCheckBox.setText(QtGui.QApplication.translate("ScopeWindow", "autorun", None, QtGui.QApplication.UnicodeUTF8))
        self.PSDCheckBox.setText(QtGui.QApplication.translate("ScopeWindow", "PSD", None, QtGui.QApplication.UnicodeUTF8))
        self.x_autoscaleCheckBox.setText(QtGui.QApplication.translate("ScopeWindow", "autoscale X", None, QtGui.QApplication.UnicodeUTF8))
        self.y_autoscaleCheckBox.setText(QtGui.QApplication.translate("ScopeWindow", "autoscale Y", None, QtGui.QApplication.UnicodeUTF8))
        self.autoscaleCheckBox.setText(QtGui.QApplication.translate("ScopeWindow", "autoscale", None, QtGui.QApplication.UnicodeUTF8))
        self.toolBar.setWindowTitle(QtGui.QApplication.translate("ScopeWindow", "toolBar", None, QtGui.QApplication.UnicodeUTF8))
Esempio n. 42
0
class Ui_TSweepWindow(object):
    def setupUi(self, TSweepWindow):
        TSweepWindow.setObjectName(_fromUtf8("TSweepWindow"))
        TSweepWindow.resize(944, 675)
        self.centralwidget = QtGui.QWidget(TSweepWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.groupBox = QtGui.QGroupBox(self.centralwidget)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.powerSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
        self.powerSpinBox.setMinimum(-100.0)
        self.powerSpinBox.setMaximum(10.0)
        self.powerSpinBox.setProperty(_fromUtf8("value"), -20.0)
        self.powerSpinBox.setObjectName(_fromUtf8("powerSpinBox"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.powerSpinBox)
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
        self.sweep_ptsSpinBox = QtGui.QSpinBox(self.groupBox)
        self.sweep_ptsSpinBox.setMaximum(1601)
        self.sweep_ptsSpinBox.setProperty(_fromUtf8("value"), 1601)
        self.sweep_ptsSpinBox.setObjectName(_fromUtf8("sweep_ptsSpinBox"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.sweep_ptsSpinBox)
        self.label_3 = QtGui.QLabel(self.groupBox)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
        self.ifbwSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
        self.ifbwSpinBox.setMinimum(10.0)
        self.ifbwSpinBox.setMaximum(1000000.0)
        self.ifbwSpinBox.setProperty(_fromUtf8("value"), 1000.0)
        self.ifbwSpinBox.setObjectName(_fromUtf8("ifbwSpinBox"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.ifbwSpinBox)
        self.label_4 = QtGui.QLabel(self.groupBox)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_4)
        self.avgsSpinBox = QtGui.QSpinBox(self.groupBox)
        self.avgsSpinBox.setMinimum(1)
        self.avgsSpinBox.setObjectName(_fromUtf8("avgsSpinBox"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.avgsSpinBox)
        self.centerstartLabel = QtGui.QLabel(self.groupBox)
        self.centerstartLabel.setObjectName(_fromUtf8("centerstartLabel"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.centerstartLabel)
        self.centerstartSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
        self.centerstartSpinBox.setDecimals(6)
        self.centerstartSpinBox.setMaximum(20.0)
        self.centerstartSpinBox.setSingleStep(0.1)
        self.centerstartSpinBox.setProperty(_fromUtf8("value"), 10.0)
        self.centerstartSpinBox.setObjectName(_fromUtf8("centerstartSpinBox"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.centerstartSpinBox)
        self.spanstopLabel = QtGui.QLabel(self.groupBox)
        self.spanstopLabel.setObjectName(_fromUtf8("spanstopLabel"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.spanstopLabel)
        self.spanstopSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spanstopSpinBox.sizePolicy().hasHeightForWidth())
        self.spanstopSpinBox.setSizePolicy(sizePolicy)
        self.spanstopSpinBox.setMaximum(20000.0)
        self.spanstopSpinBox.setProperty(_fromUtf8("value"), 1000.0)
        self.spanstopSpinBox.setObjectName(_fromUtf8("spanstopSpinBox"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.spanstopSpinBox)
        self.verticalLayout_3.addLayout(self.formLayout)
        self.centerspanstartstopCheckBox = QtGui.QCheckBox(self.groupBox)
        self.centerspanstartstopCheckBox.setChecked(True)
        self.centerspanstartstopCheckBox.setObjectName(_fromUtf8("centerspanstartstopCheckBox"))
        self.verticalLayout_3.addWidget(self.centerspanstartstopCheckBox)
        self.verticalLayout_7.addWidget(self.groupBox)
        self.groupBox_4 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.formLayout_3 = QtGui.QFormLayout(self.groupBox_4)
        self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_7 = QtGui.QLabel(self.groupBox_4)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_7)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.radioButton = QtGui.QRadioButton(self.groupBox_4)
        self.radioButton.setObjectName(_fromUtf8("radioButton"))
        self.horizontalLayout_7.addWidget(self.radioButton)
        self.radioButton_2 = QtGui.QRadioButton(self.groupBox_4)
        self.radioButton_2.setObjectName(_fromUtf8("radioButton_2"))
        self.horizontalLayout_7.addWidget(self.radioButton_2)
        self.formLayout_3.setLayout(2, QtGui.QFormLayout.FieldRole, self.horizontalLayout_7)
        self.label_8 = QtGui.QLabel(self.groupBox_4)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_8)
        self.maxTSpinBox = QtGui.QDoubleSpinBox(self.groupBox_4)
        self.maxTSpinBox.setObjectName(_fromUtf8("maxTSpinBox"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.maxTSpinBox)
        self.label_9 = QtGui.QLabel(self.groupBox_4)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_9)
        self.delaySpinBox = QtGui.QDoubleSpinBox(self.groupBox_4)
        self.delaySpinBox.setObjectName(_fromUtf8("delaySpinBox"))
        self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole, self.delaySpinBox)
        self.analysisCheckBox = QtGui.QCheckBox(self.groupBox_4)
        self.analysisCheckBox.setObjectName(_fromUtf8("analysisCheckBox"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.analysisCheckBox)
        self.verticalLayout_7.addWidget(self.groupBox_4)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_7.addItem(spacerItem)
        self.temperatureLabel = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setWeight(75)
        font.setBold(True)
        self.temperatureLabel.setFont(font)
        self.temperatureLabel.setObjectName(_fromUtf8("temperatureLabel"))
        self.verticalLayout_7.addWidget(self.temperatureLabel)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.go_button = QtGui.QPushButton(self.centralwidget)
        self.go_button.setObjectName(_fromUtf8("go_button"))
        self.horizontalLayout_2.addWidget(self.go_button)
        self.abort_button = QtGui.QPushButton(self.centralwidget)
        self.abort_button.setObjectName(_fromUtf8("abort_button"))
        self.horizontalLayout_2.addWidget(self.abort_button)
        self.verticalLayout_7.addLayout(self.horizontalLayout_2)
        self.horizontalLayout.addLayout(self.verticalLayout_7)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.dataCurveWidget = CurveWidget(self.groupBox_2)
        self.dataCurveWidget.setOrientation(QtCore.Qt.Horizontal)
        self.dataCurveWidget.setObjectName(_fromUtf8("dataCurveWidget"))
        self.verticalLayout_5.addWidget(self.dataCurveWidget)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.label_6 = QtGui.QLabel(self.groupBox_2)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.horizontalLayout_5.addWidget(self.label_6)
        self.traceNumSpinBox = QtGui.QSpinBox(self.groupBox_2)
        self.traceNumSpinBox.setObjectName(_fromUtf8("traceNumSpinBox"))
        self.horizontalLayout_5.addWidget(self.traceNumSpinBox)
        self.browserTLabel = QtGui.QLabel(self.groupBox_2)
        self.browserTLabel.setObjectName(_fromUtf8("browserTLabel"))
        self.horizontalLayout_5.addWidget(self.browserTLabel)
        self.autoCheckBox = QtGui.QCheckBox(self.groupBox_2)
        self.autoCheckBox.setChecked(True)
        self.autoCheckBox.setObjectName(_fromUtf8("autoCheckBox"))
        self.horizontalLayout_5.addWidget(self.autoCheckBox)
        self.verticalLayout_5.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_4.addWidget(self.groupBox_2)
        self.groupBox_3 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.f0CurveWidget = CurveWidget(self.groupBox_3)
        self.f0CurveWidget.setOrientation(QtCore.Qt.Horizontal)
        self.f0CurveWidget.setObjectName(_fromUtf8("f0CurveWidget"))
        self.verticalLayout_6.addWidget(self.f0CurveWidget)
        self.QCurveWidget = CurveWidget(self.groupBox_3)
        self.QCurveWidget.setOrientation(QtCore.Qt.Horizontal)
        self.QCurveWidget.setObjectName(_fromUtf8("QCurveWidget"))
        self.verticalLayout_6.addWidget(self.QCurveWidget)
        self.horizontalLayout_4.addWidget(self.groupBox_3)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.exptpathButton = QtGui.QPushButton(self.centralwidget)
        self.exptpathButton.setObjectName(_fromUtf8("exptpathButton"))
        self.horizontalLayout_3.addWidget(self.exptpathButton)
        self.exptpathLineEdit = QtGui.QLineEdit(self.centralwidget)
        self.exptpathLineEdit.setObjectName(_fromUtf8("exptpathLineEdit"))
        self.horizontalLayout_3.addWidget(self.exptpathLineEdit)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label_20 = QtGui.QLabel(self.centralwidget)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.horizontalLayout_6.addWidget(self.label_20)
        self.filenumberLabel = QtGui.QLabel(self.centralwidget)
        self.filenumberLabel.setObjectName(_fromUtf8("filenumberLabel"))
        self.horizontalLayout_6.addWidget(self.filenumberLabel)
        self.prefixLineEdit = QtGui.QLineEdit(self.centralwidget)
        self.prefixLineEdit.setObjectName(_fromUtf8("prefixLineEdit"))
        self.horizontalLayout_6.addWidget(self.prefixLineEdit)
        self.saveCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.saveCheckBox.setObjectName(_fromUtf8("saveCheckBox"))
        self.horizontalLayout_6.addWidget(self.saveCheckBox)
        self.checkBox_2 = QtGui.QCheckBox(self.centralwidget)
        self.checkBox_2.setObjectName(_fromUtf8("checkBox_2"))
        self.horizontalLayout_6.addWidget(self.checkBox_2)
        self.verticalLayout.addLayout(self.horizontalLayout_6)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.verticalLayout_4.addLayout(self.horizontalLayout)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.message_box = QtGui.QTextBrowser(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.message_box.sizePolicy().hasHeightForWidth())
        self.message_box.setSizePolicy(sizePolicy)
        self.message_box.setMaximumSize(QtCore.QSize(16777215, 80))
        self.message_box.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
        self.message_box.setObjectName(_fromUtf8("message_box"))
        self.verticalLayout_2.addWidget(self.message_box)
        self.verticalLayout_4.addLayout(self.verticalLayout_2)
        self.cmd_lineEdit = QtGui.QLineEdit(self.centralwidget)
        self.cmd_lineEdit.setObjectName(_fromUtf8("cmd_lineEdit"))
        self.verticalLayout_4.addWidget(self.cmd_lineEdit)
        TSweepWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(TSweepWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 944, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuSave = QtGui.QMenu(self.menuFile)
        self.menuSave.setObjectName(_fromUtf8("menuSave"))
        self.menuInstruments = QtGui.QMenu(self.menubar)
        self.menuInstruments.setObjectName(_fromUtf8("menuInstruments"))
        TSweepWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(TSweepWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        TSweepWindow.setStatusBar(self.statusbar)
        self.actionExperimental_Settings = QtGui.QAction(TSweepWindow)
        self.actionExperimental_Settings.setObjectName(_fromUtf8("actionExperimental_Settings"))
        self.actionExperimental_and_Instrument_Settings = QtGui.QAction(TSweepWindow)
        self.actionExperimental_and_Instrument_Settings.setObjectName(_fromUtf8("actionExperimental_and_Instrument_Settings"))
        self.actionLoad = QtGui.QAction(TSweepWindow)
        self.actionLoad.setObjectName(_fromUtf8("actionLoad"))
        self.menuSave.addAction(self.actionExperimental_Settings)
        self.menuSave.addAction(self.actionExperimental_and_Instrument_Settings)
        self.menuFile.addAction(self.menuSave.menuAction())
        self.menuFile.addAction(self.actionLoad)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuInstruments.menuAction())

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

    def retranslateUi(self, TSweepWindow):
        TSweepWindow.setWindowTitle(QtGui.QApplication.translate("TSweepWindow", "Temperature Sweep with Network Analyzer", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("TSweepWindow", "NWA Parameters", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("TSweepWindow", "Power", None, QtGui.QApplication.UnicodeUTF8))
        self.powerSpinBox.setSuffix(QtGui.QApplication.translate("TSweepWindow", " dBm", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("TSweepWindow", "Sweep pts", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("TSweepWindow", "IF BW", None, QtGui.QApplication.UnicodeUTF8))
        self.ifbwSpinBox.setSuffix(QtGui.QApplication.translate("TSweepWindow", " Hz", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("TSweepWindow", "Avgs", None, QtGui.QApplication.UnicodeUTF8))
        self.centerstartLabel.setText(QtGui.QApplication.translate("TSweepWindow", "Center", None, QtGui.QApplication.UnicodeUTF8))
        self.centerstartSpinBox.setSuffix(QtGui.QApplication.translate("TSweepWindow", " GHz", None, QtGui.QApplication.UnicodeUTF8))
        self.spanstopLabel.setText(QtGui.QApplication.translate("TSweepWindow", "Span", None, QtGui.QApplication.UnicodeUTF8))
        self.spanstopSpinBox.setSuffix(QtGui.QApplication.translate("TSweepWindow", " MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.centerspanstartstopCheckBox.setText(QtGui.QApplication.translate("TSweepWindow", "Start/Stop", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_4.setTitle(QtGui.QApplication.translate("TSweepWindow", "T Sweep Parameters", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(QtGui.QApplication.translate("TSweepWindow", "Fit type", None, QtGui.QApplication.UnicodeUTF8))
        self.radioButton.setText(QtGui.QApplication.translate("TSweepWindow", "Series", None, QtGui.QApplication.UnicodeUTF8))
        self.radioButton_2.setText(QtGui.QApplication.translate("TSweepWindow", "Hanger", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(QtGui.QApplication.translate("TSweepWindow", "Max T", None, QtGui.QApplication.UnicodeUTF8))
        self.label_9.setText(QtGui.QApplication.translate("TSweepWindow", "Delay", None, QtGui.QApplication.UnicodeUTF8))
        self.analysisCheckBox.setText(QtGui.QApplication.translate("TSweepWindow", "Analysis Enabled", None, QtGui.QApplication.UnicodeUTF8))
        self.temperatureLabel.setText(QtGui.QApplication.translate("TSweepWindow", "Current T: N/A", None, QtGui.QApplication.UnicodeUTF8))
        self.go_button.setText(QtGui.QApplication.translate("TSweepWindow", "Go", None, QtGui.QApplication.UnicodeUTF8))
        self.abort_button.setText(QtGui.QApplication.translate("TSweepWindow", "Abort", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("TSweepWindow", "Curve Browser", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("TSweepWindow", "Trace number", None, QtGui.QApplication.UnicodeUTF8))
        self.browserTLabel.setText(QtGui.QApplication.translate("TSweepWindow", "T= N/A", None, QtGui.QApplication.UnicodeUTF8))
        self.autoCheckBox.setText(QtGui.QApplication.translate("TSweepWindow", "auto", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_3.setTitle(QtGui.QApplication.translate("TSweepWindow", "Analyzed Data", None, QtGui.QApplication.UnicodeUTF8))
        self.exptpathButton.setText(QtGui.QApplication.translate("TSweepWindow", "Experiment Path", None, QtGui.QApplication.UnicodeUTF8))
        self.exptpathLineEdit.setText(QtGui.QApplication.translate("TSweepWindow", "S:\\_Data\\", None, QtGui.QApplication.UnicodeUTF8))
        self.label_20.setText(QtGui.QApplication.translate("TSweepWindow", "File Prefix", None, QtGui.QApplication.UnicodeUTF8))
        self.filenumberLabel.setText(QtGui.QApplication.translate("TSweepWindow", "000_", None, QtGui.QApplication.UnicodeUTF8))
        self.prefixLineEdit.setText(QtGui.QApplication.translate("TSweepWindow", "TSweep", None, QtGui.QApplication.UnicodeUTF8))
        self.saveCheckBox.setText(QtGui.QApplication.translate("TSweepWindow", "Save Traces", None, QtGui.QApplication.UnicodeUTF8))
        self.checkBox_2.setText(QtGui.QApplication.translate("TSweepWindow", "Save Analysis", None, QtGui.QApplication.UnicodeUTF8))
        self.message_box.setHtml(QtGui.QApplication.translate("TSweepWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.menuFile.setTitle(QtGui.QApplication.translate("TSweepWindow", "File", None, QtGui.QApplication.UnicodeUTF8))
        self.menuSave.setTitle(QtGui.QApplication.translate("TSweepWindow", "Save..", None, QtGui.QApplication.UnicodeUTF8))
        self.menuInstruments.setTitle(QtGui.QApplication.translate("TSweepWindow", "Instruments", None, QtGui.QApplication.UnicodeUTF8))
        self.actionExperimental_Settings.setText(QtGui.QApplication.translate("TSweepWindow", "Experimental Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.actionExperimental_and_Instrument_Settings.setText(QtGui.QApplication.translate("TSweepWindow", "Experimental and Instrument Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.actionLoad.setText(QtGui.QApplication.translate("TSweepWindow", "Load", None, QtGui.QApplication.UnicodeUTF8))
Esempio n. 43
0
    def setupUi(self, ScopeWindow):
        ScopeWindow.setObjectName(_fromUtf8("ScopeWindow"))
        ScopeWindow.resize(1107, 827)
        ScopeWindow.setWindowTitle(QtGui.QApplication.translate("ScopeWindow", "DScope", None, QtGui.QApplication.UnicodeUTF8))
        self.centralwidget = QtGui.QWidget(ScopeWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.ScopeSettings = QtGui.QGroupBox(self.centralwidget)
        self.ScopeSettings.setTitle(QtGui.QApplication.translate("ScopeWindow", "Scope Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.ScopeSettings.setObjectName(_fromUtf8("ScopeSettings"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.ScopeSettings)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.SampleSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.SampleSettings.sizePolicy().hasHeightForWidth())
        self.SampleSettings.setSizePolicy(sizePolicy)
        self.SampleSettings.setTitle(QtGui.QApplication.translate("ScopeWindow", "Sample / Buffer Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.SampleSettings.setObjectName(_fromUtf8("SampleSettings"))
        self.gridLayout = QtGui.QGridLayout(self.SampleSettings)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(self.SampleSettings)
        self.label.setText(QtGui.QApplication.translate("ScopeWindow", "Samples", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.param_samplesPerRecord = QtGui.QSpinBox(self.SampleSettings)
        self.param_samplesPerRecord.setMinimum(32)
        self.param_samplesPerRecord.setMaximum(999999999)
        self.param_samplesPerRecord.setSingleStep(64)
        self.param_samplesPerRecord.setProperty("value", 1024)
        self.param_samplesPerRecord.setObjectName(_fromUtf8("param_samplesPerRecord"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.param_samplesPerRecord)
        self.label_2 = QtGui.QLabel(self.SampleSettings)
        self.label_2.setText(QtGui.QApplication.translate("ScopeWindow", "Records per Buffer", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
        self.param_recordsPerBuffer = QtGui.QSpinBox(self.SampleSettings)
        self.param_recordsPerBuffer.setMinimum(1)
        self.param_recordsPerBuffer.setMaximum(999999999)
        self.param_recordsPerBuffer.setObjectName(_fromUtf8("param_recordsPerBuffer"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.param_recordsPerBuffer)
        self.label_3 = QtGui.QLabel(self.SampleSettings)
        self.label_3.setText(QtGui.QApplication.translate("ScopeWindow", "Buffers", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
        self.param_bufferCount = QtGui.QSpinBox(self.SampleSettings)
        self.param_bufferCount.setMinimum(1)
        self.param_bufferCount.setMaximum(999999999)
        self.param_bufferCount.setObjectName(_fromUtf8("param_bufferCount"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.param_bufferCount)
        self.label_21 = QtGui.QLabel(self.SampleSettings)
        self.label_21.setText(QtGui.QApplication.translate("ScopeWindow", "Records per Acquisition", None, QtGui.QApplication.UnicodeUTF8))
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_21)
        self.param_recordsPerAcquisition = QtGui.QSpinBox(self.SampleSettings)
        self.param_recordsPerAcquisition.setMinimum(1)
        self.param_recordsPerAcquisition.setMaximum(999999999)
        self.param_recordsPerAcquisition.setProperty("value", 1)
        self.param_recordsPerAcquisition.setObjectName(_fromUtf8("param_recordsPerAcquisition"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.param_recordsPerAcquisition)
        self.gridLayout.addLayout(self.formLayout, 0, 0, 1, 1)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.label_22 = QtGui.QLabel(self.SampleSettings)
        self.label_22.setText(QtGui.QApplication.translate("ScopeWindow", "Excise Start", None, QtGui.QApplication.UnicodeUTF8))
        self.label_22.setObjectName(_fromUtf8("label_22"))
        self.horizontalLayout_7.addWidget(self.label_22)
        self.param_excise_start = QtGui.QSpinBox(self.SampleSettings)
        self.param_excise_start.setObjectName(_fromUtf8("param_excise_start"))
        self.horizontalLayout_7.addWidget(self.param_excise_start)
        self.label_23 = QtGui.QLabel(self.SampleSettings)
        self.label_23.setText(QtGui.QApplication.translate("ScopeWindow", "Excise End", None, QtGui.QApplication.UnicodeUTF8))
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.horizontalLayout_7.addWidget(self.label_23)
        self.param_excise_end = QtGui.QSpinBox(self.SampleSettings)
        self.param_excise_end.setObjectName(_fromUtf8("param_excise_end"))
        self.horizontalLayout_7.addWidget(self.param_excise_end)
        self.gridLayout.addLayout(self.horizontalLayout_7, 6, 0, 1, 1)
        self.verticalLayout_5.addWidget(self.SampleSettings)
        self.VerticalSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.VerticalSettings.sizePolicy().hasHeightForWidth())
        self.VerticalSettings.setSizePolicy(sizePolicy)
        self.VerticalSettings.setTitle(QtGui.QApplication.translate("ScopeWindow", "Vertical Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.VerticalSettings.setObjectName(_fromUtf8("VerticalSettings"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.VerticalSettings)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.Ch1Vertical = QtGui.QGroupBox(self.VerticalSettings)
        self.Ch1Vertical.setTitle(QtGui.QApplication.translate("ScopeWindow", "Channel 1", None, QtGui.QApplication.UnicodeUTF8))
        self.Ch1Vertical.setObjectName(_fromUtf8("Ch1Vertical"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.Ch1Vertical)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.formLayout_5 = QtGui.QFormLayout()
        self.formLayout_5.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_5.setObjectName(_fromUtf8("formLayout_5"))
        self.param_ch1_enabled = QtGui.QCheckBox(self.Ch1Vertical)
        self.param_ch1_enabled.setText(QtGui.QApplication.translate("ScopeWindow", "Enabled", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch1_enabled.setChecked(True)
        self.param_ch1_enabled.setObjectName(_fromUtf8("param_ch1_enabled"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.LabelRole, self.param_ch1_enabled)
        self.param_ch1_filter = QtGui.QCheckBox(self.Ch1Vertical)
        self.param_ch1_filter.setText(QtGui.QApplication.translate("ScopeWindow", "Filtered", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch1_filter.setObjectName(_fromUtf8("param_ch1_filter"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.FieldRole, self.param_ch1_filter)
        self.label_16 = QtGui.QLabel(self.Ch1Vertical)
        self.label_16.setText(QtGui.QApplication.translate("ScopeWindow", "Range", None, QtGui.QApplication.UnicodeUTF8))
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_16)
        self.param_ch1_range_txt = QtGui.QComboBox(self.Ch1Vertical)
        self.param_ch1_range_txt.setObjectName(_fromUtf8("param_ch1_range_txt"))
        self.param_ch1_range_txt.addItem(_fromUtf8(""))
        self.param_ch1_range_txt.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "4 V", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch1_range_txt.addItem(_fromUtf8(""))
        self.param_ch1_range_txt.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "2 V", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch1_range_txt.addItem(_fromUtf8(""))
        self.param_ch1_range_txt.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "1 V", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch1_range_txt.addItem(_fromUtf8(""))
        self.param_ch1_range_txt.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "400 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch1_range_txt.addItem(_fromUtf8(""))
        self.param_ch1_range_txt.setItemText(4, QtGui.QApplication.translate("ScopeWindow", "200 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch1_range_txt.addItem(_fromUtf8(""))
        self.param_ch1_range_txt.setItemText(5, QtGui.QApplication.translate("ScopeWindow", "100 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch1_range_txt.addItem(_fromUtf8(""))
        self.param_ch1_range_txt.setItemText(6, QtGui.QApplication.translate("ScopeWindow", "40 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole, self.param_ch1_range_txt)
        self.label_17 = QtGui.QLabel(self.Ch1Vertical)
        self.label_17.setText(QtGui.QApplication.translate("ScopeWindow", "Coupling", None, QtGui.QApplication.UnicodeUTF8))
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_17)
        self.param_ch1_coupling = QtGui.QComboBox(self.Ch1Vertical)
        self.param_ch1_coupling.setObjectName(_fromUtf8("param_ch1_coupling"))
        self.param_ch1_coupling.addItem(_fromUtf8(""))
        self.param_ch1_coupling.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "DC", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch1_coupling.addItem(_fromUtf8(""))
        self.param_ch1_coupling.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "AC", None, QtGui.QApplication.UnicodeUTF8))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole, self.param_ch1_coupling)
        self.verticalLayout_3.addLayout(self.formLayout_5)
        self.horizontalLayout_2.addWidget(self.Ch1Vertical)
        self.Ch2Vertical = QtGui.QGroupBox(self.VerticalSettings)
        self.Ch2Vertical.setTitle(QtGui.QApplication.translate("ScopeWindow", "Channel 2", None, QtGui.QApplication.UnicodeUTF8))
        self.Ch2Vertical.setObjectName(_fromUtf8("Ch2Vertical"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.Ch2Vertical)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.formLayout_6 = QtGui.QFormLayout()
        self.formLayout_6.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_6.setObjectName(_fromUtf8("formLayout_6"))
        self.param_ch2_enabled = QtGui.QCheckBox(self.Ch2Vertical)
        self.param_ch2_enabled.setText(QtGui.QApplication.translate("ScopeWindow", "Enabled", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch2_enabled.setChecked(True)
        self.param_ch2_enabled.setObjectName(_fromUtf8("param_ch2_enabled"))
        self.formLayout_6.setWidget(0, QtGui.QFormLayout.LabelRole, self.param_ch2_enabled)
        self.param_ch2_filter = QtGui.QCheckBox(self.Ch2Vertical)
        self.param_ch2_filter.setText(QtGui.QApplication.translate("ScopeWindow", "Filtered", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch2_filter.setObjectName(_fromUtf8("param_ch2_filter"))
        self.formLayout_6.setWidget(0, QtGui.QFormLayout.FieldRole, self.param_ch2_filter)
        self.label_18 = QtGui.QLabel(self.Ch2Vertical)
        self.label_18.setText(QtGui.QApplication.translate("ScopeWindow", "Range", None, QtGui.QApplication.UnicodeUTF8))
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout_6.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_18)
        self.param_ch2_range_txt = QtGui.QComboBox(self.Ch2Vertical)
        self.param_ch2_range_txt.setObjectName(_fromUtf8("param_ch2_range_txt"))
        self.param_ch2_range_txt.addItem(_fromUtf8(""))
        self.param_ch2_range_txt.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "4 V", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch2_range_txt.addItem(_fromUtf8(""))
        self.param_ch2_range_txt.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "2 V", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch2_range_txt.addItem(_fromUtf8(""))
        self.param_ch2_range_txt.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "1 V", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch2_range_txt.addItem(_fromUtf8(""))
        self.param_ch2_range_txt.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "400 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch2_range_txt.addItem(_fromUtf8(""))
        self.param_ch2_range_txt.setItemText(4, QtGui.QApplication.translate("ScopeWindow", "200 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch2_range_txt.addItem(_fromUtf8(""))
        self.param_ch2_range_txt.setItemText(5, QtGui.QApplication.translate("ScopeWindow", "100 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch2_range_txt.addItem(_fromUtf8(""))
        self.param_ch2_range_txt.setItemText(6, QtGui.QApplication.translate("ScopeWindow", "40 mV", None, QtGui.QApplication.UnicodeUTF8))
        self.formLayout_6.setWidget(1, QtGui.QFormLayout.FieldRole, self.param_ch2_range_txt)
        self.label_19 = QtGui.QLabel(self.Ch2Vertical)
        self.label_19.setText(QtGui.QApplication.translate("ScopeWindow", "Coupling", None, QtGui.QApplication.UnicodeUTF8))
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.formLayout_6.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_19)
        self.param_ch2_coupling = QtGui.QComboBox(self.Ch2Vertical)
        self.param_ch2_coupling.setObjectName(_fromUtf8("param_ch2_coupling"))
        self.param_ch2_coupling.addItem(_fromUtf8(""))
        self.param_ch2_coupling.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "DC", None, QtGui.QApplication.UnicodeUTF8))
        self.param_ch2_coupling.addItem(_fromUtf8(""))
        self.param_ch2_coupling.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "AC", None, QtGui.QApplication.UnicodeUTF8))
        self.formLayout_6.setWidget(2, QtGui.QFormLayout.FieldRole, self.param_ch2_coupling)
        self.verticalLayout_4.addLayout(self.formLayout_6)
        self.horizontalLayout_2.addWidget(self.Ch2Vertical)
        self.verticalLayout_5.addWidget(self.VerticalSettings)
        self.ClockSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ClockSettings.sizePolicy().hasHeightForWidth())
        self.ClockSettings.setSizePolicy(sizePolicy)
        self.ClockSettings.setTitle(QtGui.QApplication.translate("ScopeWindow", "Clock Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.ClockSettings.setObjectName(_fromUtf8("ClockSettings"))
        self.verticalLayout = QtGui.QVBoxLayout(self.ClockSettings)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_6 = QtGui.QLabel(self.ClockSettings)
        self.label_6.setText(QtGui.QApplication.translate("ScopeWindow", "Clock Rate", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_6)
        self.param_sample_rate_txt = QtGui.QComboBox(self.ClockSettings)
        self.param_sample_rate_txt.setObjectName(_fromUtf8("param_sample_rate_txt"))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "1 GHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "500 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "250 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "100 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(4, QtGui.QApplication.translate("ScopeWindow", "50 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(5, QtGui.QApplication.translate("ScopeWindow", "20 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(6, QtGui.QApplication.translate("ScopeWindow", "10 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(7, QtGui.QApplication.translate("ScopeWindow", "5 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(8, QtGui.QApplication.translate("ScopeWindow", "2 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(9, QtGui.QApplication.translate("ScopeWindow", "1 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(10, QtGui.QApplication.translate("ScopeWindow", "20 kHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(11, QtGui.QApplication.translate("ScopeWindow", "10 kHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(12, QtGui.QApplication.translate("ScopeWindow", "5 kHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(13, QtGui.QApplication.translate("ScopeWindow", "2 kHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_sample_rate_txt.addItem(_fromUtf8(""))
        self.param_sample_rate_txt.setItemText(14, QtGui.QApplication.translate("ScopeWindow", "1 kHz", None, QtGui.QApplication.UnicodeUTF8))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.param_sample_rate_txt)
        self.label_4 = QtGui.QLabel(self.ClockSettings)
        self.label_4.setText(QtGui.QApplication.translate("ScopeWindow", "Clock Source", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_4)
        self.param_clock_source = QtGui.QComboBox(self.ClockSettings)
        self.param_clock_source.setObjectName(_fromUtf8("param_clock_source"))
        self.param_clock_source.addItem(_fromUtf8(""))
        self.param_clock_source.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "internal", None, QtGui.QApplication.UnicodeUTF8))
        self.param_clock_source.addItem(_fromUtf8(""))
        self.param_clock_source.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "reference", None, QtGui.QApplication.UnicodeUTF8))
        self.param_clock_source.addItem(_fromUtf8(""))
        self.param_clock_source.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "60 MHz", None, QtGui.QApplication.UnicodeUTF8))
        self.param_clock_source.addItem(_fromUtf8(""))
        self.param_clock_source.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "1 GHz", None, QtGui.QApplication.UnicodeUTF8))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.param_clock_source)
        self.label_5 = QtGui.QLabel(self.ClockSettings)
        self.label_5.setText(QtGui.QApplication.translate("ScopeWindow", "Clock Edge", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_5)
        self.param_clock_edge = QtGui.QComboBox(self.ClockSettings)
        self.param_clock_edge.setObjectName(_fromUtf8("param_clock_edge"))
        self.param_clock_edge.addItem(_fromUtf8(""))
        self.param_clock_edge.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "rising", None, QtGui.QApplication.UnicodeUTF8))
        self.param_clock_edge.addItem(_fromUtf8(""))
        self.param_clock_edge.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "falling", None, QtGui.QApplication.UnicodeUTF8))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.param_clock_edge)
        self.label_10 = QtGui.QLabel(self.ClockSettings)
        self.label_10.setText(QtGui.QApplication.translate("ScopeWindow", "Timeout", None, QtGui.QApplication.UnicodeUTF8))
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_10)
        self.param_timeout = QtGui.QSpinBox(self.ClockSettings)
        self.param_timeout.setMaximum(1000000000)
        self.param_timeout.setProperty("value", 5000)
        self.param_timeout.setObjectName(_fromUtf8("param_timeout"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole, self.param_timeout)
        self.verticalLayout.addLayout(self.formLayout_2)
        self.verticalLayout_5.addWidget(self.ClockSettings)
        self.TriggerSettings = QtGui.QGroupBox(self.ScopeSettings)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.TriggerSettings.sizePolicy().hasHeightForWidth())
        self.TriggerSettings.setSizePolicy(sizePolicy)
        self.TriggerSettings.setTitle(QtGui.QApplication.translate("ScopeWindow", "Trigger Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.TriggerSettings.setObjectName(_fromUtf8("TriggerSettings"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.TriggerSettings)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.formLayout_3 = QtGui.QFormLayout()
        self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_7 = QtGui.QLabel(self.TriggerSettings)
        self.label_7.setText(QtGui.QApplication.translate("ScopeWindow", "Source 1", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_7)
        self.param_trigger_source1 = QtGui.QComboBox(self.TriggerSettings)
        self.param_trigger_source1.setObjectName(_fromUtf8("param_trigger_source1"))
        self.param_trigger_source1.addItem(_fromUtf8(""))
        self.param_trigger_source1.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "CH_A", None, QtGui.QApplication.UnicodeUTF8))
        self.param_trigger_source1.addItem(_fromUtf8(""))
        self.param_trigger_source1.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "CH_B", None, QtGui.QApplication.UnicodeUTF8))
        self.param_trigger_source1.addItem(_fromUtf8(""))
        self.param_trigger_source1.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "external", None, QtGui.QApplication.UnicodeUTF8))
        self.param_trigger_source1.addItem(_fromUtf8(""))
        self.param_trigger_source1.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "disabled", None, QtGui.QApplication.UnicodeUTF8))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.param_trigger_source1)
        self.param_trigger_edge1 = QtGui.QComboBox(self.TriggerSettings)
        self.param_trigger_edge1.setObjectName(_fromUtf8("param_trigger_edge1"))
        self.param_trigger_edge1.addItem(_fromUtf8(""))
        self.param_trigger_edge1.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "rising", None, QtGui.QApplication.UnicodeUTF8))
        self.param_trigger_edge1.addItem(_fromUtf8(""))
        self.param_trigger_edge1.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "falling", None, QtGui.QApplication.UnicodeUTF8))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.param_trigger_edge1)
        self.label_9 = QtGui.QLabel(self.TriggerSettings)
        self.label_9.setText(QtGui.QApplication.translate("ScopeWindow", "Level 1", None, QtGui.QApplication.UnicodeUTF8))
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_9)
        self.param_trigger_level1 = QtGui.QDoubleSpinBox(self.TriggerSettings)
        self.param_trigger_level1.setProperty("value", 1.0)
        self.param_trigger_level1.setObjectName(_fromUtf8("param_trigger_level1"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.param_trigger_level1)
        self.label_11 = QtGui.QLabel(self.TriggerSettings)
        self.label_11.setText(QtGui.QApplication.translate("ScopeWindow", "Coupling", None, QtGui.QApplication.UnicodeUTF8))
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_11)
        self.param_trigger_coupling = QtGui.QComboBox(self.TriggerSettings)
        self.param_trigger_coupling.setObjectName(_fromUtf8("param_trigger_coupling"))
        self.param_trigger_coupling.addItem(_fromUtf8(""))
        self.param_trigger_coupling.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "DC", None, QtGui.QApplication.UnicodeUTF8))
        self.param_trigger_coupling.addItem(_fromUtf8(""))
        self.param_trigger_coupling.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "AC", None, QtGui.QApplication.UnicodeUTF8))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.param_trigger_coupling)
        self.label_8 = QtGui.QLabel(self.TriggerSettings)
        self.label_8.setText(QtGui.QApplication.translate("ScopeWindow", "Edge 1", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_8)
        self.horizontalLayout.addLayout(self.formLayout_3)
        self.formLayout_4 = QtGui.QFormLayout()
        self.formLayout_4.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_4.setObjectName(_fromUtf8("formLayout_4"))
        self.label_12 = QtGui.QLabel(self.TriggerSettings)
        self.label_12.setText(QtGui.QApplication.translate("ScopeWindow", "Source 2", None, QtGui.QApplication.UnicodeUTF8))
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_12)
        self.param_trigger_source2 = QtGui.QComboBox(self.TriggerSettings)
        self.param_trigger_source2.setObjectName(_fromUtf8("param_trigger_source2"))
        self.param_trigger_source2.addItem(_fromUtf8(""))
        self.param_trigger_source2.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "CH_A", None, QtGui.QApplication.UnicodeUTF8))
        self.param_trigger_source2.addItem(_fromUtf8(""))
        self.param_trigger_source2.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "CH_B", None, QtGui.QApplication.UnicodeUTF8))
        self.param_trigger_source2.addItem(_fromUtf8(""))
        self.param_trigger_source2.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "external", None, QtGui.QApplication.UnicodeUTF8))
        self.param_trigger_source2.addItem(_fromUtf8(""))
        self.param_trigger_source2.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "disabled", None, QtGui.QApplication.UnicodeUTF8))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole, self.param_trigger_source2)
        self.param_trigger_edge2 = QtGui.QComboBox(self.TriggerSettings)
        self.param_trigger_edge2.setObjectName(_fromUtf8("param_trigger_edge2"))
        self.param_trigger_edge2.addItem(_fromUtf8(""))
        self.param_trigger_edge2.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "rising", None, QtGui.QApplication.UnicodeUTF8))
        self.param_trigger_edge2.addItem(_fromUtf8(""))
        self.param_trigger_edge2.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "falling", None, QtGui.QApplication.UnicodeUTF8))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole, self.param_trigger_edge2)
        self.label_13 = QtGui.QLabel(self.TriggerSettings)
        self.label_13.setText(QtGui.QApplication.translate("ScopeWindow", "Level 2", None, QtGui.QApplication.UnicodeUTF8))
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_13)
        self.param_trigger_level2 = QtGui.QDoubleSpinBox(self.TriggerSettings)
        self.param_trigger_level2.setProperty("value", 1.0)
        self.param_trigger_level2.setObjectName(_fromUtf8("param_trigger_level2"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole, self.param_trigger_level2)
        self.label_14 = QtGui.QLabel(self.TriggerSettings)
        self.label_14.setText(QtGui.QApplication.translate("ScopeWindow", "Operation", None, QtGui.QApplication.UnicodeUTF8))
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_14)
        self.label_15 = QtGui.QLabel(self.TriggerSettings)
        self.label_15.setText(QtGui.QApplication.translate("ScopeWindow", "Edge 2", None, QtGui.QApplication.UnicodeUTF8))
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_15)
        self.param_trigger_operation = QtGui.QComboBox(self.TriggerSettings)
        self.param_trigger_operation.setObjectName(_fromUtf8("param_trigger_operation"))
        self.param_trigger_operation.addItem(_fromUtf8(""))
        self.param_trigger_operation.setItemText(0, QtGui.QApplication.translate("ScopeWindow", "or", None, QtGui.QApplication.UnicodeUTF8))
        self.param_trigger_operation.addItem(_fromUtf8(""))
        self.param_trigger_operation.setItemText(1, QtGui.QApplication.translate("ScopeWindow", "and", None, QtGui.QApplication.UnicodeUTF8))
        self.param_trigger_operation.addItem(_fromUtf8(""))
        self.param_trigger_operation.setItemText(2, QtGui.QApplication.translate("ScopeWindow", "xor", None, QtGui.QApplication.UnicodeUTF8))
        self.param_trigger_operation.addItem(_fromUtf8(""))
        self.param_trigger_operation.setItemText(3, QtGui.QApplication.translate("ScopeWindow", "and not", None, QtGui.QApplication.UnicodeUTF8))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.FieldRole, self.param_trigger_operation)
        self.horizontalLayout.addLayout(self.formLayout_4)
        self.verticalLayout_6.addLayout(self.horizontalLayout)
        self.verticalLayout_5.addWidget(self.TriggerSettings)
        self.applyButton = QtGui.QPushButton(self.ScopeSettings)
        self.applyButton.setText(QtGui.QApplication.translate("ScopeWindow", "Apply Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.applyButton.setObjectName(_fromUtf8("applyButton"))
        self.verticalLayout_5.addWidget(self.applyButton)
        self.message_box = QtGui.QTextEdit(self.ScopeSettings)
        self.message_box.setObjectName(_fromUtf8("message_box"))
        self.verticalLayout_5.addWidget(self.message_box)
        self.sweepButton = QtGui.QPushButton(self.ScopeSettings)
        self.sweepButton.setText(QtGui.QApplication.translate("ScopeWindow", "Sweep", None, QtGui.QApplication.UnicodeUTF8))
        self.sweepButton.setObjectName(_fromUtf8("sweepButton"))
        self.verticalLayout_5.addWidget(self.sweepButton)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem)
        self.horizontalLayout_5.addWidget(self.ScopeSettings)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.datapathButton = QtGui.QPushButton(self.centralwidget)
        self.datapathButton.setText(QtGui.QApplication.translate("ScopeWindow", "Datapath", None, QtGui.QApplication.UnicodeUTF8))
        self.datapathButton.setObjectName(_fromUtf8("datapathButton"))
        self.horizontalLayout_3.addWidget(self.datapathButton)
        self.param_datapath = QtGui.QLineEdit(self.centralwidget)
        self.param_datapath.setObjectName(_fromUtf8("param_datapath"))
        self.horizontalLayout_3.addWidget(self.param_datapath)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label_20 = QtGui.QLabel(self.centralwidget)
        self.label_20.setText(QtGui.QApplication.translate("ScopeWindow", "File Prefix", None, QtGui.QApplication.UnicodeUTF8))
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.horizontalLayout_6.addWidget(self.label_20)
        self.filenumberLabel = QtGui.QLabel(self.centralwidget)
        self.filenumberLabel.setText(QtGui.QApplication.translate("ScopeWindow", "000_", None, QtGui.QApplication.UnicodeUTF8))
        self.filenumberLabel.setObjectName(_fromUtf8("filenumberLabel"))
        self.horizontalLayout_6.addWidget(self.filenumberLabel)
        self.param_prefix = QtGui.QLineEdit(self.centralwidget)
        self.param_prefix.setText(QtGui.QApplication.translate("ScopeWindow", "trace", None, QtGui.QApplication.UnicodeUTF8))
        self.param_prefix.setObjectName(_fromUtf8("param_prefix"))
        self.horizontalLayout_6.addWidget(self.param_prefix)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.runButton = QtGui.QPushButton(self.centralwidget)
        self.runButton.setText(QtGui.QApplication.translate("ScopeWindow", "Run", None, QtGui.QApplication.UnicodeUTF8))
        self.runButton.setObjectName(_fromUtf8("runButton"))
        self.horizontalLayout_4.addWidget(self.runButton)
        self.stopButton = QtGui.QPushButton(self.centralwidget)
        self.stopButton.setText(QtGui.QApplication.translate("ScopeWindow", "Stop", None, QtGui.QApplication.UnicodeUTF8))
        self.stopButton.setObjectName(_fromUtf8("stopButton"))
        self.horizontalLayout_4.addWidget(self.stopButton)
        self.saveButton = QtGui.QPushButton(self.centralwidget)
        self.saveButton.setText(QtGui.QApplication.translate("ScopeWindow", "Save", None, QtGui.QApplication.UnicodeUTF8))
        self.saveButton.setObjectName(_fromUtf8("saveButton"))
        self.horizontalLayout_4.addWidget(self.saveButton)
        self.autosaveCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.autosaveCheckBox.setText(QtGui.QApplication.translate("ScopeWindow", "autosave", None, QtGui.QApplication.UnicodeUTF8))
        self.autosaveCheckBox.setObjectName(_fromUtf8("autosaveCheckBox"))
        self.horizontalLayout_4.addWidget(self.autosaveCheckBox)
        self.param_autorun = QtGui.QCheckBox(self.centralwidget)
        self.param_autorun.setText(QtGui.QApplication.translate("ScopeWindow", "autorun", None, QtGui.QApplication.UnicodeUTF8))
        self.param_autorun.setChecked(True)
        self.param_autorun.setObjectName(_fromUtf8("param_autorun"))
        self.horizontalLayout_4.addWidget(self.param_autorun)
        self.param_x_autoscale = QtGui.QCheckBox(self.centralwidget)
        self.param_x_autoscale.setEnabled(False)
        self.param_x_autoscale.setText(QtGui.QApplication.translate("ScopeWindow", "autoscale X", None, QtGui.QApplication.UnicodeUTF8))
        self.param_x_autoscale.setChecked(True)
        self.param_x_autoscale.setObjectName(_fromUtf8("param_x_autoscale"))
        self.horizontalLayout_4.addWidget(self.param_x_autoscale)
        self.param_y_autoscale = QtGui.QCheckBox(self.centralwidget)
        self.param_y_autoscale.setEnabled(False)
        self.param_y_autoscale.setText(QtGui.QApplication.translate("ScopeWindow", "autoscale Y", None, QtGui.QApplication.UnicodeUTF8))
        self.param_y_autoscale.setChecked(True)
        self.param_y_autoscale.setObjectName(_fromUtf8("param_y_autoscale"))
        self.horizontalLayout_4.addWidget(self.param_y_autoscale)
        self.param_autoscale = QtGui.QCheckBox(self.centralwidget)
        self.param_autoscale.setText(QtGui.QApplication.translate("ScopeWindow", "autoscale", None, QtGui.QApplication.UnicodeUTF8))
        self.param_autoscale.setChecked(True)
        self.param_autoscale.setObjectName(_fromUtf8("param_autoscale"))
        self.horizontalLayout_4.addWidget(self.param_autoscale)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        self.curvewidget = CurveWidget(self.centralwidget)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.verticalLayout_2.addWidget(self.curvewidget)
        self.horizontalLayout_5.addLayout(self.verticalLayout_2)
        ScopeWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(ScopeWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1107, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setTitle(QtGui.QApplication.translate("ScopeWindow", "File", None, QtGui.QApplication.UnicodeUTF8))
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuSave = QtGui.QMenu(self.menuFile)
        self.menuSave.setTitle(QtGui.QApplication.translate("ScopeWindow", "Save", None, QtGui.QApplication.UnicodeUTF8))
        self.menuSave.setObjectName(_fromUtf8("menuSave"))
        self.menuSweep = QtGui.QMenu(self.menubar)
        self.menuSweep.setTitle(QtGui.QApplication.translate("ScopeWindow", "Sweep", None, QtGui.QApplication.UnicodeUTF8))
        self.menuSweep.setObjectName(_fromUtf8("menuSweep"))
        ScopeWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(ScopeWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        ScopeWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(ScopeWindow)
        self.toolBar.setWindowTitle(QtGui.QApplication.translate("ScopeWindow", "toolBar", None, QtGui.QApplication.UnicodeUTF8))
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        ScopeWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionLoad = QtGui.QAction(ScopeWindow)
        self.actionLoad.setText(QtGui.QApplication.translate("ScopeWindow", "Load", None, QtGui.QApplication.UnicodeUTF8))
        self.actionLoad.setObjectName(_fromUtf8("actionLoad"))
        self.actionExperimental_Settings = QtGui.QAction(ScopeWindow)
        self.actionExperimental_Settings.setText(QtGui.QApplication.translate("ScopeWindow", "Experimental Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.actionExperimental_Settings.setObjectName(_fromUtf8("actionExperimental_Settings"))
        self.actionExperimental_and_Instrument_Settings = QtGui.QAction(ScopeWindow)
        self.actionExperimental_and_Instrument_Settings.setText(QtGui.QApplication.translate("ScopeWindow", "Experimental and Instrument Settings", None, QtGui.QApplication.UnicodeUTF8))
        self.actionExperimental_and_Instrument_Settings.setObjectName(_fromUtf8("actionExperimental_and_Instrument_Settings"))
        self.actionStart_Sweep = QtGui.QAction(ScopeWindow)
        self.actionStart_Sweep.setText(QtGui.QApplication.translate("ScopeWindow", "Start Sweep", None, QtGui.QApplication.UnicodeUTF8))
        self.actionStart_Sweep.setObjectName(_fromUtf8("actionStart_Sweep"))
        self.menuSave.addAction(self.actionExperimental_Settings)
        self.menuSave.addAction(self.actionExperimental_and_Instrument_Settings)
        self.menuFile.addAction(self.menuSave.menuAction())
        self.menuFile.addAction(self.actionLoad)
        self.menuSweep.addAction(self.actionStart_Sweep)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuSweep.menuAction())

        self.retranslateUi(ScopeWindow)
        self.param_trigger_source1.setCurrentIndex(2)
        self.param_trigger_source2.setCurrentIndex(3)
        QtCore.QMetaObject.connectSlotsByName(ScopeWindow)
Esempio n. 44
0
    def setupUi(self, TSweepWindow):
        TSweepWindow.setObjectName(_fromUtf8("TSweepWindow"))
        TSweepWindow.resize(944, 675)
        self.centralwidget = QtGui.QWidget(TSweepWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.groupBox = QtGui.QGroupBox(self.centralwidget)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.powerSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
        self.powerSpinBox.setMinimum(-100.0)
        self.powerSpinBox.setMaximum(10.0)
        self.powerSpinBox.setProperty(_fromUtf8("value"), -20.0)
        self.powerSpinBox.setObjectName(_fromUtf8("powerSpinBox"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.powerSpinBox)
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
        self.sweep_ptsSpinBox = QtGui.QSpinBox(self.groupBox)
        self.sweep_ptsSpinBox.setMaximum(1601)
        self.sweep_ptsSpinBox.setProperty(_fromUtf8("value"), 1601)
        self.sweep_ptsSpinBox.setObjectName(_fromUtf8("sweep_ptsSpinBox"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.sweep_ptsSpinBox)
        self.label_3 = QtGui.QLabel(self.groupBox)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
        self.ifbwSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
        self.ifbwSpinBox.setMinimum(10.0)
        self.ifbwSpinBox.setMaximum(1000000.0)
        self.ifbwSpinBox.setProperty(_fromUtf8("value"), 1000.0)
        self.ifbwSpinBox.setObjectName(_fromUtf8("ifbwSpinBox"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.ifbwSpinBox)
        self.label_4 = QtGui.QLabel(self.groupBox)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_4)
        self.avgsSpinBox = QtGui.QSpinBox(self.groupBox)
        self.avgsSpinBox.setMinimum(1)
        self.avgsSpinBox.setObjectName(_fromUtf8("avgsSpinBox"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.avgsSpinBox)
        self.centerstartLabel = QtGui.QLabel(self.groupBox)
        self.centerstartLabel.setObjectName(_fromUtf8("centerstartLabel"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.centerstartLabel)
        self.centerstartSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
        self.centerstartSpinBox.setDecimals(6)
        self.centerstartSpinBox.setMaximum(20.0)
        self.centerstartSpinBox.setSingleStep(0.1)
        self.centerstartSpinBox.setProperty(_fromUtf8("value"), 10.0)
        self.centerstartSpinBox.setObjectName(_fromUtf8("centerstartSpinBox"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.centerstartSpinBox)
        self.spanstopLabel = QtGui.QLabel(self.groupBox)
        self.spanstopLabel.setObjectName(_fromUtf8("spanstopLabel"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.spanstopLabel)
        self.spanstopSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spanstopSpinBox.sizePolicy().hasHeightForWidth())
        self.spanstopSpinBox.setSizePolicy(sizePolicy)
        self.spanstopSpinBox.setMaximum(20000.0)
        self.spanstopSpinBox.setProperty(_fromUtf8("value"), 1000.0)
        self.spanstopSpinBox.setObjectName(_fromUtf8("spanstopSpinBox"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.spanstopSpinBox)
        self.verticalLayout_3.addLayout(self.formLayout)
        self.centerspanstartstopCheckBox = QtGui.QCheckBox(self.groupBox)
        self.centerspanstartstopCheckBox.setChecked(True)
        self.centerspanstartstopCheckBox.setObjectName(_fromUtf8("centerspanstartstopCheckBox"))
        self.verticalLayout_3.addWidget(self.centerspanstartstopCheckBox)
        self.verticalLayout_7.addWidget(self.groupBox)
        self.groupBox_4 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.formLayout_3 = QtGui.QFormLayout(self.groupBox_4)
        self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_7 = QtGui.QLabel(self.groupBox_4)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_7)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.radioButton = QtGui.QRadioButton(self.groupBox_4)
        self.radioButton.setObjectName(_fromUtf8("radioButton"))
        self.horizontalLayout_7.addWidget(self.radioButton)
        self.radioButton_2 = QtGui.QRadioButton(self.groupBox_4)
        self.radioButton_2.setObjectName(_fromUtf8("radioButton_2"))
        self.horizontalLayout_7.addWidget(self.radioButton_2)
        self.formLayout_3.setLayout(2, QtGui.QFormLayout.FieldRole, self.horizontalLayout_7)
        self.label_8 = QtGui.QLabel(self.groupBox_4)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_8)
        self.maxTSpinBox = QtGui.QDoubleSpinBox(self.groupBox_4)
        self.maxTSpinBox.setObjectName(_fromUtf8("maxTSpinBox"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.maxTSpinBox)
        self.label_9 = QtGui.QLabel(self.groupBox_4)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_9)
        self.delaySpinBox = QtGui.QDoubleSpinBox(self.groupBox_4)
        self.delaySpinBox.setObjectName(_fromUtf8("delaySpinBox"))
        self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole, self.delaySpinBox)
        self.analysisCheckBox = QtGui.QCheckBox(self.groupBox_4)
        self.analysisCheckBox.setObjectName(_fromUtf8("analysisCheckBox"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.analysisCheckBox)
        self.verticalLayout_7.addWidget(self.groupBox_4)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_7.addItem(spacerItem)
        self.temperatureLabel = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setWeight(75)
        font.setBold(True)
        self.temperatureLabel.setFont(font)
        self.temperatureLabel.setObjectName(_fromUtf8("temperatureLabel"))
        self.verticalLayout_7.addWidget(self.temperatureLabel)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.go_button = QtGui.QPushButton(self.centralwidget)
        self.go_button.setObjectName(_fromUtf8("go_button"))
        self.horizontalLayout_2.addWidget(self.go_button)
        self.abort_button = QtGui.QPushButton(self.centralwidget)
        self.abort_button.setObjectName(_fromUtf8("abort_button"))
        self.horizontalLayout_2.addWidget(self.abort_button)
        self.verticalLayout_7.addLayout(self.horizontalLayout_2)
        self.horizontalLayout.addLayout(self.verticalLayout_7)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.dataCurveWidget = CurveWidget(self.groupBox_2)
        self.dataCurveWidget.setOrientation(QtCore.Qt.Horizontal)
        self.dataCurveWidget.setObjectName(_fromUtf8("dataCurveWidget"))
        self.verticalLayout_5.addWidget(self.dataCurveWidget)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.label_6 = QtGui.QLabel(self.groupBox_2)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.horizontalLayout_5.addWidget(self.label_6)
        self.traceNumSpinBox = QtGui.QSpinBox(self.groupBox_2)
        self.traceNumSpinBox.setObjectName(_fromUtf8("traceNumSpinBox"))
        self.horizontalLayout_5.addWidget(self.traceNumSpinBox)
        self.browserTLabel = QtGui.QLabel(self.groupBox_2)
        self.browserTLabel.setObjectName(_fromUtf8("browserTLabel"))
        self.horizontalLayout_5.addWidget(self.browserTLabel)
        self.autoCheckBox = QtGui.QCheckBox(self.groupBox_2)
        self.autoCheckBox.setChecked(True)
        self.autoCheckBox.setObjectName(_fromUtf8("autoCheckBox"))
        self.horizontalLayout_5.addWidget(self.autoCheckBox)
        self.verticalLayout_5.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_4.addWidget(self.groupBox_2)
        self.groupBox_3 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.f0CurveWidget = CurveWidget(self.groupBox_3)
        self.f0CurveWidget.setOrientation(QtCore.Qt.Horizontal)
        self.f0CurveWidget.setObjectName(_fromUtf8("f0CurveWidget"))
        self.verticalLayout_6.addWidget(self.f0CurveWidget)
        self.QCurveWidget = CurveWidget(self.groupBox_3)
        self.QCurveWidget.setOrientation(QtCore.Qt.Horizontal)
        self.QCurveWidget.setObjectName(_fromUtf8("QCurveWidget"))
        self.verticalLayout_6.addWidget(self.QCurveWidget)
        self.horizontalLayout_4.addWidget(self.groupBox_3)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.exptpathButton = QtGui.QPushButton(self.centralwidget)
        self.exptpathButton.setObjectName(_fromUtf8("exptpathButton"))
        self.horizontalLayout_3.addWidget(self.exptpathButton)
        self.exptpathLineEdit = QtGui.QLineEdit(self.centralwidget)
        self.exptpathLineEdit.setObjectName(_fromUtf8("exptpathLineEdit"))
        self.horizontalLayout_3.addWidget(self.exptpathLineEdit)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label_20 = QtGui.QLabel(self.centralwidget)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.horizontalLayout_6.addWidget(self.label_20)
        self.filenumberLabel = QtGui.QLabel(self.centralwidget)
        self.filenumberLabel.setObjectName(_fromUtf8("filenumberLabel"))
        self.horizontalLayout_6.addWidget(self.filenumberLabel)
        self.prefixLineEdit = QtGui.QLineEdit(self.centralwidget)
        self.prefixLineEdit.setObjectName(_fromUtf8("prefixLineEdit"))
        self.horizontalLayout_6.addWidget(self.prefixLineEdit)
        self.saveCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.saveCheckBox.setObjectName(_fromUtf8("saveCheckBox"))
        self.horizontalLayout_6.addWidget(self.saveCheckBox)
        self.checkBox_2 = QtGui.QCheckBox(self.centralwidget)
        self.checkBox_2.setObjectName(_fromUtf8("checkBox_2"))
        self.horizontalLayout_6.addWidget(self.checkBox_2)
        self.verticalLayout.addLayout(self.horizontalLayout_6)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.verticalLayout_4.addLayout(self.horizontalLayout)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.message_box = QtGui.QTextBrowser(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.message_box.sizePolicy().hasHeightForWidth())
        self.message_box.setSizePolicy(sizePolicy)
        self.message_box.setMaximumSize(QtCore.QSize(16777215, 80))
        self.message_box.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
        self.message_box.setObjectName(_fromUtf8("message_box"))
        self.verticalLayout_2.addWidget(self.message_box)
        self.verticalLayout_4.addLayout(self.verticalLayout_2)
        self.cmd_lineEdit = QtGui.QLineEdit(self.centralwidget)
        self.cmd_lineEdit.setObjectName(_fromUtf8("cmd_lineEdit"))
        self.verticalLayout_4.addWidget(self.cmd_lineEdit)
        TSweepWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(TSweepWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 944, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuSave = QtGui.QMenu(self.menuFile)
        self.menuSave.setObjectName(_fromUtf8("menuSave"))
        self.menuInstruments = QtGui.QMenu(self.menubar)
        self.menuInstruments.setObjectName(_fromUtf8("menuInstruments"))
        TSweepWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(TSweepWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        TSweepWindow.setStatusBar(self.statusbar)
        self.actionExperimental_Settings = QtGui.QAction(TSweepWindow)
        self.actionExperimental_Settings.setObjectName(_fromUtf8("actionExperimental_Settings"))
        self.actionExperimental_and_Instrument_Settings = QtGui.QAction(TSweepWindow)
        self.actionExperimental_and_Instrument_Settings.setObjectName(_fromUtf8("actionExperimental_and_Instrument_Settings"))
        self.actionLoad = QtGui.QAction(TSweepWindow)
        self.actionLoad.setObjectName(_fromUtf8("actionLoad"))
        self.menuSave.addAction(self.actionExperimental_Settings)
        self.menuSave.addAction(self.actionExperimental_and_Instrument_Settings)
        self.menuFile.addAction(self.menuSave.menuAction())
        self.menuFile.addAction(self.actionLoad)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuInstruments.menuAction())

        self.retranslateUi(TSweepWindow)
        QtCore.QMetaObject.connectSlotsByName(TSweepWindow)
Esempio n. 45
0
    def __init__(self, fname=None):
        gui.SlabWindow.__init__(self, HDFViewThread)
        self.setupSlabWindow(autoparam=True)
        self.auto_register_gui()

        self.register_param(self.datasets_treeWidget, "dataset")
        self.register_param(self.datapath_lineEdit, "datapath")

        # Setup Plots -- Could be eliminated if QtDesigner plugins were setup
        self.toolbar = Qt.QToolBar()
        self.addToolBar(self.toolbar)
        self.image_widget = ImageWidget(show_xsection=True, show_ysection=True)
        self.image_widget.add_toolbar(self.toolbar)
        self.image_widget.register_all_image_tools()
        self.image_plot = self.image_widget.plot
        self.image_plot_layout.addWidget(self.image_widget)
        self.gui["image_plot"] = self.image_plot
        
        self.line_widget = CurveWidget()
        self.gui["line_plot"] = self.line_plot = self.line_widget.plot #CurvePlot()
        self.line_plot_layout.addWidget(self.line_plot)
        self.line_widget.register_all_image_tools()

        # Context Menu actions
        self.set_x_action = Qt.QAction("Set as x data", self)
        self.clear_x_action = Qt.QAction("Clear x data", self)
        self.datasets_treeWidget.customContextMenuRequested.connect(
            lambda point: self.msg("menu requested"))
        self.datasets_treeWidget.customContextMenuRequested.connect(
            self.datasets_context_menu)

        # Connect launchers
        self.datapath_browse_pushButton.clicked.connect(self.select_datapath)
        self.register_script("set_datapath", self.datapath_lineEdit)
        self.register_script("load_file", self.datafiles_listWidget)
        self.register_script("load_dset", self.datasets_treeWidget)
        self.register_script("set_x_data", self.set_x_action)
        self.register_script("clear_x_data", self.clear_x_action)

        # Syntax Highlighting
        self.highlight = syntax.PythonHighlighter(self.script_textEdit.document())


        # Setup Prompt
        """
        message = "The currently loaded file is stored as 'f'"
        self.shell = InternalShell(self, message=message)
        self.shell.set_font(Qt.QFont("Consolas"))
        self.shell_dockWidget.setWidget(self.shell)
        self.gui["shell"] = self.shell
        """

        self.start_thread()

        if fname is not None:
            self.shell.exit_interpreter()
            directory = os.path.dirname(fname)
            nameitem = namedtuple('pseudoitem', ('filename',))(fname)
            self.msg(fname)
            self.set_param("datapath", directory)
            self.start_script("set_datapath")
            self.start_script("load_file", nameitem)
Esempio n. 46
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1149, 925)
        self.centralwidget = QtGui.QWidget(MainWindow)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.centralwidget.setFont(font)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout_2 = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.scrollArea = QtGui.QScrollArea(self.centralwidget)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 1127, 883))
        self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents"))
        self.gridLayout_3 = QtGui.QGridLayout(self.scrollAreaWidgetContents)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.tabWidget = QtGui.QTabWidget(self.scrollAreaWidgetContents)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.tabWidget.setFont(font)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab_1 = QtGui.QWidget()
        self.tab_1.setObjectName(_fromUtf8("tab_1"))
        self.groupBox_parameter = QtGui.QGroupBox(self.tab_1)
        self.groupBox_parameter.setGeometry(QtCore.QRect(20, 10, 191, 811))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_parameter.setFont(font)
        self.groupBox_parameter.setObjectName(_fromUtf8("groupBox_parameter"))
        self.label_starting_value = QtGui.QLabel(self.groupBox_parameter)
        self.label_starting_value.setGeometry(QtCore.QRect(10, 20, 111, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_starting_value.setFont(font)
        self.label_starting_value.setObjectName(_fromUtf8("label_starting_value"))
        self.lineEdit_start = QtGui.QLineEdit(self.groupBox_parameter)
        self.lineEdit_start.setGeometry(QtCore.QRect(10, 50, 171, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_start.setFont(font)
        self.lineEdit_start.setObjectName(_fromUtf8("lineEdit_start"))
        self.pushButton_plot = QtGui.QPushButton(self.groupBox_parameter)
        self.pushButton_plot.setGeometry(QtCore.QRect(100, 690, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_plot.setFont(font)
        self.pushButton_plot.setObjectName(_fromUtf8("pushButton_plot"))
        self.pushButton_clear = QtGui.QPushButton(self.groupBox_parameter)
        self.pushButton_clear.setEnabled(False)
        self.pushButton_clear.setGeometry(QtCore.QRect(20, 690, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_clear.setFont(font)
        self.pushButton_clear.setObjectName(_fromUtf8("pushButton_clear"))
        self.textEdit_peaks_steps = QtGui.QTextEdit(self.groupBox_parameter)
        self.textEdit_peaks_steps.setGeometry(QtCore.QRect(10, 120, 171, 551))
        font = QtGui.QFont()
        font.setPointSize(20)
        font.setStrikeOut(False)
        font.setKerning(True)
        self.textEdit_peaks_steps.setFont(font)
        self.textEdit_peaks_steps.viewport().setProperty("cursor", QtGui.QCursor(QtCore.Qt.IBeamCursor))
        self.textEdit_peaks_steps.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
        self.textEdit_peaks_steps.setTabStopWidth(80)
        self.textEdit_peaks_steps.setCursorWidth(2)
        self.textEdit_peaks_steps.setObjectName(_fromUtf8("textEdit_peaks_steps"))
        self.label_2 = QtGui.QLabel(self.groupBox_parameter)
        self.label_2.setGeometry(QtCore.QRect(10, 90, 151, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.groupBox_save_general = QtGui.QGroupBox(self.tab_1)
        self.groupBox_save_general.setGeometry(QtCore.QRect(230, 10, 541, 171))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_save_general.setFont(font)
        self.groupBox_save_general.setObjectName(_fromUtf8("groupBox_save_general"))
        self.lineEdit_array_name = QtGui.QLineEdit(self.groupBox_save_general)
        self.lineEdit_array_name.setGeometry(QtCore.QRect(20, 50, 181, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_array_name.setFont(font)
        self.lineEdit_array_name.setObjectName(_fromUtf8("lineEdit_array_name"))
        self.label_4 = QtGui.QLabel(self.groupBox_save_general)
        self.label_4.setGeometry(QtCore.QRect(20, 20, 111, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.pushButton_save = QtGui.QPushButton(self.groupBox_save_general)
        self.pushButton_save.setEnabled(False)
        self.pushButton_save.setGeometry(QtCore.QRect(440, 70, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_save.setFont(font)
        self.pushButton_save.setObjectName(_fromUtf8("pushButton_save"))
        self.label_6 = QtGui.QLabel(self.groupBox_save_general)
        self.label_6.setGeometry(QtCore.QRect(20, 80, 111, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_6.setFont(font)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.lineEdit_directory_save = QtGui.QLineEdit(self.groupBox_save_general)
        self.lineEdit_directory_save.setGeometry(QtCore.QRect(20, 110, 501, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_directory_save.setFont(font)
        self.lineEdit_directory_save.setObjectName(_fromUtf8("lineEdit_directory_save"))
        self.pushButton_browse_save = QtGui.QPushButton(self.groupBox_save_general)
        self.pushButton_browse_save.setGeometry(QtCore.QRect(440, 30, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_browse_save.setFont(font)
        self.pushButton_browse_save.setObjectName(_fromUtf8("pushButton_browse_save"))
        self.label_10 = QtGui.QLabel(self.groupBox_save_general)
        self.label_10.setGeometry(QtCore.QRect(230, 20, 111, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_10.setFont(font)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.lineEdit_user_name = QtGui.QLineEdit(self.groupBox_save_general)
        self.lineEdit_user_name.setGeometry(QtCore.QRect(230, 50, 181, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_user_name.setFont(font)
        self.lineEdit_user_name.setObjectName(_fromUtf8("lineEdit_user_name"))
        self.groupBox_plot = QtGui.QGroupBox(self.tab_1)
        self.groupBox_plot.setGeometry(QtCore.QRect(230, 190, 851, 631))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_plot.setFont(font)
        self.groupBox_plot.setObjectName(_fromUtf8("groupBox_plot"))
        self.mplwidget_general = MatplotlibWidget(self.groupBox_plot)
        self.mplwidget_general.setGeometry(QtCore.QRect(350, 270, 16, 16))
        self.mplwidget_general.setObjectName(_fromUtf8("mplwidget_general"))
        self.widget_general = QtGui.QWidget(self.groupBox_plot)
        self.widget_general.setGeometry(QtCore.QRect(0, 10, 851, 621))
        self.widget_general.setObjectName(_fromUtf8("widget_general"))
        self.groupBox_condition_general = QtGui.QGroupBox(self.tab_1)
        self.groupBox_condition_general.setGeometry(QtCore.QRect(790, 10, 291, 171))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_condition_general.setFont(font)
        self.groupBox_condition_general.setObjectName(_fromUtf8("groupBox_condition_general"))
        self.textEdit_condition = QtGui.QTextEdit(self.groupBox_condition_general)
        self.textEdit_condition.setGeometry(QtCore.QRect(20, 50, 251, 81))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.textEdit_condition.setFont(font)
        self.textEdit_condition.setObjectName(_fromUtf8("textEdit_condition"))
        self.tabWidget.addTab(self.tab_1, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.groupBox_import_keithley = QtGui.QGroupBox(self.tab_2)
        self.groupBox_import_keithley.setGeometry(QtCore.QRect(10, 10, 311, 141))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_import_keithley.setFont(font)
        self.groupBox_import_keithley.setObjectName(_fromUtf8("groupBox_import_keithley"))
        self.lineEdit_directory_keithley = QtGui.QLineEdit(self.groupBox_import_keithley)
        self.lineEdit_directory_keithley.setGeometry(QtCore.QRect(10, 50, 291, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_directory_keithley.setFont(font)
        self.lineEdit_directory_keithley.setObjectName(_fromUtf8("lineEdit_directory_keithley"))
        self.label_7 = QtGui.QLabel(self.groupBox_import_keithley)
        self.label_7.setGeometry(QtCore.QRect(10, 20, 111, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_7.setFont(font)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.pushButton_browse_keithley = QtGui.QPushButton(self.groupBox_import_keithley)
        self.pushButton_browse_keithley.setGeometry(QtCore.QRect(10, 100, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_browse_keithley.setFont(font)
        self.pushButton_browse_keithley.setObjectName(_fromUtf8("pushButton_browse_keithley"))
        self.pushButton_import_keithley = QtGui.QPushButton(self.groupBox_import_keithley)
        self.pushButton_import_keithley.setEnabled(False)
        self.pushButton_import_keithley.setGeometry(QtCore.QRect(120, 100, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_import_keithley.setFont(font)
        self.pushButton_import_keithley.setObjectName(_fromUtf8("pushButton_import_keithley"))
        self.pushButton_copy_keithley = QtGui.QPushButton(self.groupBox_import_keithley)
        self.pushButton_copy_keithley.setEnabled(True)
        self.pushButton_copy_keithley.setGeometry(QtCore.QRect(230, 100, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_copy_keithley.setFont(font)
        self.pushButton_copy_keithley.setObjectName(_fromUtf8("pushButton_copy_keithley"))
        self.tabWidget_plot_keithely = QtGui.QTabWidget(self.tab_2)
        self.tabWidget_plot_keithely.setGeometry(QtCore.QRect(10, 230, 1081, 601))
        self.tabWidget_plot_keithely.setObjectName(_fromUtf8("tabWidget_plot_keithely"))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.widget_import = QtGui.QWidget(self.tab_3)
        self.widget_import.setGeometry(QtCore.QRect(0, 0, 1081, 571))
        self.widget_import.setObjectName(_fromUtf8("widget_import"))
        self.mplwidget_import = MatplotlibWidget(self.widget_import)
        self.mplwidget_import.setGeometry(QtCore.QRect(520, 230, 16, 16))
        self.mplwidget_import.setObjectName(_fromUtf8("mplwidget_import"))
        self.tabWidget_plot_keithely.addTab(self.tab_3, _fromUtf8(""))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.curvewidget_keithley = CurveWidget(self.tab_4)
        self.curvewidget_keithley.setGeometry(QtCore.QRect(0, 10, 1061, 551))
        self.curvewidget_keithley.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget_keithley.setObjectName(_fromUtf8("curvewidget_keithley"))
        self.tabWidget_plot_keithely.addTab(self.tab_4, _fromUtf8(""))
        self.tab_6 = QtGui.QWidget()
        self.tab_6.setObjectName(_fromUtf8("tab_6"))
        self.widget_analysis = QtGui.QWidget(self.tab_6)
        self.widget_analysis.setGeometry(QtCore.QRect(0, 0, 1081, 571))
        self.widget_analysis.setObjectName(_fromUtf8("widget_analysis"))
        self.mplwidget_analysis = MatplotlibWidget(self.widget_analysis)
        self.mplwidget_analysis.setGeometry(QtCore.QRect(520, 230, 16, 16))
        self.mplwidget_analysis.setObjectName(_fromUtf8("mplwidget_analysis"))
        self.tabWidget_plot_keithely.addTab(self.tab_6, _fromUtf8(""))
        self.tab_7 = QtGui.QWidget()
        self.tab_7.setObjectName(_fromUtf8("tab_7"))
        self.tabWidget_plot_keithely.addTab(self.tab_7, _fromUtf8(""))
        self.groupBox_condition_keithley = QtGui.QGroupBox(self.tab_2)
        self.groupBox_condition_keithley.setGeometry(QtCore.QRect(10, 150, 311, 71))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_condition_keithley.setFont(font)
        self.groupBox_condition_keithley.setObjectName(_fromUtf8("groupBox_condition_keithley"))
        self.lineEdit_condition_keithley = QtGui.QLineEdit(self.groupBox_condition_keithley)
        self.lineEdit_condition_keithley.setGeometry(QtCore.QRect(10, 30, 291, 31))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.lineEdit_condition_keithley.setFont(font)
        self.lineEdit_condition_keithley.setObjectName(_fromUtf8("lineEdit_condition_keithley"))
        self.groupBox_visa_keithley = QtGui.QGroupBox(self.tab_2)
        self.groupBox_visa_keithley.setEnabled(False)
        self.groupBox_visa_keithley.setGeometry(QtCore.QRect(330, 10, 321, 211))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_visa_keithley.setFont(font)
        self.groupBox_visa_keithley.setObjectName(_fromUtf8("groupBox_visa_keithley"))
        self.label_chooseVisa = QtGui.QLabel(self.groupBox_visa_keithley)
        self.label_chooseVisa.setGeometry(QtCore.QRect(20, 20, 311, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_chooseVisa.setFont(font)
        self.label_chooseVisa.setObjectName(_fromUtf8("label_chooseVisa"))
        self.comboBox_visa_keithley = QtGui.QComboBox(self.groupBox_visa_keithley)
        self.comboBox_visa_keithley.setGeometry(QtCore.QRect(10, 50, 301, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.comboBox_visa_keithley.setFont(font)
        self.comboBox_visa_keithley.setObjectName(_fromUtf8("comboBox_visa_keithley"))
        self.pushButton_select_keithley = QtGui.QPushButton(self.groupBox_visa_keithley)
        self.pushButton_select_keithley.setGeometry(QtCore.QRect(60, 100, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_select_keithley.setFont(font)
        self.pushButton_select_keithley.setObjectName(_fromUtf8("pushButton_select_keithley"))
        self.pushButton_close_keithley = QtGui.QPushButton(self.groupBox_visa_keithley)
        self.pushButton_close_keithley.setGeometry(QtCore.QRect(190, 100, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_close_keithley.setFont(font)
        self.pushButton_close_keithley.setObjectName(_fromUtf8("pushButton_close_keithley"))
        self.label_8 = QtGui.QLabel(self.groupBox_visa_keithley)
        self.label_8.setGeometry(QtCore.QRect(20, 140, 311, 27))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_8.setFont(font)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.lineEdit_visa_keithley = QtGui.QLineEdit(self.groupBox_visa_keithley)
        self.lineEdit_visa_keithley.setGeometry(QtCore.QRect(10, 170, 301, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_visa_keithley.setFont(font)
        self.lineEdit_visa_keithley.setObjectName(_fromUtf8("lineEdit_visa_keithley"))
        self.groupBox_scan_keithley = QtGui.QGroupBox(self.tab_2)
        self.groupBox_scan_keithley.setEnabled(False)
        self.groupBox_scan_keithley.setGeometry(QtCore.QRect(660, 10, 431, 211))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_scan_keithley.setFont(font)
        self.groupBox_scan_keithley.setObjectName(_fromUtf8("groupBox_scan_keithley"))
        self.label = QtGui.QLabel(self.groupBox_scan_keithley)
        self.label.setGeometry(QtCore.QRect(10, 20, 61, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.radioButton_voltage_keithley = QtGui.QRadioButton(self.groupBox_scan_keithley)
        self.radioButton_voltage_keithley.setGeometry(QtCore.QRect(70, 20, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.radioButton_voltage_keithley.setFont(font)
        self.radioButton_voltage_keithley.setChecked(True)
        self.radioButton_voltage_keithley.setObjectName(_fromUtf8("radioButton_voltage_keithley"))
        self.radioButton_current_keithley = QtGui.QRadioButton(self.groupBox_scan_keithley)
        self.radioButton_current_keithley.setGeometry(QtCore.QRect(150, 20, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.radioButton_current_keithley.setFont(font)
        self.radioButton_current_keithley.setObjectName(_fromUtf8("radioButton_current_keithley"))
        self.pushButton_scan_keithley = QtGui.QPushButton(self.groupBox_scan_keithley)
        self.pushButton_scan_keithley.setGeometry(QtCore.QRect(170, 170, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_scan_keithley.setFont(font)
        self.pushButton_scan_keithley.setObjectName(_fromUtf8("pushButton_scan_keithley"))
        self.pushButton_stop_keithley = QtGui.QPushButton(self.groupBox_scan_keithley)
        self.pushButton_stop_keithley.setEnabled(False)
        self.pushButton_stop_keithley.setGeometry(QtCore.QRect(290, 170, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_stop_keithley.setFont(font)
        self.pushButton_stop_keithley.setObjectName(_fromUtf8("pushButton_stop_keithley"))
        self.pushButton_clear_keithley = QtGui.QPushButton(self.groupBox_scan_keithley)
        self.pushButton_clear_keithley.setEnabled(False)
        self.pushButton_clear_keithley.setGeometry(QtCore.QRect(340, 130, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_clear_keithley.setFont(font)
        self.pushButton_clear_keithley.setObjectName(_fromUtf8("pushButton_clear_keithley"))
        self.label_xname_keithley = QtGui.QLabel(self.groupBox_scan_keithley)
        self.label_xname_keithley.setGeometry(QtCore.QRect(230, 80, 61, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_xname_keithley.setFont(font)
        self.label_xname_keithley.setObjectName(_fromUtf8("label_xname_keithley"))
        self.label_yname_keithley = QtGui.QLabel(self.groupBox_scan_keithley)
        self.label_yname_keithley.setGeometry(QtCore.QRect(230, 40, 61, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_yname_keithley.setFont(font)
        self.label_yname_keithley.setObjectName(_fromUtf8("label_yname_keithley"))
        self.pushButton_pause_keithley = QtGui.QPushButton(self.groupBox_scan_keithley)
        self.pushButton_pause_keithley.setEnabled(False)
        self.pushButton_pause_keithley.setGeometry(QtCore.QRect(220, 130, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_pause_keithley.setFont(font)
        self.pushButton_pause_keithley.setObjectName(_fromUtf8("pushButton_pause_keithley"))
        self.label_yunit_keithley = QtGui.QLabel(self.groupBox_scan_keithley)
        self.label_yunit_keithley.setGeometry(QtCore.QRect(370, 40, 51, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_yunit_keithley.setFont(font)
        self.label_yunit_keithley.setText(_fromUtf8(""))
        self.label_yunit_keithley.setObjectName(_fromUtf8("label_yunit_keithley"))
        self.label_xunit_keithley = QtGui.QLabel(self.groupBox_scan_keithley)
        self.label_xunit_keithley.setGeometry(QtCore.QRect(370, 80, 51, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_xunit_keithley.setFont(font)
        self.label_xunit_keithley.setText(_fromUtf8(""))
        self.label_xunit_keithley.setObjectName(_fromUtf8("label_xunit_keithley"))
        self.tabWidget_scan_keithley = QtGui.QTabWidget(self.groupBox_scan_keithley)
        self.tabWidget_scan_keithley.setGeometry(QtCore.QRect(10, 60, 191, 71))
        self.tabWidget_scan_keithley.setObjectName(_fromUtf8("tabWidget_scan_keithley"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.radioButton_mv_keithley = QtGui.QRadioButton(self.tab)
        self.radioButton_mv_keithley.setGeometry(QtCore.QRect(70, 10, 51, 21))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.radioButton_mv_keithley.setFont(font)
        self.radioButton_mv_keithley.setChecked(True)
        self.radioButton_mv_keithley.setObjectName(_fromUtf8("radioButton_mv_keithley"))
        self.radioButton_v_keithley = QtGui.QRadioButton(self.tab)
        self.radioButton_v_keithley.setGeometry(QtCore.QRect(130, 10, 41, 21))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.radioButton_v_keithley.setFont(font)
        self.radioButton_v_keithley.setObjectName(_fromUtf8("radioButton_v_keithley"))
        self.radioButton_uv_keithley = QtGui.QRadioButton(self.tab)
        self.radioButton_uv_keithley.setGeometry(QtCore.QRect(10, 10, 51, 21))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.radioButton_uv_keithley.setFont(font)
        self.radioButton_uv_keithley.setObjectName(_fromUtf8("radioButton_uv_keithley"))
        self.tabWidget_scan_keithley.addTab(self.tab, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.radioButton_na_keithley = QtGui.QRadioButton(self.tab_5)
        self.radioButton_na_keithley.setGeometry(QtCore.QRect(10, 10, 51, 21))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.radioButton_na_keithley.setFont(font)
        self.radioButton_na_keithley.setChecked(True)
        self.radioButton_na_keithley.setObjectName(_fromUtf8("radioButton_na_keithley"))
        self.radioButton_ua_keithley = QtGui.QRadioButton(self.tab_5)
        self.radioButton_ua_keithley.setGeometry(QtCore.QRect(70, 10, 51, 21))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.radioButton_ua_keithley.setFont(font)
        self.radioButton_ua_keithley.setObjectName(_fromUtf8("radioButton_ua_keithley"))
        self.radioButton_ma_keithley = QtGui.QRadioButton(self.tab_5)
        self.radioButton_ma_keithley.setGeometry(QtCore.QRect(130, 10, 51, 21))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.radioButton_ma_keithley.setFont(font)
        self.radioButton_ma_keithley.setObjectName(_fromUtf8("radioButton_ma_keithley"))
        self.tabWidget_scan_keithley.addTab(self.tab_5, _fromUtf8(""))
        self.label_yname_keithley_2 = QtGui.QLabel(self.groupBox_scan_keithley)
        self.label_yname_keithley_2.setGeometry(QtCore.QRect(10, 140, 121, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_yname_keithley_2.setFont(font)
        self.label_yname_keithley_2.setObjectName(_fromUtf8("label_yname_keithley_2"))
        self.lineEdit_tstep_keithley = QtGui.QLineEdit(self.groupBox_scan_keithley)
        self.lineEdit_tstep_keithley.setGeometry(QtCore.QRect(10, 170, 121, 31))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.lineEdit_tstep_keithley.setFont(font)
        self.lineEdit_tstep_keithley.setObjectName(_fromUtf8("lineEdit_tstep_keithley"))
        self.label_yvalue_keithley = QtGui.QLabel(self.groupBox_scan_keithley)
        self.label_yvalue_keithley.setGeometry(QtCore.QRect(300, 40, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_yvalue_keithley.setFont(font)
        self.label_yvalue_keithley.setText(_fromUtf8(""))
        self.label_yvalue_keithley.setObjectName(_fromUtf8("label_yvalue_keithley"))
        self.label_xvalue_keithley = QtGui.QLabel(self.groupBox_scan_keithley)
        self.label_xvalue_keithley.setGeometry(QtCore.QRect(300, 80, 71, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_xvalue_keithley.setFont(font)
        self.label_xvalue_keithley.setText(_fromUtf8(""))
        self.label_xvalue_keithley.setObjectName(_fromUtf8("label_xvalue_keithley"))
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.tab_31 = QtGui.QWidget()
        self.tab_31.setObjectName(_fromUtf8("tab_31"))
        self.saveBox = QtGui.QGroupBox(self.tab_31)
        self.saveBox.setGeometry(QtCore.QRect(10, 270, 181, 271))
        self.saveBox.setObjectName(_fromUtf8("saveBox"))
        self.browseButton = QtGui.QPushButton(self.saveBox)
        self.browseButton.setGeometry(QtCore.QRect(10, 30, 71, 31))
        self.browseButton.setObjectName(_fromUtf8("browseButton"))
        self.fileTypeLable = QtGui.QLabel(self.saveBox)
        self.fileTypeLable.setGeometry(QtCore.QRect(10, 70, 71, 31))
        self.fileTypeLable.setObjectName(_fromUtf8("fileTypeLable"))
        self.csvRadio = QtGui.QRadioButton(self.saveBox)
        self.csvRadio.setGeometry(QtCore.QRect(90, 90, 51, 21))
        self.csvRadio.setObjectName(_fromUtf8("csvRadio"))
        self.txtRadio = QtGui.QRadioButton(self.saveBox)
        self.txtRadio.setGeometry(QtCore.QRect(90, 70, 51, 21))
        self.txtRadio.setObjectName(_fromUtf8("txtRadio"))
        self.directoryLable = QtGui.QLabel(self.saveBox)
        self.directoryLable.setGeometry(QtCore.QRect(10, 120, 81, 31))
        self.directoryLable.setObjectName(_fromUtf8("directoryLable"))
        self.directory = QtGui.QLineEdit(self.saveBox)
        self.directory.setGeometry(QtCore.QRect(10, 150, 161, 31))
        self.directory.setObjectName(_fromUtf8("directory"))
        self.saveButton = QtGui.QPushButton(self.saveBox)
        self.saveButton.setGeometry(QtCore.QRect(100, 30, 71, 31))
        self.saveButton.setObjectName(_fromUtf8("saveButton"))
        self.folderName = QtGui.QComboBox(self.saveBox)
        self.folderName.setGeometry(QtCore.QRect(10, 220, 161, 31))
        self.folderName.setObjectName(_fromUtf8("folderName"))
        self.folderNameLable = QtGui.QLabel(self.saveBox)
        self.folderNameLable.setGeometry(QtCore.QRect(10, 190, 111, 31))
        self.folderNameLable.setObjectName(_fromUtf8("folderNameLable"))
        self.fileBox = QtGui.QGroupBox(self.tab_31)
        self.fileBox.setGeometry(QtCore.QRect(10, 160, 311, 101))
        self.fileBox.setObjectName(_fromUtf8("fileBox"))
        self.defaultFile = QtGui.QRadioButton(self.fileBox)
        self.defaultFile.setGeometry(QtCore.QRect(10, 20, 131, 31))
        self.defaultFile.setObjectName(_fromUtf8("defaultFile"))
        self.customFile = QtGui.QRadioButton(self.fileBox)
        self.customFile.setGeometry(QtCore.QRect(10, 50, 81, 31))
        self.customFile.setObjectName(_fromUtf8("customFile"))
        self.file = QtGui.QLineEdit(self.fileBox)
        self.file.setGeometry(QtCore.QRect(90, 50, 211, 31))
        self.file.setObjectName(_fromUtf8("file"))
        self.output = QtGui.QTextEdit(self.tab_31)
        self.output.setGeometry(QtCore.QRect(10, 720, 311, 101))
        self.output.setObjectName(_fromUtf8("output"))
        self.outputLable = QtGui.QLabel(self.tab_31)
        self.outputLable.setGeometry(QtCore.QRect(10, 690, 61, 31))
        self.outputLable.setObjectName(_fromUtf8("outputLable"))
        self.errorLable = QtGui.QLabel(self.tab_31)
        self.errorLable.setGeometry(QtCore.QRect(10, 550, 51, 31))
        self.errorLable.setObjectName(_fromUtf8("errorLable"))
        self.error = QtGui.QTextEdit(self.tab_31)
        self.error.setGeometry(QtCore.QRect(10, 580, 311, 101))
        self.error.setObjectName(_fromUtf8("error"))
        self.groupBox_import_keithley_2 = QtGui.QGroupBox(self.tab_31)
        self.groupBox_import_keithley_2.setGeometry(QtCore.QRect(10, 10, 311, 141))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.groupBox_import_keithley_2.setFont(font)
        self.groupBox_import_keithley_2.setObjectName(_fromUtf8("groupBox_import_keithley_2"))
        self.lineEdit_directory_ay = QtGui.QLineEdit(self.groupBox_import_keithley_2)
        self.lineEdit_directory_ay.setGeometry(QtCore.QRect(20, 50, 281, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lineEdit_directory_ay.setFont(font)
        self.lineEdit_directory_ay.setObjectName(_fromUtf8("lineEdit_directory_ay"))
        self.lable_import_ay = QtGui.QLabel(self.groupBox_import_keithley_2)
        self.lable_import_ay.setGeometry(QtCore.QRect(20, 20, 111, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.lable_import_ay.setFont(font)
        self.lable_import_ay.setObjectName(_fromUtf8("lable_import_ay"))
        self.pushButton_browse_ay = QtGui.QPushButton(self.groupBox_import_keithley_2)
        self.pushButton_browse_ay.setGeometry(QtCore.QRect(20, 90, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_browse_ay.setFont(font)
        self.pushButton_browse_ay.setObjectName(_fromUtf8("pushButton_browse_ay"))
        self.pushButton_import_ay = QtGui.QPushButton(self.groupBox_import_keithley_2)
        self.pushButton_import_ay.setEnabled(False)
        self.pushButton_import_ay.setGeometry(QtCore.QRect(120, 90, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_import_ay.setFont(font)
        self.pushButton_import_ay.setObjectName(_fromUtf8("pushButton_import_ay"))
        self.pushButton_copy_ay = QtGui.QPushButton(self.groupBox_import_keithley_2)
        self.pushButton_copy_ay.setEnabled(True)
        self.pushButton_copy_ay.setGeometry(QtCore.QRect(220, 90, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_copy_ay.setFont(font)
        self.pushButton_copy_ay.setObjectName(_fromUtf8("pushButton_copy_ay"))
        self.groupBox = QtGui.QGroupBox(self.tab_31)
        self.groupBox.setGeometry(QtCore.QRect(330, 10, 761, 161))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.selectVisaLable0 = QtGui.QLabel(self.groupBox)
        self.selectVisaLable0.setGeometry(QtCore.QRect(100, 20, 161, 31))
        self.selectVisaLable0.setObjectName(_fromUtf8("selectVisaLable0"))
        self.selectVisa0 = QtGui.QComboBox(self.groupBox)
        self.selectVisa0.setGeometry(QtCore.QRect(260, 20, 371, 31))
        self.selectVisa0.setObjectName(_fromUtf8("selectVisa0"))
        self.visaLable0 = QtGui.QLabel(self.groupBox)
        self.visaLable0.setGeometry(QtCore.QRect(100, 50, 161, 31))
        self.visaLable0.setObjectName(_fromUtf8("visaLable0"))
        self.visa0 = QtGui.QLabel(self.groupBox)
        self.visa0.setGeometry(QtCore.QRect(260, 50, 491, 31))
        self.visa0.setText(_fromUtf8(""))
        self.visa0.setObjectName(_fromUtf8("visa0"))
        self.selectVisaLable1 = QtGui.QLabel(self.groupBox)
        self.selectVisaLable1.setGeometry(QtCore.QRect(100, 90, 161, 31))
        self.selectVisaLable1.setObjectName(_fromUtf8("selectVisaLable1"))
        self.selectVisa1 = QtGui.QComboBox(self.groupBox)
        self.selectVisa1.setGeometry(QtCore.QRect(260, 90, 371, 31))
        self.selectVisa1.setObjectName(_fromUtf8("selectVisa1"))
        self.visa1 = QtGui.QLabel(self.groupBox)
        self.visa1.setGeometry(QtCore.QRect(260, 120, 491, 31))
        self.visa1.setText(_fromUtf8(""))
        self.visa1.setObjectName(_fromUtf8("visa1"))
        self.visaLable1 = QtGui.QLabel(self.groupBox)
        self.visaLable1.setGeometry(QtCore.QRect(100, 120, 161, 31))
        self.visaLable1.setObjectName(_fromUtf8("visaLable1"))
        self.closeVisaButton0 = QtGui.QPushButton(self.groupBox)
        self.closeVisaButton0.setGeometry(QtCore.QRect(640, 20, 111, 31))
        self.closeVisaButton0.setObjectName(_fromUtf8("closeVisaButton0"))
        self.closeVisaButton1 = QtGui.QPushButton(self.groupBox)
        self.closeVisaButton1.setGeometry(QtCore.QRect(640, 90, 111, 31))
        self.closeVisaButton1.setObjectName(_fromUtf8("closeVisaButton1"))
        self.selectVisaButton = QtGui.QPushButton(self.groupBox)
        self.selectVisaButton.setGeometry(QtCore.QRect(10, 70, 81, 31))
        self.selectVisaButton.setObjectName(_fromUtf8("selectVisaButton"))
        self.updateVisaButton = QtGui.QPushButton(self.groupBox)
        self.updateVisaButton.setGeometry(QtCore.QRect(10, 30, 81, 31))
        self.updateVisaButton.setObjectName(_fromUtf8("updateVisaButton"))
        self.groupBox_scan_ay = QtGui.QGroupBox(self.tab_31)
        self.groupBox_scan_ay.setGeometry(QtCore.QRect(200, 270, 121, 271))
        self.groupBox_scan_ay.setObjectName(_fromUtf8("groupBox_scan_ay"))
        self.startButton = QtGui.QPushButton(self.groupBox_scan_ay)
        self.startButton.setGeometry(QtCore.QRect(10, 30, 101, 41))
        self.startButton.setObjectName(_fromUtf8("startButton"))
        self.stopButton = QtGui.QPushButton(self.groupBox_scan_ay)
        self.stopButton.setGeometry(QtCore.QRect(20, 80, 81, 41))
        self.stopButton.setObjectName(_fromUtf8("stopButton"))
        self.timeStepValueLable = QtGui.QLabel(self.groupBox_scan_ay)
        self.timeStepValueLable.setGeometry(QtCore.QRect(20, 190, 81, 31))
        self.timeStepValueLable.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.timeStepValueLable.setObjectName(_fromUtf8("timeStepValueLable"))
        self.timeStepValue = QtGui.QLineEdit(self.groupBox_scan_ay)
        self.timeStepValue.setGeometry(QtCore.QRect(10, 220, 101, 31))
        self.timeStepValue.setObjectName(_fromUtf8("timeStepValue"))
        self.tabWidget_plot_ay = QtGui.QTabWidget(self.tab_31)
        self.tabWidget_plot_ay.setGeometry(QtCore.QRect(330, 180, 761, 641))
        self.tabWidget_plot_ay.setObjectName(_fromUtf8("tabWidget_plot_ay"))
        self.tab_11 = QtGui.QWidget()
        self.tab_11.setObjectName(_fromUtf8("tab_11"))
        self.widget_import_ay = QtGui.QWidget(self.tab_11)
        self.widget_import_ay.setGeometry(QtCore.QRect(0, 0, 751, 611))
        self.widget_import_ay.setObjectName(_fromUtf8("widget_import_ay"))
        self.mplwidget_import_ay = MatplotlibWidget(self.widget_import_ay)
        self.mplwidget_import_ay.setGeometry(QtCore.QRect(370, 280, 16, 16))
        self.mplwidget_import_ay.setObjectName(_fromUtf8("mplwidget_import_ay"))
        self.tabWidget_plot_ay.addTab(self.tab_11, _fromUtf8(""))
        self.tab_21 = QtGui.QWidget()
        self.tab_21.setObjectName(_fromUtf8("tab_21"))
        self.curvewidget_scanPlot_ay = CurveWidget(self.tab_21)
        self.curvewidget_scanPlot_ay.setGeometry(QtCore.QRect(0, 0, 751, 601))
        self.curvewidget_scanPlot_ay.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget_scanPlot_ay.setObjectName(_fromUtf8("curvewidget_scanPlot_ay"))
        self.tabWidget_plot_ay.addTab(self.tab_21, _fromUtf8(""))
        self.tabWidget.addTab(self.tab_31, _fromUtf8(""))
        self.gridLayout_3.addWidget(self.tabWidget, 0, 0, 1, 1)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.gridLayout.addWidget(self.scrollArea, 0, 0, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(2)
        self.tabWidget_plot_keithely.setCurrentIndex(0)
        self.tabWidget_scan_keithley.setCurrentIndex(0)
        self.tabWidget_plot_ay.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)