Changeset 11635 for trunk/FACT++
- Timestamp:
- 07/26/11 23:43:53 (13 years ago)
- Location:
- trunk/FACT++
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11625 r11635 397 397 DimStampedInfo fDimFadRefClock; 398 398 DimStampedInfo fDimFadRoi; 399 DimStampedInfo fDimFadDac; 399 400 DimStampedInfo fDimFadStatus; 400 401 DimStampedInfo fDimFadStatistics1; … … 1095 1096 1096 1097 SetLedColor(fFadLedRoi, kLedGray, d.time); 1098 } 1099 1100 void handleDac(QPushButton *led, QSpinBox *box, const DimData &d, int idx) 1101 { 1102 if (d.size()==0) 1103 { 1104 box->setEnabled(false); 1105 SetLedColor(led, kLedGray, d.time); 1106 return; 1107 } 1108 1109 const uint16_t *ptr = d.ptr<uint16_t>()+idx*42; 1110 1111 box->setEnabled(true); 1112 box->setValue(ptr[40]==ptr[41]?ptr[40]:0); 1113 1114 SetLedColor(led, ptr[40]==ptr[41]?kLedGreen:kLedOrange, d.time); 1115 handleFadToolTip(d.time, led, ptr); 1116 } 1117 1118 void handleFadDac(const DimData &d) 1119 { 1120 if (!CheckSize(d, 8*42*sizeof(uint16_t)) && !d.size()==0) 1121 return; 1122 1123 handleDac(fFadLedDac0, fFadDac0, d, 0); 1124 handleDac(fFadLedDac1, fFadDac1, d, 1); 1125 handleDac(fFadLedDac2, fFadDac2, d, 2); 1126 handleDac(fFadLedDac3, fFadDac3, d, 3); 1127 handleDac(fFadLedDac4, fFadDac4, d, 4); 1128 handleDac(fFadLedDac5, fFadDac5, d, 5); 1129 handleDac(fFadLedDac6, fFadDac6, d, 6); 1130 handleDac(fFadLedDac7, fFadDac7, d, 7); 1097 1131 } 1098 1132 … … 2324 2358 if (getInfo()==&fDimFadRoi) 2325 2359 return PostInfoHandler(&FactGui::handleFadRoi); 2360 2361 if (getInfo()==&fDimFadDac) 2362 return PostInfoHandler(&FactGui::handleFadDac); 2326 2363 2327 2364 if (getInfo()==&fDimFadPrescaler) … … 2781 2818 fDimFadRefClock ("FAD_CONTROL/REFERENCE_CLOCK", (void*)NULL, 0, this), 2782 2819 fDimFadRoi ("FAD_CONTROL/REGION_OF_INTEREST", (void*)NULL, 0, this), 2820 fDimFadDac ("FAD_CONTROL/DAC", (void*)NULL, 0, this), 2783 2821 fDimFadStatus ("FAD_CONTROL/STATUS", (void*)NULL, 0, this), 2784 2822 fDimFadStatistics1 ("FAD_CONTROL/STATISTICS1", (void*)NULL, 0, this), -
trunk/FACT++/gui/MainWindow.cc
r11624 r11635 353 353 } 354 354 355 void MainWindow::FadDacCmd_valueChanged(uint16_t val, uint16_t idx) 356 { 357 const uint16_t cmd[2] = { idx, val }; 358 Dim::SendCommand("FAD_CONTROL/SET_DAC_VALUE", cmd); 359 } 360 355 361 void MainWindow::SetTriggerSequence() 356 362 { -
trunk/FACT++/gui/MainWindow.h
r11624 r11635 89 89 void on_fFadRoiCmd_valueChanged(int); 90 90 91 void FadDacCmd_valueChanged(uint16_t, uint16_t); 92 93 void on_fFadDac0Cmd_valueChanged(int v) { FadDacCmd_valueChanged(v, 0); } 94 void on_fFadDac1Cmd_valueChanged(int v) { FadDacCmd_valueChanged(v, 1); } 95 void on_fFadDac2Cmd_valueChanged(int v) { FadDacCmd_valueChanged(v, 2); } 96 void on_fFadDac3Cmd_valueChanged(int v) { FadDacCmd_valueChanged(v, 3); } 97 void on_fFadDac4Cmd_valueChanged(int v) { FadDacCmd_valueChanged(v, 4); } 98 void on_fFadDac5Cmd_valueChanged(int v) { FadDacCmd_valueChanged(v, 5); } 99 void on_fFadDac6Cmd_valueChanged(int v) { FadDacCmd_valueChanged(v, 6); } 100 void on_fFadDac7Cmd_valueChanged(int v) { FadDacCmd_valueChanged(v, 7); } 101 91 102 // Tab: Adc 92 103 virtual void DisplayEventData() = 0; -
trunk/FACT++/gui/design.ui
r11632 r11635 12 12 <y>0</y> 13 13 <width>1144</width> 14 <height>8 55</height>14 <height>838</height> 15 15 </rect> 16 16 </property> … … 3236 3236 </widget> 3237 3237 </item> 3238 <item row="0" column="1">3239 <widget class="QPushButton" name="fFadLedFwVersion">3240 <property name="enabled">3241 <bool>true</bool>3242 </property>3243 <property name="sizePolicy">3244 <sizepolicy hsizetype="Fixed" vsizetype="Minimum">3245 <horstretch>0</horstretch>3246 <verstretch>0</verstretch>3247 </sizepolicy>3248 </property>3249 <property name="maximumSize">3250 <size>3251 <width>18</width>3252 <height>16777215</height>3253 </size>3254 </property>3255 <property name="text">3256 <string/>3257 </property>3258 <property name="icon">3259 <iconset resource="design.qrc">3260 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset>3261 </property>3262 <property name="iconSize">3263 <size>3264 <width>16</width>3265 <height>16</height>3266 </size>3267 </property>3268 <property name="checkable">3269 <bool>false</bool>3270 </property>3271 <property name="flat">3272 <bool>true</bool>3273 </property>3274 </widget>3275 </item>3276 3238 <item row="2" column="2"> 3277 3239 <widget class="QSpinBox" name="fFadPrescaler"> … … 3780 3742 </widget> 3781 3743 </item> 3744 <item row="0" column="1"> 3745 <widget class="QPushButton" name="fFadLedFwVersion"> 3746 <property name="enabled"> 3747 <bool>true</bool> 3748 </property> 3749 <property name="sizePolicy"> 3750 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 3751 <horstretch>0</horstretch> 3752 <verstretch>0</verstretch> 3753 </sizepolicy> 3754 </property> 3755 <property name="maximumSize"> 3756 <size> 3757 <width>18</width> 3758 <height>16777215</height> 3759 </size> 3760 </property> 3761 <property name="text"> 3762 <string/> 3763 </property> 3764 <property name="icon"> 3765 <iconset resource="design.qrc"> 3766 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 3767 </property> 3768 <property name="iconSize"> 3769 <size> 3770 <width>16</width> 3771 <height>16</height> 3772 </size> 3773 </property> 3774 <property name="checkable"> 3775 <bool>false</bool> 3776 </property> 3777 <property name="flat"> 3778 <bool>true</bool> 3779 </property> 3780 </widget> 3781 </item> 3782 3782 </layout> 3783 </item>3784 <item row="1" column="0">3785 <spacer name="horizontalSpacer_31">3786 <property name="orientation">3787 <enum>Qt::Horizontal</enum>3788 </property>3789 <property name="sizeHint" stdset="0">3790 <size>3791 <width>40</width>3792 <height>20</height>3793 </size>3794 </property>3795 </spacer>3796 3783 </item> 3797 3784 <item row="0" column="1"> … … 3815 3802 </spacer> 3816 3803 </item> 3804 <item row="1" column="0"> 3805 <spacer name="horizontalSpacer_31"> 3806 <property name="orientation"> 3807 <enum>Qt::Horizontal</enum> 3808 </property> 3809 <property name="sizeHint" stdset="0"> 3810 <size> 3811 <width>40</width> 3812 <height>20</height> 3813 </size> 3814 </property> 3815 </spacer> 3816 </item> 3817 3817 </layout> 3818 3818 </widget> 3819 3819 </item> 3820 3820 <item> 3821 < widget class="QGroupBox" name="groupBox_12">3822 <property name="t itle">3823 < string>FAD DNAs</string>3821 <layout class="QHBoxLayout" name="horizontalLayout_30"> 3822 <property name="topMargin"> 3823 <number>0</number> 3824 3824 </property> 3825 <layout class="QGridLayout" name="gridLayout_39"> 3826 <item row="0" column="0"> 3827 <widget class="QTextEdit" name="fFadDNA"/> 3828 </item> 3829 </layout> 3830 </widget> 3825 <item> 3826 <widget class="QGroupBox" name="groupBox_12"> 3827 <property name="title"> 3828 <string>FAD DNAs</string> 3829 </property> 3830 <layout class="QGridLayout" name="gridLayout_39"> 3831 <item row="0" column="0"> 3832 <widget class="QTextEdit" name="fFadDNA"/> 3833 </item> 3834 </layout> 3835 </widget> 3836 </item> 3837 <item> 3838 <widget class="QGroupBox" name="groupBox_9"> 3839 <property name="title"> 3840 <string>DACs</string> 3841 </property> 3842 <layout class="QGridLayout" name="gridLayout_63"> 3843 <item row="0" column="0"> 3844 <layout class="QGridLayout" name="gridLayout_62"> 3845 <property name="rightMargin"> 3846 <number>0</number> 3847 </property> 3848 <item row="0" column="2"> 3849 <widget class="QSpinBox" name="fFadDac0"> 3850 <property name="alignment"> 3851 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3852 </property> 3853 <property name="readOnly"> 3854 <bool>true</bool> 3855 </property> 3856 <property name="buttonSymbols"> 3857 <enum>QAbstractSpinBox::NoButtons</enum> 3858 </property> 3859 <property name="maximum"> 3860 <number>65535</number> 3861 </property> 3862 </widget> 3863 </item> 3864 <item row="1" column="2"> 3865 <widget class="QSpinBox" name="fFadDac1"> 3866 <property name="alignment"> 3867 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3868 </property> 3869 <property name="readOnly"> 3870 <bool>true</bool> 3871 </property> 3872 <property name="buttonSymbols"> 3873 <enum>QAbstractSpinBox::NoButtons</enum> 3874 </property> 3875 <property name="maximum"> 3876 <number>65535</number> 3877 </property> 3878 </widget> 3879 </item> 3880 <item row="2" column="2"> 3881 <widget class="QSpinBox" name="fFadDac2"> 3882 <property name="alignment"> 3883 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3884 </property> 3885 <property name="readOnly"> 3886 <bool>true</bool> 3887 </property> 3888 <property name="buttonSymbols"> 3889 <enum>QAbstractSpinBox::NoButtons</enum> 3890 </property> 3891 <property name="maximum"> 3892 <number>65535</number> 3893 </property> 3894 </widget> 3895 </item> 3896 <item row="3" column="2"> 3897 <widget class="QSpinBox" name="fFadDac3"> 3898 <property name="alignment"> 3899 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3900 </property> 3901 <property name="readOnly"> 3902 <bool>true</bool> 3903 </property> 3904 <property name="buttonSymbols"> 3905 <enum>QAbstractSpinBox::NoButtons</enum> 3906 </property> 3907 <property name="maximum"> 3908 <number>65535</number> 3909 </property> 3910 </widget> 3911 </item> 3912 <item row="4" column="2"> 3913 <widget class="QSpinBox" name="fFadDac4"> 3914 <property name="alignment"> 3915 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3916 </property> 3917 <property name="readOnly"> 3918 <bool>true</bool> 3919 </property> 3920 <property name="buttonSymbols"> 3921 <enum>QAbstractSpinBox::NoButtons</enum> 3922 </property> 3923 <property name="maximum"> 3924 <number>65535</number> 3925 </property> 3926 </widget> 3927 </item> 3928 <item row="5" column="2"> 3929 <widget class="QSpinBox" name="fFadDac5"> 3930 <property name="alignment"> 3931 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3932 </property> 3933 <property name="readOnly"> 3934 <bool>true</bool> 3935 </property> 3936 <property name="buttonSymbols"> 3937 <enum>QAbstractSpinBox::NoButtons</enum> 3938 </property> 3939 <property name="maximum"> 3940 <number>65535</number> 3941 </property> 3942 </widget> 3943 </item> 3944 <item row="6" column="2"> 3945 <widget class="QSpinBox" name="fFadDac6"> 3946 <property name="alignment"> 3947 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3948 </property> 3949 <property name="readOnly"> 3950 <bool>true</bool> 3951 </property> 3952 <property name="buttonSymbols"> 3953 <enum>QAbstractSpinBox::NoButtons</enum> 3954 </property> 3955 <property name="maximum"> 3956 <number>65535</number> 3957 </property> 3958 </widget> 3959 </item> 3960 <item row="0" column="3"> 3961 <widget class="QSpinBox" name="fFadDac0Cmd"> 3962 <property name="alignment"> 3963 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3964 </property> 3965 <property name="maximum"> 3966 <number>65535</number> 3967 </property> 3968 </widget> 3969 </item> 3970 <item row="1" column="3"> 3971 <widget class="QSpinBox" name="fFadDac1Cmd"> 3972 <property name="alignment"> 3973 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3974 </property> 3975 <property name="maximum"> 3976 <number>65535</number> 3977 </property> 3978 </widget> 3979 </item> 3980 <item row="2" column="3"> 3981 <widget class="QSpinBox" name="fFadDac2Cmd"> 3982 <property name="alignment"> 3983 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3984 </property> 3985 <property name="maximum"> 3986 <number>65535</number> 3987 </property> 3988 </widget> 3989 </item> 3990 <item row="3" column="3"> 3991 <widget class="QSpinBox" name="fFadDac3Cmd"> 3992 <property name="alignment"> 3993 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3994 </property> 3995 <property name="maximum"> 3996 <number>65535</number> 3997 </property> 3998 </widget> 3999 </item> 4000 <item row="4" column="3"> 4001 <widget class="QSpinBox" name="fFadDac4Cmd"> 4002 <property name="alignment"> 4003 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 4004 </property> 4005 <property name="maximum"> 4006 <number>65535</number> 4007 </property> 4008 </widget> 4009 </item> 4010 <item row="5" column="3"> 4011 <widget class="QSpinBox" name="fFadDac5Cmd"> 4012 <property name="alignment"> 4013 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 4014 </property> 4015 <property name="maximum"> 4016 <number>65535</number> 4017 </property> 4018 </widget> 4019 </item> 4020 <item row="6" column="3"> 4021 <widget class="QSpinBox" name="fFadDac6Cmd"> 4022 <property name="alignment"> 4023 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 4024 </property> 4025 <property name="maximum"> 4026 <number>65535</number> 4027 </property> 4028 </widget> 4029 </item> 4030 <item row="7" column="2"> 4031 <widget class="QSpinBox" name="fFadDac7"> 4032 <property name="alignment"> 4033 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 4034 </property> 4035 <property name="readOnly"> 4036 <bool>true</bool> 4037 </property> 4038 <property name="buttonSymbols"> 4039 <enum>QAbstractSpinBox::NoButtons</enum> 4040 </property> 4041 <property name="maximum"> 4042 <number>65535</number> 4043 </property> 4044 </widget> 4045 </item> 4046 <item row="7" column="3"> 4047 <widget class="QSpinBox" name="fFadDac7Cmd"> 4048 <property name="alignment"> 4049 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 4050 </property> 4051 <property name="maximum"> 4052 <number>65535</number> 4053 </property> 4054 </widget> 4055 </item> 4056 <item row="0" column="0"> 4057 <widget class="QLabel" name="label_162"> 4058 <property name="text"> 4059 <string>DAC0</string> 4060 </property> 4061 </widget> 4062 </item> 4063 <item row="1" column="0"> 4064 <widget class="QLabel" name="label_166"> 4065 <property name="text"> 4066 <string>DAC1</string> 4067 </property> 4068 </widget> 4069 </item> 4070 <item row="2" column="0"> 4071 <widget class="QLabel" name="label_167"> 4072 <property name="text"> 4073 <string>DAC2</string> 4074 </property> 4075 </widget> 4076 </item> 4077 <item row="3" column="0"> 4078 <widget class="QLabel" name="label_168"> 4079 <property name="text"> 4080 <string>DAC3</string> 4081 </property> 4082 </widget> 4083 </item> 4084 <item row="4" column="0"> 4085 <widget class="QLabel" name="label_169"> 4086 <property name="text"> 4087 <string>DAC4</string> 4088 </property> 4089 </widget> 4090 </item> 4091 <item row="5" column="0"> 4092 <widget class="QLabel" name="label_170"> 4093 <property name="text"> 4094 <string>DAC5</string> 4095 </property> 4096 </widget> 4097 </item> 4098 <item row="6" column="0"> 4099 <widget class="QLabel" name="label_171"> 4100 <property name="text"> 4101 <string>DAC6</string> 4102 </property> 4103 </widget> 4104 </item> 4105 <item row="7" column="0"> 4106 <widget class="QLabel" name="label_172"> 4107 <property name="text"> 4108 <string>DAC7</string> 4109 </property> 4110 </widget> 4111 </item> 4112 <item row="0" column="1"> 4113 <widget class="QPushButton" name="fFadLedDac0"> 4114 <property name="enabled"> 4115 <bool>true</bool> 4116 </property> 4117 <property name="sizePolicy"> 4118 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 4119 <horstretch>0</horstretch> 4120 <verstretch>0</verstretch> 4121 </sizepolicy> 4122 </property> 4123 <property name="maximumSize"> 4124 <size> 4125 <width>18</width> 4126 <height>16777215</height> 4127 </size> 4128 </property> 4129 <property name="text"> 4130 <string/> 4131 </property> 4132 <property name="icon"> 4133 <iconset resource="design.qrc"> 4134 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 4135 </property> 4136 <property name="iconSize"> 4137 <size> 4138 <width>16</width> 4139 <height>16</height> 4140 </size> 4141 </property> 4142 <property name="checkable"> 4143 <bool>false</bool> 4144 </property> 4145 <property name="flat"> 4146 <bool>true</bool> 4147 </property> 4148 </widget> 4149 </item> 4150 <item row="1" column="1"> 4151 <widget class="QPushButton" name="fFadLedDac1"> 4152 <property name="enabled"> 4153 <bool>true</bool> 4154 </property> 4155 <property name="sizePolicy"> 4156 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 4157 <horstretch>0</horstretch> 4158 <verstretch>0</verstretch> 4159 </sizepolicy> 4160 </property> 4161 <property name="maximumSize"> 4162 <size> 4163 <width>18</width> 4164 <height>16777215</height> 4165 </size> 4166 </property> 4167 <property name="text"> 4168 <string/> 4169 </property> 4170 <property name="icon"> 4171 <iconset resource="design.qrc"> 4172 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 4173 </property> 4174 <property name="iconSize"> 4175 <size> 4176 <width>16</width> 4177 <height>16</height> 4178 </size> 4179 </property> 4180 <property name="checkable"> 4181 <bool>false</bool> 4182 </property> 4183 <property name="flat"> 4184 <bool>true</bool> 4185 </property> 4186 </widget> 4187 </item> 4188 <item row="2" column="1"> 4189 <widget class="QPushButton" name="fFadLedDac2"> 4190 <property name="enabled"> 4191 <bool>true</bool> 4192 </property> 4193 <property name="sizePolicy"> 4194 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 4195 <horstretch>0</horstretch> 4196 <verstretch>0</verstretch> 4197 </sizepolicy> 4198 </property> 4199 <property name="maximumSize"> 4200 <size> 4201 <width>18</width> 4202 <height>16777215</height> 4203 </size> 4204 </property> 4205 <property name="text"> 4206 <string/> 4207 </property> 4208 <property name="icon"> 4209 <iconset resource="design.qrc"> 4210 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 4211 </property> 4212 <property name="iconSize"> 4213 <size> 4214 <width>16</width> 4215 <height>16</height> 4216 </size> 4217 </property> 4218 <property name="checkable"> 4219 <bool>false</bool> 4220 </property> 4221 <property name="flat"> 4222 <bool>true</bool> 4223 </property> 4224 </widget> 4225 </item> 4226 <item row="3" column="1"> 4227 <widget class="QPushButton" name="fFadLedDac3"> 4228 <property name="enabled"> 4229 <bool>true</bool> 4230 </property> 4231 <property name="sizePolicy"> 4232 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 4233 <horstretch>0</horstretch> 4234 <verstretch>0</verstretch> 4235 </sizepolicy> 4236 </property> 4237 <property name="maximumSize"> 4238 <size> 4239 <width>18</width> 4240 <height>16777215</height> 4241 </size> 4242 </property> 4243 <property name="text"> 4244 <string/> 4245 </property> 4246 <property name="icon"> 4247 <iconset resource="design.qrc"> 4248 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 4249 </property> 4250 <property name="iconSize"> 4251 <size> 4252 <width>16</width> 4253 <height>16</height> 4254 </size> 4255 </property> 4256 <property name="checkable"> 4257 <bool>false</bool> 4258 </property> 4259 <property name="flat"> 4260 <bool>true</bool> 4261 </property> 4262 </widget> 4263 </item> 4264 <item row="4" column="1"> 4265 <widget class="QPushButton" name="fFadLedDac4"> 4266 <property name="enabled"> 4267 <bool>true</bool> 4268 </property> 4269 <property name="sizePolicy"> 4270 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 4271 <horstretch>0</horstretch> 4272 <verstretch>0</verstretch> 4273 </sizepolicy> 4274 </property> 4275 <property name="maximumSize"> 4276 <size> 4277 <width>18</width> 4278 <height>16777215</height> 4279 </size> 4280 </property> 4281 <property name="text"> 4282 <string/> 4283 </property> 4284 <property name="icon"> 4285 <iconset resource="design.qrc"> 4286 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 4287 </property> 4288 <property name="iconSize"> 4289 <size> 4290 <width>16</width> 4291 <height>16</height> 4292 </size> 4293 </property> 4294 <property name="checkable"> 4295 <bool>false</bool> 4296 </property> 4297 <property name="flat"> 4298 <bool>true</bool> 4299 </property> 4300 </widget> 4301 </item> 4302 <item row="5" column="1"> 4303 <widget class="QPushButton" name="fFadLedDac5"> 4304 <property name="enabled"> 4305 <bool>true</bool> 4306 </property> 4307 <property name="sizePolicy"> 4308 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 4309 <horstretch>0</horstretch> 4310 <verstretch>0</verstretch> 4311 </sizepolicy> 4312 </property> 4313 <property name="maximumSize"> 4314 <size> 4315 <width>18</width> 4316 <height>16777215</height> 4317 </size> 4318 </property> 4319 <property name="text"> 4320 <string/> 4321 </property> 4322 <property name="icon"> 4323 <iconset resource="design.qrc"> 4324 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 4325 </property> 4326 <property name="iconSize"> 4327 <size> 4328 <width>16</width> 4329 <height>16</height> 4330 </size> 4331 </property> 4332 <property name="checkable"> 4333 <bool>false</bool> 4334 </property> 4335 <property name="flat"> 4336 <bool>true</bool> 4337 </property> 4338 </widget> 4339 </item> 4340 <item row="6" column="1"> 4341 <widget class="QPushButton" name="fFadLedDac6"> 4342 <property name="enabled"> 4343 <bool>true</bool> 4344 </property> 4345 <property name="sizePolicy"> 4346 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 4347 <horstretch>0</horstretch> 4348 <verstretch>0</verstretch> 4349 </sizepolicy> 4350 </property> 4351 <property name="maximumSize"> 4352 <size> 4353 <width>18</width> 4354 <height>16777215</height> 4355 </size> 4356 </property> 4357 <property name="text"> 4358 <string/> 4359 </property> 4360 <property name="icon"> 4361 <iconset resource="design.qrc"> 4362 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 4363 </property> 4364 <property name="iconSize"> 4365 <size> 4366 <width>16</width> 4367 <height>16</height> 4368 </size> 4369 </property> 4370 <property name="checkable"> 4371 <bool>false</bool> 4372 </property> 4373 <property name="flat"> 4374 <bool>true</bool> 4375 </property> 4376 </widget> 4377 </item> 4378 <item row="7" column="1"> 4379 <widget class="QPushButton" name="fFadLedDac7"> 4380 <property name="enabled"> 4381 <bool>true</bool> 4382 </property> 4383 <property name="sizePolicy"> 4384 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 4385 <horstretch>0</horstretch> 4386 <verstretch>0</verstretch> 4387 </sizepolicy> 4388 </property> 4389 <property name="maximumSize"> 4390 <size> 4391 <width>18</width> 4392 <height>16777215</height> 4393 </size> 4394 </property> 4395 <property name="text"> 4396 <string/> 4397 </property> 4398 <property name="icon"> 4399 <iconset resource="design.qrc"> 4400 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 4401 </property> 4402 <property name="iconSize"> 4403 <size> 4404 <width>16</width> 4405 <height>16</height> 4406 </size> 4407 </property> 4408 <property name="checkable"> 4409 <bool>false</bool> 4410 </property> 4411 <property name="flat"> 4412 <bool>true</bool> 4413 </property> 4414 </widget> 4415 </item> 4416 </layout> 4417 </item> 4418 </layout> 4419 </widget> 4420 </item> 4421 </layout> 3831 4422 </item> 3832 4423 </layout> … … 4695 5286 </item> 4696 5287 <item row="6" column="3"> 4697 <widget class="QLabel" name="label_1 61">5288 <widget class="QLabel" name="label_180"> 4698 5289 <property name="text"> 4699 5290 <string>Constant busy off</string> -
trunk/FACT++/src/EventBuilderWrapper.h
r11607 r11635 802 802 DimDescribedService fDimRefClock; 803 803 DimDescribedService fDimRoi; 804 DimDescribedService fDimDac; 804 805 DimDescribedService fDimStatistics1; 805 806 DimDescribedService fDimStatistics2; … … 853 854 fDimRefClock ("FAD_CONTROL/REFERENCE_CLOCK", "I:42", ""), 854 855 fDimRoi ("FAD_CONTROL/REGION_OF_INTEREST", "S:2", ""), 856 fDimDac ("FAD_CONTROL/DAC", "S:336", ""), 855 857 fDimStatistics1 ("FAD_CONTROL/STATISTICS1", "I:3;I:5;X:4;I:3;I:3;I:40;I:1;I:2;C:40;I:40;I:40;X:40", ""), 856 858 fDimStatistics2 ("FAD_CONTROL/STATISTICS2", "I:1;I:280;X:40;I:40;I:4;I:4;I:2;I:2;I:3;C:40", ""), … … 1743 1745 } 1744 1746 1747 if (memcmp(old.fDac, h.fDac, sizeof(h.fDac)) || changed) 1748 { 1749 array<uint16_t, FAD::kNumDac*42> dacs; 1750 1751 for (int i=0; i<FAD::kNumDac; i++) 1752 { 1753 const array<uint16_t, 42> dac = Compare(&fVecHeader[0], &fVecHeader[0].fDac[i]); 1754 memcpy(&dacs[i*42], &dac[0], sizeof(uint16_t)*42); 1755 } 1756 1757 Update(fDimDac, dacs); 1758 } 1759 1745 1760 // ----------- 1746 1761
Note:
See TracChangeset
for help on using the changeset viewer.