Beispiel #1
0
"""
Very simple example demonstrating RemoteGraphicsView.

This allows graphics to be rendered in a child process and displayed in the 
parent, which can improve CPU usage on multi-core processors.
"""

import pyqtgraph as pg
from pyqtgraph.widgets.RemoteGraphicsView import RemoteGraphicsView

app = pg.mkQApp()

## Create the widget
v = RemoteGraphicsView(debug=False)  # setting debug=True causes both processes to print information
                                    # about interprocess communication
v.show()
v.setWindowTitle('pyqtgraph example: RemoteGraphicsView')

## v.pg is a proxy to the remote process' pyqtgraph module. All attribute 
## requests and function calls made with this object are forwarded to the
## remote process and executed there. See pyqtgraph.multiprocess.remoteproxy
## for more inormation.
plt = v.pg.PlotItem()
v.setCentralItem(plt)
plt.plot([1,4,2,3,6,2,3,4,2,3], pen='g')

if __name__ == '__main__':
    pg.exec()
# -*- coding: utf-8 -*-
"""
Very simple example demonstrating RemoteGraphicsView.

This allows graphics to be rendered in a child process and displayed in the 
parent, which can improve CPU usage on multi-core processors.
"""
import initExample ## Add path to library (just for examples; you do not need this)

from pyqtgraph.Qt import QtGui, QtCore
import pyqtgraph as pg
from pyqtgraph.widgets.RemoteGraphicsView import RemoteGraphicsView
app = pg.mkQApp()

## Create the widget
v = RemoteGraphicsView(debug=False)  # setting debug=True causes both processes to print information
                                    # about interprocess communication
v.show()
v.setWindowTitle('pyqtgraph example: RemoteGraphicsView')

## v.pg is a proxy to the remote process' pyqtgraph module. All attribute 
## requests and function calls made with this object are forwarded to the
## remote process and executed there. See pyqtgraph.multiprocess.remoteproxy
## for more inormation.
plt = v.pg.PlotItem()
v.setCentralItem(plt)
plt.plot([1,4,2,3,6,2,3,4,2,3], pen='g')


## Start Qt event loop unless running in interactive mode or using pyside.
if __name__ == '__main__':
    def setupUi(self, Plotting_Gui):
        Plotting_Gui.setObjectName(_fromUtf8("Plotting_Gui"))
        Plotting_Gui.resize(917, 588)
        self.centralwidget = QtGui.QWidget(Plotting_Gui)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.Plot_1 = RemoteGraphicsView(self.centralwidget)
        self.Plot_1.setObjectName(_fromUtf8("Plot_1"))
        self.gridLayout.addWidget(self.Plot_1, 0, 6, 1, 1)
        self.Plot_2 = RemoteGraphicsView(self.centralwidget)
        self.Plot_2.setEnabled(True)
        self.Plot_2.setAutoFillBackground(False)
        self.Plot_2.setObjectName(_fromUtf8("Plot_2"))
        self.gridLayout.addWidget(self.Plot_2, 1, 6, 1, 1)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.formLayout_9 = QtGui.QFormLayout()
        self.formLayout_9.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_9.setObjectName(_fromUtf8("formLayout_9"))
        self.BaudDropDown = QtGui.QComboBox(self.centralwidget)
        self.BaudDropDown.setEditable(True)
        self.BaudDropDown.setObjectName(_fromUtf8("BaudDropDown"))
        self.formLayout_9.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.BaudDropDown)
        self.Baud_Label = QtGui.QLabel(self.centralwidget)
        self.Baud_Label.setAlignment(QtCore.Qt.AlignRight
                                     | QtCore.Qt.AlignTrailing
                                     | QtCore.Qt.AlignVCenter)
        self.Baud_Label.setObjectName(_fromUtf8("Baud_Label"))
        self.formLayout_9.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.Baud_Label)
        self.PortDropDown = QtGui.QComboBox(self.centralwidget)
        self.PortDropDown.setObjectName(_fromUtf8("PortDropDown"))
        self.formLayout_9.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.PortDropDown)
        self.SampleRateBox_2 = QtGui.QComboBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.SampleRateBox_2.sizePolicy().hasHeightForWidth())
        self.SampleRateBox_2.setSizePolicy(sizePolicy)
        self.SampleRateBox_2.setEditable(True)
        self.SampleRateBox_2.setObjectName(_fromUtf8("SampleRateBox_2"))
        self.formLayout_9.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.SampleRateBox_2)
        self.Port_Label = QtGui.QLabel(self.centralwidget)
        self.Port_Label.setAlignment(QtCore.Qt.AlignRight
                                     | QtCore.Qt.AlignTrailing
                                     | QtCore.Qt.AlignVCenter)
        self.Port_Label.setObjectName(_fromUtf8("Port_Label"))
        self.formLayout_9.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.Port_Label)
        self.Sample_Label = QtGui.QLabel(self.centralwidget)
        self.Sample_Label.setAlignment(QtCore.Qt.AlignRight
                                       | QtCore.Qt.AlignTrailing
                                       | QtCore.Qt.AlignVCenter)
        self.Sample_Label.setObjectName(_fromUtf8("Sample_Label"))
        self.formLayout_9.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.Sample_Label)
        self.gridLayout_2.addLayout(self.formLayout_9, 4, 2, 1, 1)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.Plot_Button = QtGui.QPushButton(self.centralwidget)
        self.Plot_Button.setObjectName(_fromUtf8("Plot_Button"))
        self.verticalLayout_3.addWidget(self.Plot_Button)
        self.Write_Button = QtGui.QPushButton(self.centralwidget)
        self.Write_Button.setObjectName(_fromUtf8("Write_Button"))
        self.verticalLayout_3.addWidget(self.Write_Button)
        self.FFT_button = QtGui.QPushButton(self.centralwidget)
        self.FFT_button.setObjectName(_fromUtf8("FFT_button"))
        self.verticalLayout_3.addWidget(self.FFT_button)
        self.gridLayout_2.addLayout(self.verticalLayout_3, 4, 0, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_2, 4, 6, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.DualPlot = QtGui.QCheckBox(self.centralwidget)
        self.DualPlot.setObjectName(_fromUtf8("DualPlot"))
        self.horizontalLayout_2.addWidget(self.DualPlot)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.current_mode_label = QtGui.QLabel(self.centralwidget)
        self.current_mode_label.setAlignment(QtCore.Qt.AlignRight
                                             | QtCore.Qt.AlignTrailing
                                             | QtCore.Qt.AlignVCenter)
        self.current_mode_label.setObjectName(_fromUtf8("current_mode_label"))
        self.horizontalLayout_3.addWidget(self.current_mode_label)
        self.mode_label = QtGui.QLabel(self.centralwidget)
        self.mode_label.setObjectName(_fromUtf8("mode_label"))
        self.horizontalLayout_3.addWidget(self.mode_label)
        self.horizontalLayout_2.addLayout(self.horizontalLayout_3)
        self.gridLayout.addLayout(self.horizontalLayout_2, 3, 6, 1, 1)
        Plotting_Gui.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(Plotting_Gui)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 917, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuConfig = QtGui.QMenu(self.menubar)
        self.menuConfig.setObjectName(_fromUtf8("menuConfig"))
        self.menuFile_type = QtGui.QMenu(self.menuConfig)
        self.menuFile_type.setToolTip(_fromUtf8(""))
        self.menuFile_type.setWhatsThis(_fromUtf8(""))
        self.menuFile_type.setObjectName(_fromUtf8("menuFile_type"))
        self.menuExport_Options = QtGui.QMenu(self.menuConfig)
        self.menuExport_Options.setObjectName(_fromUtf8("menuExport_Options"))
        self.menuInput_Bit_order = QtGui.QMenu(self.menuConfig)
        self.menuInput_Bit_order.setObjectName(
            _fromUtf8("menuInput_Bit_order"))
        self.menuMode = QtGui.QMenu(self.menuConfig)
        self.menuMode.setObjectName(_fromUtf8("menuMode"))
        Plotting_Gui.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(Plotting_Gui)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        Plotting_Gui.setStatusBar(self.statusbar)
        self.actionScan_Ports = QtGui.QAction(Plotting_Gui)
        self.actionScan_Ports.setObjectName(_fromUtf8("actionScan_Ports"))
        self.actionExit = QtGui.QAction(Plotting_Gui)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionCSV = QtGui.QAction(Plotting_Gui)
        self.actionCSV.setCheckable(True)
        self.actionCSV.setChecked(True)
        self.actionCSV.setObjectName(_fromUtf8("actionCSV"))
        self.actionTXT = QtGui.QAction(Plotting_Gui)
        self.actionTXT.setCheckable(True)
        self.actionTXT.setObjectName(_fromUtf8("actionTXT"))
        self.actionMAT = QtGui.QAction(Plotting_Gui)
        self.actionMAT.setCheckable(True)
        self.actionMAT.setObjectName(_fromUtf8("actionMAT"))
        self.actionSeperate_axis = QtGui.QAction(Plotting_Gui)
        self.actionSeperate_axis.setObjectName(
            _fromUtf8("actionSeperate_axis"))
        self.actionSeperate_Axis = QtGui.QAction(Plotting_Gui)
        self.actionSeperate_Axis.setCheckable(True)
        self.actionSeperate_Axis.setChecked(True)
        self.actionSeperate_Axis.setObjectName(
            _fromUtf8("actionSeperate_Axis"))
        self.actionCombined_Axis = QtGui.QAction(Plotting_Gui)
        self.actionCombined_Axis.setCheckable(True)
        self.actionCombined_Axis.setObjectName(
            _fromUtf8("actionCombined_Axis"))
        self.actionCapture_Depth = QtGui.QAction(Plotting_Gui)
        self.actionCapture_Depth.setObjectName(
            _fromUtf8("actionCapture_Depth"))
        self.actionNameSession = QtGui.QAction(Plotting_Gui)
        self.actionNameSession.setObjectName(_fromUtf8("actionNameSession"))
        self.actionInput_Bit_Depth = QtGui.QAction(Plotting_Gui)
        self.actionInput_Bit_Depth.setObjectName(
            _fromUtf8("actionInput_Bit_Depth"))
        self.actionMSB_first = QtGui.QAction(Plotting_Gui)
        self.actionMSB_first.setCheckable(True)
        self.actionMSB_first.setChecked(False)
        self.actionMSB_first.setObjectName(_fromUtf8("actionMSB_first"))
        self.actionLSB_first = QtGui.QAction(Plotting_Gui)
        self.actionLSB_first.setCheckable(True)
        self.actionLSB_first.setChecked(True)
        self.actionLSB_first.setObjectName(_fromUtf8("actionLSB_first"))
        self.actionConsole = QtGui.QAction(Plotting_Gui)
        self.actionConsole.setObjectName(_fromUtf8("actionConsole"))
        self.actionSerial = QtGui.QAction(Plotting_Gui)
        self.actionSerial.setCheckable(True)
        self.actionSerial.setChecked(True)
        self.actionSerial.setObjectName(_fromUtf8("actionSerial"))
        self.actionNI_DAQ = QtGui.QAction(Plotting_Gui)
        self.actionNI_DAQ.setCheckable(True)
        self.actionNI_DAQ.setObjectName(_fromUtf8("actionNI_DAQ"))
        self.actionUSB = QtGui.QAction(Plotting_Gui)
        self.actionUSB.setObjectName(_fromUtf8("actionUSB"))
        self.menuFile.addAction(self.actionExit)
        self.menuFile.addAction(self.actionNameSession)
        self.menuFile.addAction(self.actionConsole)
        self.menuFile_type.addAction(self.actionCSV)
        self.menuFile_type.addAction(self.actionTXT)
        self.menuFile_type.addAction(self.actionMAT)
        self.menuExport_Options.addAction(self.actionSeperate_Axis)
        self.menuExport_Options.addAction(self.actionCombined_Axis)
        self.menuInput_Bit_order.addAction(self.actionLSB_first)
        self.menuInput_Bit_order.addAction(self.actionMSB_first)
        self.menuMode.addAction(self.actionSerial)
        self.menuMode.addAction(self.actionNI_DAQ)
        self.menuMode.addAction(self.actionUSB)
        self.menuConfig.addAction(self.actionScan_Ports)
        self.menuConfig.addAction(self.menuFile_type.menuAction())
        self.menuConfig.addAction(self.menuExport_Options.menuAction())
        self.menuConfig.addAction(self.actionInput_Bit_Depth)
        self.menuConfig.addAction(self.menuInput_Bit_order.menuAction())
        self.menuConfig.addAction(self.menuMode.menuAction())
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuConfig.menuAction())

        self.retranslateUi(Plotting_Gui)
        QtCore.QMetaObject.connectSlotsByName(Plotting_Gui)
Beispiel #4
0
"""
Very simple example demonstrating RemoteGraphicsView.

This allows graphics to be rendered in a child process and displayed in the 
parent, which can improve CPU usage on multi-core processors.
"""
import initExample  ## Add path to library (just for examples; you do not need this)

from pyqtgraph.Qt import QtGui, QtCore
import pyqtgraph as pg
from pyqtgraph.widgets.RemoteGraphicsView import RemoteGraphicsView

app = pg.mkQApp()

## Create the widget
v = RemoteGraphicsView(debug=False)
v.show()
v.setWindowTitle('pyqtgraph example: RemoteGraphicsView')

## v.pg is a proxy to the remote process' pyqtgraph module. All attribute
## requests and function calls made with this object are forwarded to the
## remote process and executed there. See pyqtgraph.multiprocess.remoteproxy
## for more inormation.
plt = v.pg.PlotItem()
v.setCentralItem(plt)
plt.plot([1, 4, 2, 3, 6, 2, 3, 4, 2, 3], pen='g')

## Start Qt event loop unless running in interactive mode or using pyside.
if __name__ == '__main__':
    import sys
    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
class Ui_Plotting_Gui(object):
    def setupUi(self, Plotting_Gui):
        Plotting_Gui.setObjectName(_fromUtf8("Plotting_Gui"))
        Plotting_Gui.resize(917, 588)
        self.centralwidget = QtGui.QWidget(Plotting_Gui)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.Plot_1 = RemoteGraphicsView(self.centralwidget)
        self.Plot_1.setObjectName(_fromUtf8("Plot_1"))
        self.gridLayout.addWidget(self.Plot_1, 0, 6, 1, 1)
        self.Plot_2 = RemoteGraphicsView(self.centralwidget)
        self.Plot_2.setEnabled(True)
        self.Plot_2.setAutoFillBackground(False)
        self.Plot_2.setObjectName(_fromUtf8("Plot_2"))
        self.gridLayout.addWidget(self.Plot_2, 1, 6, 1, 1)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.formLayout_9 = QtGui.QFormLayout()
        self.formLayout_9.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_9.setObjectName(_fromUtf8("formLayout_9"))
        self.BaudDropDown = QtGui.QComboBox(self.centralwidget)
        self.BaudDropDown.setEditable(True)
        self.BaudDropDown.setObjectName(_fromUtf8("BaudDropDown"))
        self.formLayout_9.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.BaudDropDown)
        self.Baud_Label = QtGui.QLabel(self.centralwidget)
        self.Baud_Label.setAlignment(QtCore.Qt.AlignRight
                                     | QtCore.Qt.AlignTrailing
                                     | QtCore.Qt.AlignVCenter)
        self.Baud_Label.setObjectName(_fromUtf8("Baud_Label"))
        self.formLayout_9.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.Baud_Label)
        self.PortDropDown = QtGui.QComboBox(self.centralwidget)
        self.PortDropDown.setObjectName(_fromUtf8("PortDropDown"))
        self.formLayout_9.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.PortDropDown)
        self.SampleRateBox_2 = QtGui.QComboBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.SampleRateBox_2.sizePolicy().hasHeightForWidth())
        self.SampleRateBox_2.setSizePolicy(sizePolicy)
        self.SampleRateBox_2.setEditable(True)
        self.SampleRateBox_2.setObjectName(_fromUtf8("SampleRateBox_2"))
        self.formLayout_9.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.SampleRateBox_2)
        self.Port_Label = QtGui.QLabel(self.centralwidget)
        self.Port_Label.setAlignment(QtCore.Qt.AlignRight
                                     | QtCore.Qt.AlignTrailing
                                     | QtCore.Qt.AlignVCenter)
        self.Port_Label.setObjectName(_fromUtf8("Port_Label"))
        self.formLayout_9.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.Port_Label)
        self.Sample_Label = QtGui.QLabel(self.centralwidget)
        self.Sample_Label.setAlignment(QtCore.Qt.AlignRight
                                       | QtCore.Qt.AlignTrailing
                                       | QtCore.Qt.AlignVCenter)
        self.Sample_Label.setObjectName(_fromUtf8("Sample_Label"))
        self.formLayout_9.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.Sample_Label)
        self.gridLayout_2.addLayout(self.formLayout_9, 4, 2, 1, 1)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.Plot_Button = QtGui.QPushButton(self.centralwidget)
        self.Plot_Button.setObjectName(_fromUtf8("Plot_Button"))
        self.verticalLayout_3.addWidget(self.Plot_Button)
        self.Write_Button = QtGui.QPushButton(self.centralwidget)
        self.Write_Button.setObjectName(_fromUtf8("Write_Button"))
        self.verticalLayout_3.addWidget(self.Write_Button)
        self.FFT_button = QtGui.QPushButton(self.centralwidget)
        self.FFT_button.setObjectName(_fromUtf8("FFT_button"))
        self.verticalLayout_3.addWidget(self.FFT_button)
        self.gridLayout_2.addLayout(self.verticalLayout_3, 4, 0, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_2, 4, 6, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.DualPlot = QtGui.QCheckBox(self.centralwidget)
        self.DualPlot.setObjectName(_fromUtf8("DualPlot"))
        self.horizontalLayout_2.addWidget(self.DualPlot)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.current_mode_label = QtGui.QLabel(self.centralwidget)
        self.current_mode_label.setAlignment(QtCore.Qt.AlignRight
                                             | QtCore.Qt.AlignTrailing
                                             | QtCore.Qt.AlignVCenter)
        self.current_mode_label.setObjectName(_fromUtf8("current_mode_label"))
        self.horizontalLayout_3.addWidget(self.current_mode_label)
        self.mode_label = QtGui.QLabel(self.centralwidget)
        self.mode_label.setObjectName(_fromUtf8("mode_label"))
        self.horizontalLayout_3.addWidget(self.mode_label)
        self.horizontalLayout_2.addLayout(self.horizontalLayout_3)
        self.gridLayout.addLayout(self.horizontalLayout_2, 3, 6, 1, 1)
        Plotting_Gui.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(Plotting_Gui)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 917, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuConfig = QtGui.QMenu(self.menubar)
        self.menuConfig.setObjectName(_fromUtf8("menuConfig"))
        self.menuFile_type = QtGui.QMenu(self.menuConfig)
        self.menuFile_type.setToolTip(_fromUtf8(""))
        self.menuFile_type.setWhatsThis(_fromUtf8(""))
        self.menuFile_type.setObjectName(_fromUtf8("menuFile_type"))
        self.menuExport_Options = QtGui.QMenu(self.menuConfig)
        self.menuExport_Options.setObjectName(_fromUtf8("menuExport_Options"))
        self.menuInput_Bit_order = QtGui.QMenu(self.menuConfig)
        self.menuInput_Bit_order.setObjectName(
            _fromUtf8("menuInput_Bit_order"))
        self.menuMode = QtGui.QMenu(self.menuConfig)
        self.menuMode.setObjectName(_fromUtf8("menuMode"))
        Plotting_Gui.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(Plotting_Gui)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        Plotting_Gui.setStatusBar(self.statusbar)
        self.actionScan_Ports = QtGui.QAction(Plotting_Gui)
        self.actionScan_Ports.setObjectName(_fromUtf8("actionScan_Ports"))
        self.actionExit = QtGui.QAction(Plotting_Gui)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionCSV = QtGui.QAction(Plotting_Gui)
        self.actionCSV.setCheckable(True)
        self.actionCSV.setChecked(True)
        self.actionCSV.setObjectName(_fromUtf8("actionCSV"))
        self.actionTXT = QtGui.QAction(Plotting_Gui)
        self.actionTXT.setCheckable(True)
        self.actionTXT.setObjectName(_fromUtf8("actionTXT"))
        self.actionMAT = QtGui.QAction(Plotting_Gui)
        self.actionMAT.setCheckable(True)
        self.actionMAT.setObjectName(_fromUtf8("actionMAT"))
        self.actionSeperate_axis = QtGui.QAction(Plotting_Gui)
        self.actionSeperate_axis.setObjectName(
            _fromUtf8("actionSeperate_axis"))
        self.actionSeperate_Axis = QtGui.QAction(Plotting_Gui)
        self.actionSeperate_Axis.setCheckable(True)
        self.actionSeperate_Axis.setChecked(True)
        self.actionSeperate_Axis.setObjectName(
            _fromUtf8("actionSeperate_Axis"))
        self.actionCombined_Axis = QtGui.QAction(Plotting_Gui)
        self.actionCombined_Axis.setCheckable(True)
        self.actionCombined_Axis.setObjectName(
            _fromUtf8("actionCombined_Axis"))
        self.actionCapture_Depth = QtGui.QAction(Plotting_Gui)
        self.actionCapture_Depth.setObjectName(
            _fromUtf8("actionCapture_Depth"))
        self.actionNameSession = QtGui.QAction(Plotting_Gui)
        self.actionNameSession.setObjectName(_fromUtf8("actionNameSession"))
        self.actionInput_Bit_Depth = QtGui.QAction(Plotting_Gui)
        self.actionInput_Bit_Depth.setObjectName(
            _fromUtf8("actionInput_Bit_Depth"))
        self.actionMSB_first = QtGui.QAction(Plotting_Gui)
        self.actionMSB_first.setCheckable(True)
        self.actionMSB_first.setChecked(False)
        self.actionMSB_first.setObjectName(_fromUtf8("actionMSB_first"))
        self.actionLSB_first = QtGui.QAction(Plotting_Gui)
        self.actionLSB_first.setCheckable(True)
        self.actionLSB_first.setChecked(True)
        self.actionLSB_first.setObjectName(_fromUtf8("actionLSB_first"))
        self.actionConsole = QtGui.QAction(Plotting_Gui)
        self.actionConsole.setObjectName(_fromUtf8("actionConsole"))
        self.actionSerial = QtGui.QAction(Plotting_Gui)
        self.actionSerial.setCheckable(True)
        self.actionSerial.setChecked(True)
        self.actionSerial.setObjectName(_fromUtf8("actionSerial"))
        self.actionNI_DAQ = QtGui.QAction(Plotting_Gui)
        self.actionNI_DAQ.setCheckable(True)
        self.actionNI_DAQ.setObjectName(_fromUtf8("actionNI_DAQ"))
        self.actionUSB = QtGui.QAction(Plotting_Gui)
        self.actionUSB.setObjectName(_fromUtf8("actionUSB"))
        self.menuFile.addAction(self.actionExit)
        self.menuFile.addAction(self.actionNameSession)
        self.menuFile.addAction(self.actionConsole)
        self.menuFile_type.addAction(self.actionCSV)
        self.menuFile_type.addAction(self.actionTXT)
        self.menuFile_type.addAction(self.actionMAT)
        self.menuExport_Options.addAction(self.actionSeperate_Axis)
        self.menuExport_Options.addAction(self.actionCombined_Axis)
        self.menuInput_Bit_order.addAction(self.actionLSB_first)
        self.menuInput_Bit_order.addAction(self.actionMSB_first)
        self.menuMode.addAction(self.actionSerial)
        self.menuMode.addAction(self.actionNI_DAQ)
        self.menuMode.addAction(self.actionUSB)
        self.menuConfig.addAction(self.actionScan_Ports)
        self.menuConfig.addAction(self.menuFile_type.menuAction())
        self.menuConfig.addAction(self.menuExport_Options.menuAction())
        self.menuConfig.addAction(self.actionInput_Bit_Depth)
        self.menuConfig.addAction(self.menuInput_Bit_order.menuAction())
        self.menuConfig.addAction(self.menuMode.menuAction())
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuConfig.menuAction())

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

    def retranslateUi(self, Plotting_Gui):
        Plotting_Gui.setWindowTitle(
            _translate("Plotting_Gui", "Logging App", None))
        self.BaudDropDown.setStatusTip(
            _translate("Plotting_Gui",
                       "Set the baud rate of the incoming data.", None))
        self.Baud_Label.setText(_translate("Plotting_Gui", "Baud Rate", None))
        self.PortDropDown.setStatusTip(
            _translate("Plotting_Gui", "Choose what COM Port to use.", None))
        self.SampleRateBox_2.setStatusTip(
            _translate("Plotting_Gui",
                       "Set the Down sample rate of the incoming data.", None))
        self.Port_Label.setText(_translate("Plotting_Gui", "Port: ", None))
        self.Sample_Label.setText(
            _translate("Plotting_Gui", "Down Sample Rate", None))
        self.Plot_Button.setStatusTip(
            _translate("Plotting_Gui",
                       "Start Plotting the selected COM Port\'s data.", None))
        self.Plot_Button.setText(_translate("Plotting_Gui", "Open Port", None))
        self.Write_Button.setStatusTip(
            _translate("Plotting_Gui", "Start writing data to file.", None))
        self.Write_Button.setText(_translate("Plotting_Gui", "Write", None))
        self.FFT_button.setStatusTip(
            _translate("Plotting_Gui",
                       "Plot the Fast Fourier Transform of the data.", None))
        self.FFT_button.setText(_translate("Plotting_Gui", "FFT", None))
        self.DualPlot.setStatusTip(
            _translate(
                "Plotting_Gui",
                "Willl create a second plot where the FFT of the signal is plotted.",
                None))
        self.DualPlot.setText(
            _translate("Plotting_Gui", "Dual Plot signal and FFT", None))
        self.current_mode_label.setText(
            _translate("Plotting_Gui", "Current Mode:", None))
        self.mode_label.setText(_translate("Plotting_Gui", "Serial", None))
        self.menuFile.setTitle(_translate("Plotting_Gui", "File", None))
        self.menuConfig.setTitle(_translate("Plotting_Gui", "Config", None))
        self.menuFile_type.setStatusTip(
            _translate("Plotting_Gui", "Change what file format to export to",
                       None))
        self.menuFile_type.setTitle(
            _translate("Plotting_Gui", "File Type", None))
        self.menuExport_Options.setStatusTip(
            _translate("Plotting_Gui", "Choose methods of exporting axis data",
                       None))
        self.menuExport_Options.setTitle(
            _translate("Plotting_Gui", "Export Axis Options", None))
        self.menuInput_Bit_order.setTitle(
            _translate("Plotting_Gui", "Input Bit order", None))
        self.menuMode.setTitle(_translate("Plotting_Gui", "Mode", None))
        self.actionScan_Ports.setText(
            _translate("Plotting_Gui", "Scan Ports", None))
        self.actionScan_Ports.setStatusTip(
            _translate("Plotting_Gui", "Scans for new COM ports", None))
        self.actionScan_Ports.setShortcut(
            _translate("Plotting_Gui", "Ctrl+W", None))
        self.actionExit.setText(_translate("Plotting_Gui", "Exit", None))
        self.actionExit.setStatusTip(
            _translate("Plotting_Gui", "Exit Application", None))
        self.actionExit.setShortcut(
            _translate("Plotting_Gui", "Ctrl+Shift+Z", None))
        self.actionCSV.setText(_translate("Plotting_Gui", ".csv", None))
        self.actionCSV.setStatusTip(
            _translate("Plotting_Gui", "Use \'.csv\' file type", None))
        self.actionTXT.setText(_translate("Plotting_Gui", ".txt", None))
        self.actionTXT.setStatusTip(
            _translate("Plotting_Gui", "Use \'.txt\' file type", None))
        self.actionMAT.setText(_translate("Plotting_Gui", ".mat", None))
        self.actionMAT.setStatusTip(
            _translate("Plotting_Gui", "Use \'.mat\' file type", None))
        self.actionSeperate_axis.setText(
            _translate("Plotting_Gui", "Seperate axis", None))
        self.actionSeperate_Axis.setText(
            _translate("Plotting_Gui", "Seperate Axis", None))
        self.actionSeperate_Axis.setStatusTip(
            _translate(
                "Plotting_Gui",
                "Writes two seperate files for each axis, labeled X and Y respectively",
                None))
        self.actionCombined_Axis.setText(
            _translate("Plotting_Gui", "Combined Axis", None))
        self.actionCombined_Axis.setStatusTip(
            _translate(
                "Plotting_Gui",
                "Writes a single file of two column data in the order X Y",
                None))
        self.actionCapture_Depth.setText(
            _translate("Plotting_Gui", "Capture Depth", None))
        self.actionNameSession.setText(
            _translate("Plotting_Gui", "Name Session", None))
        self.actionNameSession.setStatusTip(
            _translate(
                "Plotting_Gui",
                "Set name for current session. Files written this session will begin with this name.",
                None))
        self.actionNameSession.setShortcut(
            _translate("Plotting_Gui", "Ctrl+S", None))
        self.actionInput_Bit_Depth.setText(
            _translate("Plotting_Gui", "Input Bit Depth", None))
        self.actionInput_Bit_Depth.setStatusTip(
            _translate(
                "Plotting_Gui",
                "Set the bit depth of the values to be recieved. Packets will be joined to proper size.",
                None))
        self.actionInput_Bit_Depth.setShortcut(
            _translate("Plotting_Gui", "Ctrl+B", None))
        self.actionMSB_first.setText(
            _translate("Plotting_Gui", "MSB first", None))
        self.actionMSB_first.setStatusTip(
            _translate(
                "Plotting_Gui",
                "Packets will be joined and resulting value will be treated as a MSB first number",
                None))
        self.actionLSB_first.setText(
            _translate("Plotting_Gui", "LSB first", None))
        self.actionLSB_first.setStatusTip(
            _translate(
                "Plotting_Gui",
                "Packets will be joined and resulting value will be treated as a LSB first number",
                None))
        self.actionConsole.setText(_translate("Plotting_Gui", "Console", None))
        self.actionConsole.setStatusTip(
            _translate("Plotting_Gui",
                       "Opens a Python console for debugging purposes", None))
        self.actionConsole.setShortcut(
            _translate("Plotting_Gui", "Ctrl+Shift+C", None))
        self.actionSerial.setText(_translate("Plotting_Gui", "Serial", None))
        self.actionSerial.setStatusTip(
            _translate("Plotting_Gui",
                       "Using PySerial to interface to serial interfaces. ",
                       None))
        self.actionNI_DAQ.setText(_translate("Plotting_Gui", "NI-DAQ", None))
        self.actionNI_DAQ.setStatusTip(
            _translate(
                "Plotting_Gui",
                "Using the PyDAQmx library to interface with NI Data Acquisition cards. (Note: Must have the proper NI Drivers Installed first)",
                None))
        self.actionUSB.setText(
            _translate("Plotting_Gui", "USB (Experimental)", None))