Commits

Anonymous committed a37656a

Added the ability to change which valves are used in the interface.

Comments (0)

Files changed (4)

         self.newBlock()
         self.reinforceOn(1.5)  #primes the reinforcer for the first trial
         
+        self.csPlusValve = valveList[0]
+        self.csMinusValve = valveList[1]
+        self.neutralValve = valveList[2]
+        self.genValve1 = valveList[3]
+        self.genValve2 = valveList[4]
+        self.genValve3 = valveList[5]
+        
         
     def initVars(self):
         self.statesStarted = 8*[0]
         
         #Valve Assignment
 
-        self.csPlusValve = 1
-        self.csMinusValve = 4
-        self.neutralValve = 2
-        self.genValve1 = 2
-        self.genValve2 = 3
-        self.genValve3 = 4
+#        self.csPlusValve = 1
+#        self.csMinusValve = 4
+#        self.neutralValve = 2
+#        self.genValve1 = 2
+#        self.genValve2 = 3
+#        self.genValve3 = 4
+
+
+
         
         if self.sessionType == 'D2':
             #simple semi-random alternation between S+ and S-
         #self.bCurPhase = False
         self.setWaterTime()
         self.curPhase = InternalEvent()
+        self.valveList = [-99,-99,-99,-99,-99,-99,-99]        #CS+, CS-, Neutral, G1, G2,G3 stimuli
         
     def commitTextFile(self):
         subjName = self.teSubjectName.toPlainText()
         self.btnGenTest.setEnabled(True)
         self.btnStartPhase5.setEnabled(True)
         
+    def enableValveSb(self):
+        self.sbCSplus.setEnabled(True)
+        self.sbCSminus.setEnabled(True)
+        self.sbGen_1.setEnabled(True)
+        self.sbGen_2.setEnabled(True)
+        self.sbGen_3.setEnabled(True)
+        self.sbNeutral.setEnabled(True)
+        
+    def valveAssignmentPreset1(self):
+        self.sbCSplus.setValue(2)
+        self.sbCSminus.setValue(3)
+        self.sbNeutral.setValue(3)
+        self.sbGen_1.setValue(1)
+        self.sbGen_2.setValue(2)
+        self.sbGen_3.setValue(3)
+        self.btnValveCommit.setEnabled(True)
+        
+    def valveAssignmentPreset2(self):
+        self.sbCSplus.setValue(1)
+        self.sbCSminus.setValue(4)
+        self.sbNeutral.setValue(3)
+        self.sbGen_1.setValue(1)
+        self.sbGen_2.setValue(2)
+        self.sbGen_3.setValue(3)
+        self.btnValveCommit.setEnabled(True)
+        
+    def valveCustomEnable(self):
+        
+        self.enableValveSb()
+        self.btnValveCommit.setEnabled(True)
+    
+    def valveCommit(self):
+        
+        self.valveList[0] = self.sbCSplus.value()
+        self.valveList[1] = self.sbCSminus.value()
+        self.valveList[2] = self.sbNeutral.value()
+        self.valveList[3] = self.sbGen_1.value()
+        self.valveList[4] = self.sbGen_2.value()
+        self.valveList[5] = self.sbGen_3.value()
+        
+        self.enableStartButtons()
+        
     def commitBtnClicked(self):
         print 'ses info commited'
-        self.enableStartButtons()
+        self.btnValveAs1.setEnabled(True)
+        self.btnValveAs2.setEnabled(True)
+        self.btnValveCus.setEnabled(True)
         self.commitTextFile()
     
     def deliverReinf(self):
         self.startSession()
         startVal = self.sbPhase4.value()
         self.bDisc2 = True
-        self.curPhase = D2.Discrimination2(startVal,'Init1',self.listTextFileInput)
+        self.curPhase = D2.Discrimination2(startVal,'Init1',self.listTextFileInput, self.valveList)
         self.disableStartButtons()
         self.enableSimButtons()
     
         self.startSession()
         startVal = self.sbPhase5.value()
         self.bDisc2 = True
-        self.curPhase = D2.Discrimination2(startVal,'Init2',self.listTextFileInput)
+        self.curPhase = D2.Discrimination2(startVal,'Init2',self.listTextFileInput,self.valveList)
         self.disableStartButtons()
         self.enableSimButtons()        
         
     
     def startDisc2(self):
         self.startSession()
-        self.curPhase = D2.Discrimination2(1,'D2',self.listTextFileInput)
+        self.curPhase = D2.Discrimination2(1,'D2',self.listTextFileInput,self.valveList)
         self.bDisc2 = True
         self.disableStartButtons()
         self.enableSimButtons()
         
     def startDisc2P2(self):
         self.startSession()
-        self.curPhase = D2.Discrimination2(1,'D2P2',self.listTextFileInput)
+        self.curPhase = D2.Discrimination2(1,'D2P2',self.listTextFileInput,self.valveList)
         self.bDisc2 = True
         self.disableStartButtons()
         self.enableSimButtons()
     widget.btnSesInfoCommit.clicked.connect(master.commitBtnClicked)
     widget.dsbWaterTime.valueChanged.connect(master.setWaterTime)
     
+    
+    widget.btnValveAs1.clicked.connect(master.valveAssignmentPreset1)
+    widget.btnValveAs2.clicked.connect(master.valveAssignmentPreset2)
+    widget.btnValveCus.clicked.connect(master.valveCustomEnable)
+    widget.btnValveCommit.clicked.connect(master.valveCommit)
+    
 def main():
     """The entry point to the application"""
     app = QtGui.QApplication(sys.argv)
 
 # Form implementation generated from reading ui file 'gui.ui'
 #
-# Created: Fri Aug 16 14:20:52 2013
+# Created: Fri Aug 16 15:39:40 2013
 #      by: PyQt4 UI code generator 4.9.6
 #
 # WARNING! All changes made in this file will be lost!
         self.lblSubName_3.setGeometry(QtCore.QRect(20, 160, 91, 20))
         self.lblSubName_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
         self.lblSubName_3.setObjectName(_fromUtf8("lblSubName_3"))
-        self.sbCSplus = QtGui.QSpinBox(self.tabSetup)
-        self.sbCSplus.setEnabled(False)
-        self.sbCSplus.setGeometry(QtCore.QRect(80, 390, 42, 22))
-        self.sbCSplus.setMinimum(1)
-        self.sbCSplus.setMaximum(4)
-        self.sbCSplus.setObjectName(_fromUtf8("sbCSplus"))
         self.lblWaterTime = QtGui.QLabel(self.tabSetup)
-        self.lblWaterTime.setGeometry(QtCore.QRect(40, 610, 151, 31))
+        self.lblWaterTime.setGeometry(QtCore.QRect(40, 760, 151, 31))
         font = QtGui.QFont()
         font.setPointSize(10)
         self.lblWaterTime.setFont(font)
         self.lblWaterTime.setObjectName(_fromUtf8("lblWaterTime"))
         self.dsbWaterTime = QtGui.QDoubleSpinBox(self.tabSetup)
         self.dsbWaterTime.setEnabled(False)
-        self.dsbWaterTime.setGeometry(QtCore.QRect(40, 640, 62, 22))
+        self.dsbWaterTime.setGeometry(QtCore.QRect(40, 790, 62, 22))
         self.dsbWaterTime.setMinimum(0.01)
         self.dsbWaterTime.setMaximum(0.5)
         self.dsbWaterTime.setSingleStep(0.05)
         self.dsbWaterTime.setProperty("value", 0.1)
         self.dsbWaterTime.setObjectName(_fromUtf8("dsbWaterTime"))
-        self.sbCSminus = QtGui.QSpinBox(self.tabSetup)
-        self.sbCSminus.setEnabled(False)
-        self.sbCSminus.setGeometry(QtCore.QRect(80, 420, 42, 22))
-        self.sbCSminus.setMinimum(1)
-        self.sbCSminus.setMaximum(4)
-        self.sbCSminus.setProperty("value", 2)
-        self.sbCSminus.setObjectName(_fromUtf8("sbCSminus"))
-        self.sbGen_1 = QtGui.QSpinBox(self.tabSetup)
-        self.sbGen_1.setEnabled(False)
-        self.sbGen_1.setGeometry(QtCore.QRect(80, 450, 42, 22))
-        self.sbGen_1.setMinimum(1)
-        self.sbGen_1.setMaximum(4)
-        self.sbGen_1.setProperty("value", 3)
-        self.sbGen_1.setObjectName(_fromUtf8("sbGen_1"))
-        self.sbGen_2 = QtGui.QSpinBox(self.tabSetup)
-        self.sbGen_2.setEnabled(False)
-        self.sbGen_2.setGeometry(QtCore.QRect(80, 480, 42, 22))
-        self.sbGen_2.setMinimum(1)
-        self.sbGen_2.setMaximum(4)
-        self.sbGen_2.setProperty("value", 4)
-        self.sbGen_2.setObjectName(_fromUtf8("sbGen_2"))
-        self.sbNeutral = QtGui.QSpinBox(self.tabSetup)
-        self.sbNeutral.setEnabled(False)
-        self.sbNeutral.setGeometry(QtCore.QRect(80, 510, 42, 22))
-        self.sbNeutral.setMinimum(1)
-        self.sbNeutral.setMaximum(4)
-        self.sbNeutral.setSingleStep(2)
-        self.sbNeutral.setProperty("value", 3)
-        self.sbNeutral.setObjectName(_fromUtf8("sbNeutral"))
         self.label_3 = QtGui.QLabel(self.tabSetup)
-        self.label_3.setGeometry(QtCore.QRect(80, 370, 71, 16))
+        self.label_3.setGeometry(QtCore.QRect(190, 550, 71, 16))
         self.label_3.setObjectName(_fromUtf8("label_3"))
-        self.label_4 = QtGui.QLabel(self.tabSetup)
-        self.label_4.setGeometry(QtCore.QRect(30, 390, 41, 16))
-        self.label_4.setLayoutDirection(QtCore.Qt.LeftToRight)
-        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
-        self.label_4.setObjectName(_fromUtf8("label_4"))
-        self.label_5 = QtGui.QLabel(self.tabSetup)
-        self.label_5.setGeometry(QtCore.QRect(30, 420, 41, 16))
-        self.label_5.setLayoutDirection(QtCore.Qt.LeftToRight)
-        self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
-        self.label_5.setObjectName(_fromUtf8("label_5"))
-        self.label_6 = QtGui.QLabel(self.tabSetup)
-        self.label_6.setGeometry(QtCore.QRect(30, 450, 41, 16))
-        self.label_6.setLayoutDirection(QtCore.Qt.LeftToRight)
-        self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
-        self.label_6.setObjectName(_fromUtf8("label_6"))
-        self.label_7 = QtGui.QLabel(self.tabSetup)
-        self.label_7.setGeometry(QtCore.QRect(30, 480, 41, 16))
-        self.label_7.setLayoutDirection(QtCore.Qt.LeftToRight)
-        self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
-        self.label_7.setObjectName(_fromUtf8("label_7"))
-        self.label_8 = QtGui.QLabel(self.tabSetup)
-        self.label_8.setGeometry(QtCore.QRect(10, 510, 61, 20))
-        self.label_8.setLayoutDirection(QtCore.Qt.LeftToRight)
-        self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
-        self.label_8.setObjectName(_fromUtf8("label_8"))
         self.cbFileName = QtGui.QComboBox(self.tabSetup)
         self.cbFileName.setEnabled(False)
         self.cbFileName.setGeometry(QtCore.QRect(290, 20, 111, 22))
         self.lblSubComments.setGeometry(QtCore.QRect(20, 210, 91, 20))
         self.lblSubComments.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
         self.lblSubComments.setObjectName(_fromUtf8("lblSubComments"))
+        self.btnValveAs1 = QtGui.QPushButton(self.tabSetup)
+        self.btnValveAs1.setEnabled(False)
+        self.btnValveAs1.setGeometry(QtCore.QRect(30, 400, 211, 41))
+        self.btnValveAs1.setObjectName(_fromUtf8("btnValveAs1"))
+        self.label_12 = QtGui.QLabel(self.tabSetup)
+        self.label_12.setGeometry(QtCore.QRect(40, 370, 241, 21))
+        font = QtGui.QFont()
+        font.setPointSize(16)
+        self.label_12.setFont(font)
+        self.label_12.setObjectName(_fromUtf8("label_12"))
+        self.btnValveAs2 = QtGui.QPushButton(self.tabSetup)
+        self.btnValveAs2.setEnabled(False)
+        self.btnValveAs2.setGeometry(QtCore.QRect(30, 450, 211, 41))
+        self.btnValveAs2.setObjectName(_fromUtf8("btnValveAs2"))
+        self.btnValveCus = QtGui.QPushButton(self.tabSetup)
+        self.btnValveCus.setEnabled(False)
+        self.btnValveCus.setGeometry(QtCore.QRect(30, 500, 211, 41))
+        self.btnValveCus.setObjectName(_fromUtf8("btnValveCus"))
+        self.horizontalLayoutWidget_3 = QtGui.QWidget(self.tabSetup)
+        self.horizontalLayoutWidget_3.setGeometry(QtCore.QRect(30, 570, 264, 154))
+        self.horizontalLayoutWidget_3.setObjectName(_fromUtf8("horizontalLayoutWidget_3"))
+        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.horizontalLayoutWidget_3)
+        self.horizontalLayout_3.setMargin(0)
+        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
+        self.verticalLayout_5 = QtGui.QVBoxLayout()
+        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
+        self.label_4 = QtGui.QLabel(self.horizontalLayoutWidget_3)
+        self.label_4.setLayoutDirection(QtCore.Qt.LeftToRight)
+        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
+        self.label_4.setObjectName(_fromUtf8("label_4"))
+        self.verticalLayout_5.addWidget(self.label_4)
+        self.label_5 = QtGui.QLabel(self.horizontalLayoutWidget_3)
+        self.label_5.setLayoutDirection(QtCore.Qt.LeftToRight)
+        self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
+        self.label_5.setObjectName(_fromUtf8("label_5"))
+        self.verticalLayout_5.addWidget(self.label_5)
+        self.label_11 = QtGui.QLabel(self.horizontalLayoutWidget_3)
+        self.label_11.setLayoutDirection(QtCore.Qt.LeftToRight)
+        self.label_11.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
+        self.label_11.setObjectName(_fromUtf8("label_11"))
+        self.verticalLayout_5.addWidget(self.label_11)
+        self.label_7 = QtGui.QLabel(self.horizontalLayoutWidget_3)
+        self.label_7.setLayoutDirection(QtCore.Qt.LeftToRight)
+        self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
+        self.label_7.setObjectName(_fromUtf8("label_7"))
+        self.verticalLayout_5.addWidget(self.label_7)
+        self.label_6 = QtGui.QLabel(self.horizontalLayoutWidget_3)
+        self.label_6.setLayoutDirection(QtCore.Qt.LeftToRight)
+        self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
+        self.label_6.setObjectName(_fromUtf8("label_6"))
+        self.verticalLayout_5.addWidget(self.label_6)
+        self.label_8 = QtGui.QLabel(self.horizontalLayoutWidget_3)
+        self.label_8.setLayoutDirection(QtCore.Qt.LeftToRight)
+        self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
+        self.label_8.setObjectName(_fromUtf8("label_8"))
+        self.verticalLayout_5.addWidget(self.label_8)
+        self.horizontalLayout_3.addLayout(self.verticalLayout_5)
+        self.verticalLayout_6 = QtGui.QVBoxLayout()
+        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
+        self.sbCSplus = QtGui.QSpinBox(self.horizontalLayoutWidget_3)
+        self.sbCSplus.setEnabled(False)
+        self.sbCSplus.setMinimum(1)
+        self.sbCSplus.setMaximum(4)
+        self.sbCSplus.setObjectName(_fromUtf8("sbCSplus"))
+        self.verticalLayout_6.addWidget(self.sbCSplus)
+        self.sbCSminus = QtGui.QSpinBox(self.horizontalLayoutWidget_3)
+        self.sbCSminus.setEnabled(False)
+        self.sbCSminus.setMinimum(1)
+        self.sbCSminus.setMaximum(4)
+        self.sbCSminus.setProperty("value", 2)
+        self.sbCSminus.setObjectName(_fromUtf8("sbCSminus"))
+        self.verticalLayout_6.addWidget(self.sbCSminus)
+        self.sbGen_1 = QtGui.QSpinBox(self.horizontalLayoutWidget_3)
+        self.sbGen_1.setEnabled(False)
+        self.sbGen_1.setMinimum(1)
+        self.sbGen_1.setMaximum(4)
+        self.sbGen_1.setProperty("value", 3)
+        self.sbGen_1.setObjectName(_fromUtf8("sbGen_1"))
+        self.verticalLayout_6.addWidget(self.sbGen_1)
+        self.sbGen_2 = QtGui.QSpinBox(self.horizontalLayoutWidget_3)
+        self.sbGen_2.setEnabled(False)
+        self.sbGen_2.setMinimum(1)
+        self.sbGen_2.setMaximum(4)
+        self.sbGen_2.setProperty("value", 4)
+        self.sbGen_2.setObjectName(_fromUtf8("sbGen_2"))
+        self.verticalLayout_6.addWidget(self.sbGen_2)
+        self.sbGen_3 = QtGui.QSpinBox(self.horizontalLayoutWidget_3)
+        self.sbGen_3.setEnabled(False)
+        self.sbGen_3.setMinimum(1)
+        self.sbGen_3.setMaximum(4)
+        self.sbGen_3.setProperty("value", 4)
+        self.sbGen_3.setObjectName(_fromUtf8("sbGen_3"))
+        self.verticalLayout_6.addWidget(self.sbGen_3)
+        self.sbNeutral = QtGui.QSpinBox(self.horizontalLayoutWidget_3)
+        self.sbNeutral.setEnabled(False)
+        self.sbNeutral.setMinimum(1)
+        self.sbNeutral.setMaximum(4)
+        self.sbNeutral.setSingleStep(2)
+        self.sbNeutral.setProperty("value", 3)
+        self.sbNeutral.setObjectName(_fromUtf8("sbNeutral"))
+        self.verticalLayout_6.addWidget(self.sbNeutral)
+        self.horizontalLayout_3.addLayout(self.verticalLayout_6)
+        self.btnValveCommit = QtGui.QPushButton(self.tabSetup)
+        self.btnValveCommit.setEnabled(False)
+        self.btnValveCommit.setGeometry(QtCore.QRect(270, 400, 161, 131))
+        self.btnValveCommit.setObjectName(_fromUtf8("btnValveCommit"))
         self.tabWidget.addTab(self.tabSetup, _fromUtf8(""))
         self.tabInSes = QtGui.QWidget()
         self.tabInSes.setObjectName(_fromUtf8("tabInSes"))
         MainWindow.setTabOrder(self.teTechName, self.teComment)
         MainWindow.setTabOrder(self.teComment, self.btnSesInfoCommit)
         MainWindow.setTabOrder(self.btnSesInfoCommit, self.dsbWaterTime)
-        MainWindow.setTabOrder(self.dsbWaterTime, self.sbCSminus)
-        MainWindow.setTabOrder(self.sbCSminus, self.sbGen_1)
+        MainWindow.setTabOrder(self.dsbWaterTime, self.sbGen_1)
         MainWindow.setTabOrder(self.sbGen_1, self.sbGen_2)
         MainWindow.setTabOrder(self.sbGen_2, self.sbNeutral)
         MainWindow.setTabOrder(self.sbNeutral, self.btnStartPhase1)
         self.lblSubName_3.setText(_translate("MainWindow", "Tech Name", None))
         self.lblWaterTime.setText(_translate("MainWindow", "Water Activation Time:", None))
         self.label_3.setText(_translate("MainWindow", "Valve Number", None))
-        self.label_4.setText(_translate("MainWindow", "CS+:", None))
-        self.label_5.setText(_translate("MainWindow", "CS- :", None))
-        self.label_6.setText(_translate("MainWindow", "Gen S1:", None))
-        self.label_7.setText(_translate("MainWindow", "Gen S2:", None))
-        self.label_8.setText(_translate("MainWindow", "Neutral S:", None))
         self.cbFileName.setItemText(0, _translate("MainWindow", "Select File or Type", None))
         self.cbFileName.setItemText(1, _translate("MainWindow", "M5", None))
         self.cbFileName.setItemText(2, _translate("MainWindow", "M6", None))
         self.cbExperimentName_2.setItemText(2, _translate("MainWindow", "Taleen", None))
         self.cbExperimentName_2.setItemText(3, _translate("MainWindow", "Rick", None))
         self.lblSubComments.setText(_translate("MainWindow", "Comments:", None))
+        self.btnValveAs1.setText(_translate("MainWindow", "Cohort 2 Valve Assignement (M5,6,8)", None))
+        self.label_12.setText(_translate("MainWindow", "Specify Valve Assignment", None))
+        self.btnValveAs2.setText(_translate("MainWindow", "Cohort 3 Valve Assignement (M10,12,13)", None))
+        self.btnValveCus.setText(_translate("MainWindow", "Custom Valve Assignment:", None))
+        self.label_4.setText(_translate("MainWindow", "CS+:", None))
+        self.label_5.setText(_translate("MainWindow", "CS- :", None))
+        self.label_11.setText(_translate("MainWindow", "Gen S3:", None))
+        self.label_7.setText(_translate("MainWindow", "Gen S2:", None))
+        self.label_6.setText(_translate("MainWindow", "Gen S1:", None))
+        self.label_8.setText(_translate("MainWindow", "Neutral S:", None))
+        self.btnValveCommit.setText(_translate("MainWindow", "Commit Valve Assignment", None))
         self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabSetup), _translate("MainWindow", "Session Setup", None))
         self.btnStartPhase1.setText(_translate("MainWindow", "Start Phase 1", None))
         self.btnStartPhase3.setText(_translate("MainWindow", "Start Phase 3", None))
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
       </property>
      </widget>
-     <widget class="QSpinBox" name="sbCSplus">
-      <property name="enabled">
-       <bool>false</bool>
-      </property>
-      <property name="geometry">
-       <rect>
-        <x>370</x>
-        <y>450</y>
-        <width>42</width>
-        <height>22</height>
-       </rect>
-      </property>
-      <property name="minimum">
-       <number>1</number>
-      </property>
-      <property name="maximum">
-       <number>4</number>
-      </property>
-     </widget>
      <widget class="QLabel" name="lblWaterTime">
       <property name="geometry">
        <rect>
         <x>40</x>
-        <y>610</y>
+        <y>760</y>
         <width>151</width>
         <height>31</height>
        </rect>
       <property name="geometry">
        <rect>
         <x>40</x>
-        <y>640</y>
+        <y>790</y>
         <width>62</width>
         <height>22</height>
        </rect>
        <double>0.100000000000000</double>
       </property>
      </widget>
-     <widget class="QSpinBox" name="sbCSminus">
-      <property name="enabled">
-       <bool>false</bool>
-      </property>
-      <property name="geometry">
-       <rect>
-        <x>370</x>
-        <y>480</y>
-        <width>42</width>
-        <height>22</height>
-       </rect>
-      </property>
-      <property name="minimum">
-       <number>1</number>
-      </property>
-      <property name="maximum">
-       <number>4</number>
-      </property>
-      <property name="value">
-       <number>2</number>
-      </property>
-     </widget>
-     <widget class="QSpinBox" name="sbGen_1">
-      <property name="enabled">
-       <bool>false</bool>
-      </property>
-      <property name="geometry">
-       <rect>
-        <x>370</x>
-        <y>510</y>
-        <width>42</width>
-        <height>22</height>
-       </rect>
-      </property>
-      <property name="minimum">
-       <number>1</number>
-      </property>
-      <property name="maximum">
-       <number>4</number>
-      </property>
-      <property name="value">
-       <number>3</number>
-      </property>
-     </widget>
-     <widget class="QSpinBox" name="sbGen_2">
-      <property name="enabled">
-       <bool>false</bool>
-      </property>
-      <property name="geometry">
-       <rect>
-        <x>370</x>
-        <y>540</y>
-        <width>42</width>
-        <height>22</height>
-       </rect>
-      </property>
-      <property name="minimum">
-       <number>1</number>
-      </property>
-      <property name="maximum">
-       <number>4</number>
-      </property>
-      <property name="value">
-       <number>4</number>
-      </property>
-     </widget>
-     <widget class="QSpinBox" name="sbNeutral">
-      <property name="enabled">
-       <bool>false</bool>
-      </property>
-      <property name="geometry">
-       <rect>
-        <x>370</x>
-        <y>600</y>
-        <width>42</width>
-        <height>22</height>
-       </rect>
-      </property>
-      <property name="minimum">
-       <number>1</number>
-      </property>
-      <property name="maximum">
-       <number>4</number>
-      </property>
-      <property name="singleStep">
-       <number>2</number>
-      </property>
-      <property name="value">
-       <number>3</number>
-      </property>
-     </widget>
      <widget class="QLabel" name="label_3">
       <property name="geometry">
        <rect>
-        <x>370</x>
-        <y>430</y>
+        <x>190</x>
+        <y>550</y>
         <width>71</width>
         <height>16</height>
        </rect>
        <string>Valve Number</string>
       </property>
      </widget>
-     <widget class="QLabel" name="label_4">
-      <property name="geometry">
-       <rect>
-        <x>320</x>
-        <y>450</y>
-        <width>41</width>
-        <height>16</height>
-       </rect>
-      </property>
-      <property name="layoutDirection">
-       <enum>Qt::LeftToRight</enum>
-      </property>
-      <property name="text">
-       <string>CS+:</string>
-      </property>
-      <property name="alignment">
-       <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
-      </property>
-     </widget>
-     <widget class="QLabel" name="label_5">
-      <property name="geometry">
-       <rect>
-        <x>320</x>
-        <y>480</y>
-        <width>41</width>
-        <height>16</height>
-       </rect>
-      </property>
-      <property name="layoutDirection">
-       <enum>Qt::LeftToRight</enum>
-      </property>
-      <property name="text">
-       <string>CS- :</string>
-      </property>
-      <property name="alignment">
-       <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
-      </property>
-     </widget>
-     <widget class="QLabel" name="label_6">
-      <property name="geometry">
-       <rect>
-        <x>320</x>
-        <y>510</y>
-        <width>41</width>
-        <height>16</height>
-       </rect>
-      </property>
-      <property name="layoutDirection">
-       <enum>Qt::LeftToRight</enum>
-      </property>
-      <property name="text">
-       <string>Gen S1:</string>
-      </property>
-      <property name="alignment">
-       <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
-      </property>
-     </widget>
-     <widget class="QLabel" name="label_7">
-      <property name="geometry">
-       <rect>
-        <x>320</x>
-        <y>540</y>
-        <width>41</width>
-        <height>16</height>
-       </rect>
-      </property>
-      <property name="layoutDirection">
-       <enum>Qt::LeftToRight</enum>
-      </property>
-      <property name="text">
-       <string>Gen S2:</string>
-      </property>
-      <property name="alignment">
-       <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
-      </property>
-     </widget>
-     <widget class="QLabel" name="label_8">
-      <property name="geometry">
-       <rect>
-        <x>300</x>
-        <y>600</y>
-        <width>61</width>
-        <height>20</height>
-       </rect>
-      </property>
-      <property name="layoutDirection">
-       <enum>Qt::LeftToRight</enum>
-      </property>
-      <property name="text">
-       <string>Neutral S:</string>
-      </property>
-      <property name="alignment">
-       <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
-      </property>
-     </widget>
      <widget class="QComboBox" name="cbFileName">
       <property name="enabled">
        <bool>false</bool>
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
       </property>
      </widget>
-     <widget class="QSpinBox" name="sbGen_3">
+     <widget class="QPushButton" name="btnValveAs1">
       <property name="enabled">
        <bool>false</bool>
       </property>
       <property name="geometry">
        <rect>
-        <x>370</x>
-        <y>570</y>
-        <width>42</width>
-        <height>22</height>
+        <x>30</x>
+        <y>400</y>
+        <width>211</width>
+        <height>41</height>
        </rect>
       </property>
-      <property name="minimum">
-       <number>1</number>
-      </property>
-      <property name="maximum">
-       <number>4</number>
-      </property>
-      <property name="value">
-       <number>4</number>
+      <property name="text">
+       <string>Cohort 2 Valve Assignement (M5,6,8)</string>
       </property>
      </widget>
-     <widget class="QLabel" name="label_11">
+     <widget class="QLabel" name="label_12">
       <property name="geometry">
        <rect>
-        <x>320</x>
-        <y>570</y>
-        <width>41</width>
-        <height>16</height>
+        <x>40</x>
+        <y>370</y>
+        <width>241</width>
+        <height>21</height>
        </rect>
       </property>
-      <property name="layoutDirection">
-       <enum>Qt::LeftToRight</enum>
+      <property name="font">
+       <font>
+        <pointsize>16</pointsize>
+       </font>
       </property>
       <property name="text">
-       <string>Gen S3:</string>
+       <string>Specify Valve Assignment</string>
       </property>
-      <property name="alignment">
-       <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+     </widget>
+     <widget class="QPushButton" name="btnValveAs2">
+      <property name="enabled">
+       <bool>false</bool>
+      </property>
+      <property name="geometry">
+       <rect>
+        <x>30</x>
+        <y>450</y>
+        <width>211</width>
+        <height>41</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>Cohort 3 Valve Assignement (M10,12,13)</string>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="btnValveCus">
+      <property name="enabled">
+       <bool>false</bool>
+      </property>
+      <property name="geometry">
+       <rect>
+        <x>30</x>
+        <y>500</y>
+        <width>211</width>
+        <height>41</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>Custom Valve Assignment:</string>
+      </property>
+     </widget>
+     <widget class="QWidget" name="horizontalLayoutWidget_3">
+      <property name="geometry">
+       <rect>
+        <x>30</x>
+        <y>570</y>
+        <width>264</width>
+        <height>154</height>
+       </rect>
+      </property>
+      <layout class="QHBoxLayout" name="horizontalLayout_3">
+       <item>
+        <layout class="QVBoxLayout" name="verticalLayout_5">
+         <item>
+          <widget class="QLabel" name="label_4">
+           <property name="layoutDirection">
+            <enum>Qt::LeftToRight</enum>
+           </property>
+           <property name="text">
+            <string>CS+:</string>
+           </property>
+           <property name="alignment">
+            <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLabel" name="label_5">
+           <property name="layoutDirection">
+            <enum>Qt::LeftToRight</enum>
+           </property>
+           <property name="text">
+            <string>CS- :</string>
+           </property>
+           <property name="alignment">
+            <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLabel" name="label_11">
+           <property name="layoutDirection">
+            <enum>Qt::LeftToRight</enum>
+           </property>
+           <property name="text">
+            <string>Gen S3:</string>
+           </property>
+           <property name="alignment">
+            <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLabel" name="label_7">
+           <property name="layoutDirection">
+            <enum>Qt::LeftToRight</enum>
+           </property>
+           <property name="text">
+            <string>Gen S2:</string>
+           </property>
+           <property name="alignment">
+            <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLabel" name="label_6">
+           <property name="layoutDirection">
+            <enum>Qt::LeftToRight</enum>
+           </property>
+           <property name="text">
+            <string>Gen S1:</string>
+           </property>
+           <property name="alignment">
+            <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLabel" name="label_8">
+           <property name="layoutDirection">
+            <enum>Qt::LeftToRight</enum>
+           </property>
+           <property name="text">
+            <string>Neutral S:</string>
+           </property>
+           <property name="alignment">
+            <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+           </property>
+          </widget>
+         </item>
+        </layout>
+       </item>
+       <item>
+        <layout class="QVBoxLayout" name="verticalLayout_6">
+         <item>
+          <widget class="QSpinBox" name="sbCSplus">
+           <property name="enabled">
+            <bool>false</bool>
+           </property>
+           <property name="minimum">
+            <number>1</number>
+           </property>
+           <property name="maximum">
+            <number>4</number>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QSpinBox" name="sbCSminus">
+           <property name="enabled">
+            <bool>false</bool>
+           </property>
+           <property name="minimum">
+            <number>1</number>
+           </property>
+           <property name="maximum">
+            <number>4</number>
+           </property>
+           <property name="value">
+            <number>2</number>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QSpinBox" name="sbGen_1">
+           <property name="enabled">
+            <bool>false</bool>
+           </property>
+           <property name="minimum">
+            <number>1</number>
+           </property>
+           <property name="maximum">
+            <number>4</number>
+           </property>
+           <property name="value">
+            <number>3</number>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QSpinBox" name="sbGen_2">
+           <property name="enabled">
+            <bool>false</bool>
+           </property>
+           <property name="minimum">
+            <number>1</number>
+           </property>
+           <property name="maximum">
+            <number>4</number>
+           </property>
+           <property name="value">
+            <number>4</number>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QSpinBox" name="sbGen_3">
+           <property name="enabled">
+            <bool>false</bool>
+           </property>
+           <property name="minimum">
+            <number>1</number>
+           </property>
+           <property name="maximum">
+            <number>4</number>
+           </property>
+           <property name="value">
+            <number>4</number>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QSpinBox" name="sbNeutral">
+           <property name="enabled">
+            <bool>false</bool>
+           </property>
+           <property name="minimum">
+            <number>1</number>
+           </property>
+           <property name="maximum">
+            <number>4</number>
+           </property>
+           <property name="singleStep">
+            <number>2</number>
+           </property>
+           <property name="value">
+            <number>3</number>
+           </property>
+          </widget>
+         </item>
+        </layout>
+       </item>
+      </layout>
+     </widget>
+     <widget class="QPushButton" name="btnValveCommit">
+      <property name="enabled">
+       <bool>false</bool>
+      </property>
+      <property name="geometry">
+       <rect>
+        <x>270</x>
+        <y>400</y>
+        <width>161</width>
+        <height>131</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>Commit Valve Assignment</string>
       </property>
      </widget>
     </widget>
   <tabstop>teComment</tabstop>
   <tabstop>btnSesInfoCommit</tabstop>
   <tabstop>dsbWaterTime</tabstop>
-  <tabstop>sbCSminus</tabstop>
   <tabstop>sbGen_1</tabstop>
   <tabstop>sbGen_2</tabstop>
   <tabstop>sbNeutral</tabstop>