Changeset 13237
- Timestamp:
- 03/26/12 22:01:51 (13 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r13199 r13237 432 432 DimStampedInfo fDimFeedbackCalibration; 433 433 434 DimStampedInfo fDimBiasVolt; 434 DimStampedInfo fDimBiasNominal; 435 DimStampedInfo fDimBiasDac; 435 436 DimStampedInfo fDimBiasCurrent; 436 437 … … 2833 2834 }; 2834 2835 2835 const uint16_t i = uint16_t(floor(fmod(ptr[6]+ 360+11.25, 360)/22));2836 const uint16_t i = uint16_t(floor(fmod(ptr[6]+180+11.25, 360)/22)); 2836 2837 fMagicWindDir->setText(dir[i]); 2837 2838 } … … 2839 2840 // ========================== FSC ======================================= 2840 2841 2841 vector<int16_t> fVecBias Volt;2842 vector<int16_t> fVecBiasDac; 2842 2843 vector<int16_t> fVecBiasCurrent; 2843 2844 void handleBiasVolt(const DimData &d) 2844 vector<float> fVecBiasCalibOffset; 2845 2846 void handleBiasNominal(const DimData &d) 2847 { 2848 if (!CheckSize(d, 3*416*sizeof(float))) 2849 return; 2850 2851 const float *ptr = d.ptr<float>(); 2852 2853 fVecBiasCalibOffset.assign(ptr+2*416, ptr+3*416); 2854 2855 on_fBiasDispRefVolt_stateChanged(); 2856 UpdateBiasValues(); 2857 } 2858 2859 void handleBiasDac(const DimData &d) 2845 2860 { 2846 2861 if (!CheckSize(d, 2*416*sizeof(int16_t))) … … 2849 2864 const int16_t *ptr = d.ptr<int16_t>(); 2850 2865 2851 fVecBias Volt.assign(ptr, ptr+2*416);2866 fVecBiasDac.assign(ptr, ptr+2*416); 2852 2867 2853 2868 on_fBiasDispRefVolt_stateChanged(); … … 3169 3184 } 3170 3185 3186 if (server=="MAGIC_WEATHER") 3187 { 3188 fStatusWeatherLabel->setText(s.name.c_str()); 3189 3190 if (s.index==3) 3191 SetLedColor(fStatusWeatherLed, kLedGreen, time); 3192 if (s.index<3) // No valid data 3193 SetLedColor(fStatusWeatherLed, kLedRed, time); 3194 if (s.index<1) // No Dim connection 3195 SetLedColor(fStatusWeatherLed, kLedGray, time); 3196 } 3197 3171 3198 if (server=="CHAT") 3172 3199 { … … 3480 3507 return PostInfoHandler(&FactGui::handleFscHumidity); 3481 3508 3482 if (getInfo()==&fDimBiasVolt) 3483 return PostInfoHandler(&FactGui::handleBiasVolt); 3509 if (getInfo()==&fDimBiasNominal) 3510 return PostInfoHandler(&FactGui::handleBiasNominal); 3511 3512 if (getInfo()==&fDimBiasDac) 3513 return PostInfoHandler(&FactGui::handleBiasDac); 3484 3514 3485 3515 if (getInfo()==&fDimBiasCurrent) … … 3794 3824 const int ihw = b*32+c; 3795 3825 3796 if (fVecBiasVolt.size()>0) 3797 { 3798 fBiasVoltCur->setValue(fVecBiasVolt[ihw]*90./4096); 3799 fBiasVoltRef->setValue(fVecBiasVolt[ihw+416]*90./4096); 3826 const double offset = fVecBiasCalibOffset.size()>0 ? fVecBiasCalibOffset[ihw] : 0; 3827 3828 3829 if (fVecBiasDac.size()>0) 3830 { 3831 fBiasVoltCur->setValue(fVecBiasDac[ihw]*90./4096-offset); 3832 fBiasVoltRef->setValue(fVecBiasDac[ihw+416]*90./4096-offset); 3800 3833 3801 3834 SetLedColor(fBiasNominalLed, 3802 fVecBias Volt[ihw]==fVecBiasVolt[ihw+416]?kLedGreen:kLedRed, Time());3835 fVecBiasDac[ihw]==fVecBiasDac[ihw+416]?kLedGreen:kLedRed, Time()); 3803 3836 } 3804 3837 … … 3906 3939 } 3907 3940 3908 if (fVecBias Volt.size()>0)3941 if (fVecBiasDac.size()>0) 3909 3942 { 3910 3943 for (int i=0; i<1440; i++) 3911 3944 { 3912 3945 const PixelMapEntry &entry = fPixelMap.index(i); 3913 dat[i] = fVecBiasVolt[entry.hv()+offset]*90./4096; 3914 3915 fBiasCamV->highlightPixel(i, fVecBiasVolt[entry.hv()]!=fVecBiasVolt[entry.hv()+416]); 3946 dat[i] = fVecBiasDac[entry.hv()+offset]*90./4096; 3947 3948 if (fVecBiasCalibOffset.size()>0) 3949 dat[i] -= fVecBiasCalibOffset[entry.hv()]; 3950 3951 fBiasCamV->highlightPixel(i, fVecBiasDac[entry.hv()]!=fVecBiasDac[entry.hv()+416]); 3916 3952 } 3917 3953 … … 4051 4087 fDimFadRuns ("FAD_CONTROL/RUNS", (void*)NULL, 0, this), 4052 4088 fDimFadEvents ("FAD_CONTROL/EVENTS", (void*)NULL, 0, this), 4053 fDimFadRawData ("FAD_CONTROL/ RAW_DATA", (void*)NULL, 0, this),4054 fDimFadEventData ("FAD_CONTROL/ EVENT_DATA", (void*)NULL, 0, this),4089 fDimFadRawData ("FAD_CONTROL/XRAW_DATA", (void*)NULL, 0, this), 4090 fDimFadEventData ("FAD_CONTROL/XEVENT_DATA", (void*)NULL, 0, this), 4055 4091 fDimFadConnections ("FAD_CONTROL/CONNECTIONS", (void*)NULL, 0, this), 4056 4092 fDimFadFwVersion ("FAD_CONTROL/FIRMWARE_VERSION", (void*)NULL, 0, this), … … 4062 4098 fDimFadRoi ("FAD_CONTROL/REGION_OF_INTEREST", (void*)NULL, 0, this), 4063 4099 fDimFadDac ("FAD_CONTROL/DAC", (void*)NULL, 0, this), 4064 fDimFadDrsCalibration ("FAD_CONTROL/ DRS_CALIBRATION", (void*)NULL, 0, this),4100 fDimFadDrsCalibration ("FAD_CONTROL/XDRS_CALIBRATION", (void*)NULL, 0, this), 4065 4101 fDimFadStatus ("FAD_CONTROL/STATUS", (void*)NULL, 0, this), 4066 4102 fDimFadStatistics1 ("FAD_CONTROL/STATISTICS1", (void*)NULL, 0, this), … … 4077 4113 fDimFeedbackCalibration("FEEDBACK/CALIBRATION", (void*)NULL, 0, this), 4078 4114 //- 4079 fDimBiasVolt ("BIAS_CONTROL/VOLTAGE", (void*)NULL, 0, this), 4115 fDimBiasNominal ("BIAS_CONTROL/NOMINAL", (void*)NULL, 0, this), 4116 fDimBiasDac ("BIAS_CONTROL/DAC", (void*)NULL, 0, this), 4080 4117 fDimBiasCurrent ("BIAS_CONTROL/CURRENT", (void*)NULL, 0, this), 4081 4118 //- -
trunk/FACT++/gui/MainWindow.cc
r12658 r13237 654 654 void MainWindow::on_fBiasVoltDac_valueChanged(int val) 655 655 { 656 fBiasVolt ->setValue(val*90./4096);656 fBiasVoltDacVolt->setValue(val*90./4096); 657 657 } 658 658 659 659 void MainWindow::on_fBiasOffsetDac_valueChanged(int val) 660 660 { 661 fBiasOffset Volt->setValue(val*90./4096);661 fBiasOffsetDacVolt->setValue(val*90./4096); 662 662 } 663 663 … … 673 673 { 674 674 if (!fInHandler) 675 Dim::SendCommand("BIAS_CONTROL/SET_GLOBAL_GAPD_REFERENCE_VOLTAGE"); 676 } 677 678 void MainWindow::on_fBiasApplyReferenceCh_clicked() 679 { 680 if (!fInHandler) 681 Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_GAPD_REFERENCE_VOLTAGE", 682 uint16_t(fBiasHvBoard->value()*32+fBiasHvChannel->value())); 675 Dim::SendCommand("BIAS_CONTROL/SET_GLOBAL_OFFSET_TO_ZERO"); 683 676 } 684 677 … … 695 688 } 696 689 697 void MainWindow::on_fBiasAddOffset_clicked() 690 691 void MainWindow::on_fBiasApplyChVolt_clicked() // SET_CHANNEL_VOLTAGE 698 692 { 699 693 if (fInHandler) 700 694 return; 701 695 702 if (fBiasOffsetDac->value()<0) 703 Dim::SendCommand("BIAS_CONTROL/DECREASE_GLOBAL_DAC", uint16_t(-fBiasOffsetDac->value())); 704 else 705 Dim::SendCommand("BIAS_CONTROL/INCREASE_GLOBAL_DAC", uint16_t(fBiasOffsetDac->value())); 706 } 707 708 void MainWindow::on_fBiasApplyOffset_clicked() 709 { 710 if (!fInHandler) 711 Dim::SendCommand("BIAS_CONTROL/SET_GAPD_REFERENCE_OFFSET", float(fBiasOffsetDac->value()*90./4096)); 712 } 713 714 void MainWindow::on_fBiasApply_clicked() 715 { 716 const uint16_t cmd[2] = 696 const struct { uint16_t ch; float val; } __attribute__((__packed__)) val = { 697 uint16_t(fBiasHvBoard->value()*32+fBiasHvChannel->value()), 698 float(fBiasVolt->value()) 699 }; 700 701 Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_VOLTAGE", val); 702 } 703 704 void MainWindow::on_fBiasApplyChDac_clicked() 705 { 706 if (fInHandler) 707 return; 708 709 const uint16_t val[2] = 717 710 { 718 711 uint16_t(fBiasHvBoard->value()*32+fBiasHvChannel->value()), … … 720 713 }; 721 714 722 if (!fInHandler) 723 Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_DAC", cmd); 724 } 725 void MainWindow::on_fBiasApplyGlobal_clicked() 715 Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_DAC", val); 716 } 717 718 void MainWindow::on_fBiasApplyGlobalVolt_clicked() 719 { 720 if (!fInHandler) 721 Dim::SendCommand("BIAS_CONTROL/SET_GLOBAL_VOLTAGE", float(fBiasVolt->value())); 722 } 723 724 void MainWindow::on_fBiasApplyGlobalDac_clicked() 726 725 { 727 726 if (!fInHandler) 728 727 Dim::SendCommand("BIAS_CONTROL/SET_GLOBAL_DAC", uint16_t(fBiasVoltDac->value())); 729 728 } 729 730 void MainWindow::on_fBiasAddOffsetChVolt_clicked() 731 { 732 if (fInHandler) 733 return; 734 735 const struct { uint16_t ch; float val; } __attribute__((__packed__)) val = { 736 uint16_t(fBiasHvBoard->value()*32+fBiasHvChannel->value()), 737 float(fBiasOffsetVolt->value()) 738 }; 739 740 Dim::SendCommand("BIAS_CONTROL/INCREASE_CHANNEL_VOLTAGE", val); 741 } 742 743 void MainWindow::on_fBiasAddOffsetGlobalVolt_clicked() 744 { 745 if (!fInHandler) 746 Dim::SendCommand("BIAS_CONTROL/INCREASE_GLOBAL_VOLTAGE", float(fBiasOffsetVolt->value())); 747 } 748 749 void MainWindow::on_fBiasAddOffsetChDac_clicked() 750 { 751 } 752 753 void MainWindow::on_fBiasAddOffsetGlobalDac_clicked() 754 { 755 } 756 757 void MainWindow::on_fBiasApplyOffsetChVolt_clicked() 758 { 759 if (fInHandler) 760 return; 761 762 const struct { uint16_t ch; float val; } __attribute__((__packed__)) val = { 763 uint16_t(fBiasHvBoard->value()*32+fBiasHvChannel->value()), 764 float(fBiasOffsetVolt->value()) 765 }; 766 767 Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_OFFSET", val); 768 } 769 770 void MainWindow::on_fBiasApplyOffsetGlobalVolt_clicked() 771 { 772 if (!fInHandler) 773 Dim::SendCommand("BIAS_CONTROL/SET_GLOBAL_OFFSET", float(fBiasOffsetVolt->value())); 774 } 775 776 /* 777 void MainWindow::on_fBiasApplyReferenceCh_clicked() 778 { 779 if (!fInHandler) 780 Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_OFFSET_TO_ZERO", 781 uint16_t(fBiasHvBoard->value()*32+fBiasHvChannel->value())); 782 }*/ 730 783 731 784 void MainWindow::on_fBiasVoltMin_valueChanged(int min) -
trunk/FACT++/gui/MainWindow.h
r12658 r13237 191 191 void on_fBiasCamPatch_valueChanged(int) { BiasCamChannelChanged(); } 192 192 void on_fBiasCamPixel_valueChanged(int) { BiasCamChannelChanged(); } 193 193 194 void on_fBiasVoltDac_valueChanged(int); 194 195 void on_fBiasOffsetDac_valueChanged(int); … … 200 201 void on_fBiasCurrentMax_valueChanged(int); // FIXME: Could be set as slot in the designer 201 202 202 //void on_fBiasRequestStatus_clicked(); 203 void on_fBiasApply_clicked(); 204 void on_fBiasApplyGlobal_clicked(); 203 void on_fBiasApplyChVolt_clicked(); 204 void on_fBiasApplyChDac_clicked(); 205 void on_fBiasApplyGlobalVolt_clicked(); 206 void on_fBiasApplyGlobalDac_clicked(); 207 208 void on_fBiasAddOffsetChVolt_clicked(); 209 void on_fBiasAddOffsetChDac_clicked(); 210 void on_fBiasAddOffsetGlobalVolt_clicked(); 211 void on_fBiasAddOffsetGlobalDac_clicked(); 212 213 void on_fBiasApplyOffsetChVolt_clicked(); 214 void on_fBiasApplyOffsetGlobalVolt_clicked(); 215 205 216 void on_fBiasApplyReference_clicked(); 206 void on_fBiasApplyReferenceCh_clicked();207 217 void on_fBiasSetToZero_clicked(); 208 218 void on_fBiasReset_clicked(); 209 void on_fBiasAddOffset_clicked();210 void on_fBiasApplyOffset_clicked();211 219 212 220 virtual void on_fBiasDispRefVolt_stateChanged(int) = 0; -
trunk/FACT++/gui/design.ui
r12966 r13237 12 12 <y>0</y> 13 13 <width>1381</width> 14 <height>9 27</height>14 <height>936</height> 15 15 </rect> 16 16 </property> … … 3784 3784 <property name="minimumSize"> 3785 3785 <size> 3786 <width> 905</width>3787 <height> 296</height>3786 <width>1094</width> 3787 <height>336</height> 3788 3788 </size> 3789 3789 </property> … … 4013 4013 </widget> 4014 4014 </item> 4015 <item row="0" column="4">4016 <spacer name="verticalSpacer_61">4017 <property name="orientation">4018 <enum>Qt::Vertical</enum>4019 </property>4020 <property name="sizeType">4021 <enum>QSizePolicy::Preferred</enum>4022 </property>4023 <property name="sizeHint" stdset="0">4024 <size>4025 <width>20</width>4026 <height>40</height>4027 </size>4028 </property>4029 </spacer>4030 </item>4031 4015 <item row="1" column="0" colspan="5"> 4032 4016 <widget class="Line" name="line_46"> … … 4049 4033 </property> 4050 4034 </widget> 4051 </item>4052 <item row="9" column="4">4053 <spacer name="verticalSpacer_63">4054 <property name="orientation">4055 <enum>Qt::Vertical</enum>4056 </property>4057 <property name="sizeType">4058 <enum>QSizePolicy::Preferred</enum>4059 </property>4060 <property name="sizeHint" stdset="0">4061 <size>4062 <width>20</width>4063 <height>40</height>4064 </size>4065 </property>4066 </spacer>4067 4035 </item> 4068 4036 </layout> … … 4083 4051 <widget class="QLabel" name="label_233"> 4084 4052 <property name="text"> 4085 <string> reference</string>4053 <string>target</string> 4086 4054 </property> 4087 4055 </widget> … … 4090 4058 <widget class="QLabel" name="label_234"> 4091 4059 <property name="text"> 4092 <string> set value</string>4060 <string>applied</string> 4093 4061 </property> 4094 4062 </widget> … … 4134 4102 <item row="0" column="1" colspan="2"> 4135 4103 <widget class="QLabel" name="label_226"> 4104 <property name="sizePolicy"> 4105 <sizepolicy hsizetype="Preferred" vsizetype="Maximum"> 4106 <horstretch>0</horstretch> 4107 <verstretch>0</verstretch> 4108 </sizepolicy> 4109 </property> 4136 4110 <property name="text"> 4137 4111 <string>Values for this channel</string> … … 4174 4148 </widget> 4175 4149 </item> 4176 <item row="6" column="1" colspan="2">4177 <widget class="QPushButton" name="fBiasApplyReferenceCh">4178 <property name="text">4179 <string>Set channel to Vgapd</string>4180 </property>4181 </widget>4182 </item>4183 <item row="7" column="2">4184 <spacer name="verticalSpacer_64">4185 <property name="orientation">4186 <enum>Qt::Vertical</enum>4187 </property>4188 <property name="sizeType">4189 <enum>QSizePolicy::Preferred</enum>4190 </property>4191 <property name="sizeHint" stdset="0">4192 <size>4193 <width>20</width>4194 <height>40</height>4195 </size>4196 </property>4197 </spacer>4198 </item>4199 4150 <item row="4" column="1"> 4200 4151 <widget class="QDoubleSpinBox" name="fBiasCurrent"> … … 4267 4218 </widget> 4268 4219 </item> 4220 <item row="5" column="1"> 4221 <widget class="QDoubleSpinBox" name="fBiasOffset"> 4222 <property name="sizePolicy"> 4223 <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 4224 <horstretch>0</horstretch> 4225 <verstretch>0</verstretch> 4226 </sizepolicy> 4227 </property> 4228 <property name="alignment"> 4229 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 4230 </property> 4231 <property name="readOnly"> 4232 <bool>true</bool> 4233 </property> 4234 <property name="buttonSymbols"> 4235 <enum>QAbstractSpinBox::NoButtons</enum> 4236 </property> 4237 <property name="suffix"> 4238 <string> µA</string> 4239 </property> 4240 <property name="maximum"> 4241 <double>9999999.000000000000000</double> 4242 </property> 4243 </widget> 4244 </item> 4245 <item row="5" column="2"> 4246 <widget class="QLabel" name="label_261"> 4247 <property name="text"> 4248 <string>offset</string> 4249 </property> 4250 </widget> 4251 </item> 4269 4252 <item row="3" column="1"> 4270 4253 <widget class="QDoubleSpinBox" name="fBiasVoltCur"> … … 4295 4278 </widget> 4296 4279 </item> 4297 <item row="5" column="1"> 4298 <widget class="QDoubleSpinBox" name="fBiasOffset"> 4299 <property name="sizePolicy"> 4300 <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 4301 <horstretch>0</horstretch> 4302 <verstretch>0</verstretch> 4303 </sizepolicy> 4304 </property> 4305 <property name="alignment"> 4306 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 4307 </property> 4308 <property name="readOnly"> 4309 <bool>true</bool> 4310 </property> 4311 <property name="buttonSymbols"> 4312 <enum>QAbstractSpinBox::NoButtons</enum> 4313 </property> 4314 <property name="suffix"> 4315 <string> µA</string> 4316 </property> 4317 <property name="maximum"> 4318 <double>9999999.000000000000000</double> 4319 </property> 4320 </widget> 4321 </item> 4322 <item row="5" column="2"> 4323 <widget class="QLabel" name="label_261"> 4280 <item row="6" column="1" colspan="2"> 4281 <widget class="QPushButton" name="fBiasApplyReferenceCh"> 4324 4282 <property name="text"> 4325 <string> offset</string>4283 <string>Set channel to Vgapd</string> 4326 4284 </property> 4327 4285 </widget> … … 4340 4298 <item> 4341 4299 <widget class="QLabel" name="label_225"> 4300 <property name="sizePolicy"> 4301 <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 4302 <horstretch>0</horstretch> 4303 <verstretch>0</verstretch> 4304 </sizepolicy> 4305 </property> 4306 <property name="minimumSize"> 4307 <size> 4308 <width>0</width> 4309 <height>0</height> 4310 </size> 4311 </property> 4342 4312 <property name="text"> 4343 <string> CommandVoltage</string>4313 <string>Absolute Voltage</string> 4344 4314 </property> 4345 4315 </widget> … … 4353 4323 </item> 4354 4324 <item> 4355 <layout class="Q HBoxLayout" name="horizontalLayout_47">4356 <item >4325 <layout class="QGridLayout" name="gridLayout_47"> 4326 <item row="0" column="0"> 4357 4327 <widget class="QDoubleSpinBox" name="fBiasVolt"> 4358 4328 <property name="sizePolicy"> … … 4366 4336 </property> 4367 4337 <property name="readOnly"> 4338 <bool>false</bool> 4339 </property> 4340 <property name="buttonSymbols"> 4341 <enum>QAbstractSpinBox::UpDownArrows</enum> 4342 </property> 4343 <property name="prefix"> 4344 <string/> 4345 </property> 4346 <property name="suffix"> 4347 <string> V</string> 4348 </property> 4349 <property name="decimals"> 4350 <number>3</number> 4351 </property> 4352 <property name="maximum"> 4353 <double>99.000000000000000</double> 4354 </property> 4355 </widget> 4356 </item> 4357 <item row="0" column="2"> 4358 <widget class="QDoubleSpinBox" name="fBiasVoltDacVolt"> 4359 <property name="sizePolicy"> 4360 <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 4361 <horstretch>0</horstretch> 4362 <verstretch>0</verstretch> 4363 </sizepolicy> 4364 </property> 4365 <property name="alignment"> 4366 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 4367 </property> 4368 <property name="readOnly"> 4368 4369 <bool>true</bool> 4369 4370 </property> … … 4371 4372 <enum>QAbstractSpinBox::NoButtons</enum> 4372 4373 </property> 4374 <property name="prefix"> 4375 <string>~</string> 4376 </property> 4373 4377 <property name="suffix"> 4374 4378 <string> V</string> … … 4378 4382 </property> 4379 4383 <property name="maximum"> 4380 <double>9999.000000000000000</double> 4381 </property> 4382 </widget> 4383 </item> 4384 <item> 4384 <double>99.000000000000000</double> 4385 </property> 4386 </widget> 4387 </item> 4388 <item row="0" column="1" rowspan="4"> 4389 <widget class="Line" name="line_66"> 4390 <property name="orientation"> 4391 <enum>Qt::Vertical</enum> 4392 </property> 4393 </widget> 4394 </item> 4395 <item row="1" column="2"> 4385 4396 <widget class="QSpinBox" name="fBiasVoltDac"> 4386 4397 <property name="sizePolicy"> … … 4404 4415 </widget> 4405 4416 </item> 4417 <item row="2" column="2"> 4418 <widget class="QPushButton" name="fBiasApplyChDac"> 4419 <property name="text"> 4420 <string>Set Ch</string> 4421 </property> 4422 </widget> 4423 </item> 4424 <item row="3" column="2"> 4425 <widget class="QPushButton" name="fBiasApplyGlobalDac"> 4426 <property name="text"> 4427 <string>Set global</string> 4428 </property> 4429 </widget> 4430 </item> 4431 <item row="2" column="0"> 4432 <widget class="QPushButton" name="fBiasApplyChVolt"> 4433 <property name="text"> 4434 <string>Set Ch</string> 4435 </property> 4436 </widget> 4437 </item> 4438 <item row="3" column="0"> 4439 <widget class="QPushButton" name="fBiasApplyGlobalVolt"> 4440 <property name="text"> 4441 <string>Set global</string> 4442 </property> 4443 </widget> 4444 </item> 4406 4445 </layout> 4407 </item>4408 <item>4409 <widget class="QPushButton" name="fBiasApply">4410 <property name="text">4411 <string>Apply to channel</string>4412 </property>4413 </widget>4414 </item>4415 <item>4416 <widget class="QPushButton" name="fBiasApplyGlobal">4417 <property name="text">4418 <string>Apply globally</string>4419 </property>4420 </widget>4421 </item>4422 <item>4423 <spacer name="verticalSpacer_69">4424 <property name="orientation">4425 <enum>Qt::Vertical</enum>4426 </property>4427 <property name="sizeType">4428 <enum>QSizePolicy::Preferred</enum>4429 </property>4430 <property name="sizeHint" stdset="0">4431 <size>4432 <width>20</width>4433 <height>40</height>4434 </size>4435 </property>4436 </spacer>4437 4446 </item> 4438 4447 </layout> … … 4456 4465 <item> 4457 4466 <widget class="QLabel" name="label_237"> 4467 <property name="sizePolicy"> 4468 <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 4469 <horstretch>0</horstretch> 4470 <verstretch>0</verstretch> 4471 </sizepolicy> 4472 </property> 4458 4473 <property name="text"> 4459 <string> Global voltage offset</string>4474 <string>Voltage offset</string> 4460 4475 </property> 4461 4476 </widget> … … 4469 4484 </item> 4470 4485 <item> 4471 <layout class="QHBoxLayout" name="horizontalLayout_48"> 4472 <item> 4486 <layout class="QGridLayout" name="gridLayout_113"> 4487 <item row="1" column="2"> 4488 <widget class="QSpinBox" name="fBiasOffsetDac"> 4489 <property name="enabled"> 4490 <bool>false</bool> 4491 </property> 4492 <property name="sizePolicy"> 4493 <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 4494 <horstretch>0</horstretch> 4495 <verstretch>0</verstretch> 4496 </sizepolicy> 4497 </property> 4498 <property name="alignment"> 4499 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 4500 </property> 4501 <property name="suffix"> 4502 <string> DAC</string> 4503 </property> 4504 <property name="minimum"> 4505 <number>-4095</number> 4506 </property> 4507 <property name="maximum"> 4508 <number>4095</number> 4509 </property> 4510 </widget> 4511 </item> 4512 <item row="3" column="2"> 4513 <widget class="QPushButton" name="fBiasAddOffsetGlobalDac"> 4514 <property name="enabled"> 4515 <bool>false</bool> 4516 </property> 4517 <property name="text"> 4518 <string>Add global</string> 4519 </property> 4520 </widget> 4521 </item> 4522 <item row="0" column="2"> 4523 <widget class="QDoubleSpinBox" name="fBiasOffsetDacVolt"> 4524 <property name="enabled"> 4525 <bool>false</bool> 4526 </property> 4527 <property name="sizePolicy"> 4528 <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 4529 <horstretch>0</horstretch> 4530 <verstretch>0</verstretch> 4531 </sizepolicy> 4532 </property> 4533 <property name="alignment"> 4534 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 4535 </property> 4536 <property name="readOnly"> 4537 <bool>true</bool> 4538 </property> 4539 <property name="buttonSymbols"> 4540 <enum>QAbstractSpinBox::NoButtons</enum> 4541 </property> 4542 <property name="prefix"> 4543 <string>~</string> 4544 </property> 4545 <property name="suffix"> 4546 <string> V</string> 4547 </property> 4548 <property name="decimals"> 4549 <number>3</number> 4550 </property> 4551 <property name="minimum"> 4552 <double>-90.000000000000000</double> 4553 </property> 4554 <property name="maximum"> 4555 <double>99.000000000000000</double> 4556 </property> 4557 </widget> 4558 </item> 4559 <item row="0" column="0"> 4473 4560 <widget class="QDoubleSpinBox" name="fBiasOffsetVolt"> 4474 4561 <property name="sizePolicy"> … … 4482 4569 </property> 4483 4570 <property name="readOnly"> 4484 <bool> true</bool>4571 <bool>false</bool> 4485 4572 </property> 4486 4573 <property name="buttonSymbols"> 4487 <enum>QAbstractSpinBox::NoButtons</enum> 4574 <enum>QAbstractSpinBox::UpDownArrows</enum> 4575 </property> 4576 <property name="prefix"> 4577 <string/> 4488 4578 </property> 4489 4579 <property name="suffix"> … … 4497 4587 </property> 4498 4588 <property name="maximum"> 4499 <double>9999.000000000000000</double> 4500 </property> 4501 </widget> 4502 </item> 4503 <item> 4504 <widget class="QSpinBox" name="fBiasOffsetDac"> 4505 <property name="sizePolicy"> 4506 <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 4507 <horstretch>0</horstretch> 4508 <verstretch>0</verstretch> 4509 </sizepolicy> 4510 </property> 4511 <property name="alignment"> 4512 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 4513 </property> 4514 <property name="suffix"> 4515 <string> DAC</string> 4516 </property> 4517 <property name="minimum"> 4518 <number>-4095</number> 4519 </property> 4520 <property name="maximum"> 4521 <number>4095</number> 4589 <double>99.000000000000000</double> 4590 </property> 4591 </widget> 4592 </item> 4593 <item row="2" column="2"> 4594 <widget class="QPushButton" name="fBiasAddOffsetChDac"> 4595 <property name="enabled"> 4596 <bool>false</bool> 4597 </property> 4598 <property name="text"> 4599 <string>Add Ch</string> 4600 </property> 4601 </widget> 4602 </item> 4603 <item row="0" column="1" rowspan="6"> 4604 <widget class="Line" name="line_63"> 4605 <property name="orientation"> 4606 <enum>Qt::Vertical</enum> 4607 </property> 4608 </widget> 4609 </item> 4610 <item row="1" column="0"> 4611 <widget class="QPushButton" name="fBiasAddOffsetChVolt"> 4612 <property name="enabled"> 4613 <bool>true</bool> 4614 </property> 4615 <property name="text"> 4616 <string>Add Ch</string> 4617 </property> 4618 </widget> 4619 </item> 4620 <item row="2" column="0"> 4621 <widget class="QPushButton" name="fBiasAddOffsetGlobalVolt"> 4622 <property name="enabled"> 4623 <bool>true</bool> 4624 </property> 4625 <property name="text"> 4626 <string>Add global</string> 4627 </property> 4628 </widget> 4629 </item> 4630 <item row="3" column="0"> 4631 <widget class="QPushButton" name="fBiasApplyOffsetChVolt"> 4632 <property name="enabled"> 4633 <bool>true</bool> 4634 </property> 4635 <property name="text"> 4636 <string>Set Ch</string> 4637 </property> 4638 </widget> 4639 </item> 4640 <item row="4" column="0"> 4641 <widget class="QPushButton" name="fBiasApplyOffsetGlobalVolt"> 4642 <property name="text"> 4643 <string>Set global</string> 4522 4644 </property> 4523 4645 </widget> 4524 4646 </item> 4525 4647 </layout> 4526 </item>4527 <item>4528 <layout class="QHBoxLayout" name="horizontalLayout_45">4529 <item>4530 <widget class="QPushButton" name="fBiasAddOffset">4531 <property name="text">4532 <string>Add offset globally</string>4533 </property>4534 </widget>4535 </item>4536 </layout>4537 </item>4538 <item>4539 <widget class="QPushButton" name="fBiasApplyOffset">4540 <property name="text">4541 <string>Set Vgapd + offset</string>4542 </property>4543 </widget>4544 </item>4545 <item>4546 <spacer name="verticalSpacer_70">4547 <property name="orientation">4548 <enum>Qt::Vertical</enum>4549 </property>4550 <property name="sizeType">4551 <enum>QSizePolicy::Preferred</enum>4552 </property>4553 <property name="sizeHint" stdset="0">4554 <size>4555 <width>20</width>4556 <height>40</height>4557 </size>4558 </property>4559 </spacer>4560 4648 </item> 4561 4649 </layout> … … 4574 4662 </property> 4575 4663 <item> 4576 <spacer name="verticalSpacer_65">4577 <property name="orientation">4578 <enum>Qt::Vertical</enum>4579 </property>4580 <property name="sizeType">4581 <enum>QSizePolicy::Preferred</enum>4582 </property>4583 <property name="sizeHint" stdset="0">4584 <size>4585 <width>20</width>4586 <height>40</height>4587 </size>4588 </property>4589 </spacer>4590 </item>4591 <item>4592 4664 <widget class="QPushButton" name="fBiasSetToZero"> 4593 4665 <property name="text"> … … 4618 4690 </item> 4619 4691 <item> 4620 <spacer name="verticalSpacer _67">4692 <spacer name="verticalSpacer"> 4621 4693 <property name="orientation"> 4622 4694 <enum>Qt::Vertical</enum> 4623 4695 </property> 4624 4696 <property name="sizeType"> 4625 <enum>QSizePolicy:: Preferred</enum>4697 <enum>QSizePolicy::Minimum</enum> 4626 4698 </property> 4627 4699 <property name="sizeHint" stdset="0"> … … 13046 13118 </widget> 13047 13119 </item> 13048 <item row="7" column="1">13049 <widget class="QDoubleSpinBox" name="fMagicWindDir">13050 <property name="alignment">13051 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>13052 </property>13053 <property name="readOnly">13054 <bool>true</bool>13055 </property>13056 <property name="buttonSymbols">13057 <enum>QAbstractSpinBox::NoButtons</enum>13058 </property>13059 <property name="suffix">13060 <string>°</string>13061 </property>13062 <property name="decimals">13063 <number>0</number>13064 </property>13065 <property name="minimum">13066 <double>-360.000000000000000</double>13067 </property>13068 <property name="maximum">13069 <double>360.000000000000000</double>13070 </property>13071 </widget>13072 </item>13073 13120 <item row="1" column="1"> 13074 13121 <widget class="QDoubleSpinBox" name="fMagicDew"> … … 13199 13246 <property name="alignment"> 13200 13247 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 13248 </property> 13249 </widget> 13250 </item> 13251 <item row="7" column="1"> 13252 <widget class="QLineEdit" name="fMagicWindDir"> 13253 <property name="text"> 13254 <string/> 13255 </property> 13256 <property name="maxLength"> 13257 <number>3</number> 13258 </property> 13259 <property name="frame"> 13260 <bool>true</bool> 13261 </property> 13262 <property name="alignment"> 13263 <set>Qt::AlignCenter</set> 13264 </property> 13265 <property name="readOnly"> 13266 <bool>true</bool> 13201 13267 </property> 13202 13268 </widget> … … 16750 16816 <size> 16751 16817 <width>241</width> 16752 <height>7 58</height>16818 <height>787</height> 16753 16819 </size> 16754 16820 </property> … … 17395 17461 </widget> 17396 17462 </item> 17397 <item row="13" column="1"> 17398 <widget class="QLabel" name="fStatusLogger"> 17463 <item row="15" column="3"> 17464 <widget class="QLabel" name="fStatusChatLabel"> 17465 <property name="text"> 17466 <string>Offline</string> 17467 </property> 17468 </widget> 17469 </item> 17470 <item row="15" column="2"> 17471 <widget class="QPushButton" name="fStatusChatLed"> 17472 <property name="enabled"> 17473 <bool>true</bool> 17474 </property> 17475 <property name="sizePolicy"> 17476 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 17477 <horstretch>0</horstretch> 17478 <verstretch>0</verstretch> 17479 </sizepolicy> 17480 </property> 17481 <property name="maximumSize"> 17482 <size> 17483 <width>18</width> 17484 <height>16777215</height> 17485 </size> 17486 </property> 17487 <property name="text"> 17488 <string/> 17489 </property> 17490 <property name="icon"> 17491 <iconset resource="design.qrc"> 17492 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 17493 </property> 17494 <property name="iconSize"> 17495 <size> 17496 <width>16</width> 17497 <height>16</height> 17498 </size> 17499 </property> 17500 <property name="checkable"> 17501 <bool>false</bool> 17502 </property> 17503 <property name="flat"> 17504 <bool>true</bool> 17505 </property> 17506 </widget> 17507 </item> 17508 <item row="15" column="1"> 17509 <widget class="QLabel" name="fStatusChat"> 17399 17510 <property name="sizePolicy"> 17400 17511 <sizepolicy hsizetype="Minimum" vsizetype="Preferred"> … … 17404 17515 </property> 17405 17516 <property name="toolTip"> 17406 <string> Data Logger (writes slow control files)</string>17517 <string>Chat server</string> 17407 17518 </property> 17408 17519 <property name="text"> 17409 <string> Logger</string>17520 <string>Chat</string> 17410 17521 </property> 17411 17522 <property name="alignment"> 17412 17523 <set>Qt::AlignCenter</set> 17524 </property> 17525 </widget> 17526 </item> 17527 <item row="16" column="1"> 17528 <widget class="QLabel" name="label_60"> 17529 <property name="text"> 17530 <string>Scheduler</string> 17531 </property> 17532 <property name="alignment"> 17533 <set>Qt::AlignCenter</set> 17534 </property> 17535 </widget> 17536 </item> 17537 <item row="16" column="2"> 17538 <widget class="QPushButton" name="fStatusSchedulerLed"> 17539 <property name="maximumSize"> 17540 <size> 17541 <width>18</width> 17542 <height>16777215</height> 17543 </size> 17544 </property> 17545 <property name="text"> 17546 <string/> 17547 </property> 17548 <property name="icon"> 17549 <iconset resource="design.qrc"> 17550 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 17551 </property> 17552 <property name="flat"> 17553 <bool>true</bool> 17554 </property> 17555 </widget> 17556 </item> 17557 <item row="16" column="3"> 17558 <widget class="QLabel" name="fStatusSchedulerLabel"> 17559 <property name="text"> 17560 <string>Offline</string> 17413 17561 </property> 17414 17562 </widget> … … 17452 17600 </widget> 17453 17601 </item> 17454 <item row="13" column="3">17455 <widget class="QLabel" name="fStatusLoggerLabel">17456 <property name="text">17457 <string>Offline</string>17458 </property>17459 </widget>17460 </item>17461 <item row="14" column="3">17462 <widget class="QLabel" name="fStatusChatLabel">17463 <property name="text">17464 <string>Offline</string>17465 </property>17466 </widget>17467 </item>17468 17602 <item row="14" column="2"> 17469 <widget class="QPushButton" name="fStatus ChatLed">17603 <widget class="QPushButton" name="fStatusWeatherLed"> 17470 17604 <property name="enabled"> 17471 17605 <bool>true</bool> … … 17504 17638 </widget> 17505 17639 </item> 17506 <item row="1 4" column="1">17507 <widget class="QLabel" name="fStatus Chat">17640 <item row="13" column="1"> 17641 <widget class="QLabel" name="fStatusLogger"> 17508 17642 <property name="sizePolicy"> 17509 17643 <sizepolicy hsizetype="Minimum" vsizetype="Preferred"> … … 17513 17647 </property> 17514 17648 <property name="toolTip"> 17515 <string> Chat server</string>17649 <string>Data Logger (writes slow control files)</string> 17516 17650 </property> 17517 17651 <property name="text"> 17518 <string> Chat</string>17652 <string>Logger</string> 17519 17653 </property> 17520 17654 <property name="alignment"> … … 17523 17657 </widget> 17524 17658 </item> 17525 <item row="15" column="1"> 17526 <widget class="QLabel" name="label_60"> 17659 <item row="14" column="1"> 17660 <widget class="QLabel" name="fStatusWeather"> 17661 <property name="sizePolicy"> 17662 <sizepolicy hsizetype="Minimum" vsizetype="Preferred"> 17663 <horstretch>0</horstretch> 17664 <verstretch>0</verstretch> 17665 </sizepolicy> 17666 </property> 17667 <property name="toolTip"> 17668 <string>Data Logger (writes slow control files)</string> 17669 </property> 17527 17670 <property name="text"> 17528 <string> Scheduler</string>17671 <string>Weather</string> 17529 17672 </property> 17530 17673 <property name="alignment"> … … 17533 17676 </widget> 17534 17677 </item> 17535 <item row="15" column="2"> 17536 <widget class="QPushButton" name="fStatusSchedulerLed"> 17537 <property name="maximumSize"> 17538 <size> 17539 <width>18</width> 17540 <height>16777215</height> 17541 </size> 17542 </property> 17678 <item row="13" column="3"> 17679 <widget class="QLabel" name="fStatusLoggerLabel"> 17543 17680 <property name="text"> 17544 <string/> 17545 </property> 17546 <property name="icon"> 17547 <iconset resource="design.qrc"> 17548 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 17549 </property> 17550 <property name="flat"> 17551 <bool>true</bool> 17681 <string>Offline</string> 17552 17682 </property> 17553 17683 </widget> 17554 17684 </item> 17555 <item row="1 5" column="3">17556 <widget class="QLabel" name="fStatus SchedulerLabel">17685 <item row="14" column="3"> 17686 <widget class="QLabel" name="fStatusWeatherLabel"> 17557 17687 <property name="text"> 17558 17688 <string>Offline</string>
Note:
See TracChangeset
for help on using the changeset viewer.