Changeset 11166
- Timestamp:
- 06/24/11 12:55:20 (13 years ago)
- Location:
- trunk/FACT++
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11159 r11166 390 390 DimStampedInfo fDimFadConnections; 391 391 DimStampedInfo fDimFadFwVersion; 392 DimStampedInfo fDimFadPllLock; 392 393 DimStampedInfo fDimFadStatistics; 393 394 … … 1110 1111 fFadFwVersion->setToolTip(tip.str().c_str()); 1111 1112 1112 SetLedColor(fFadLEDFwVersion, d.qos?kLedGreen:kLedOrange, d.time); 1113 SetLedColor(fFadLedFwVersion, d.qos?kLedGreen:kLedOrange, d.time); 1114 } 1115 1116 void handleFadPllLock(const DimData &d) 1117 { 1118 if (!CheckSize(d, 43*sizeof(uint8_t))) 1119 return; 1120 1121 SetLedColor(fFadLedPllLock, d.qos?kLedGreen:kLedOrange, d.time); 1122 1123 const uint8_t *ptr = d.ptr<uint8_t>(); 1124 1125 ostringstream tip; 1126 tip << "<table border='1'><tr><th colspan='11'>" << Time().GetAsStr() << "</th></tr><tr><th></th>"; 1127 for (int b=0; b<10; b++) 1128 tip << "<th>" << b << "</th>"; 1129 tip << "</tr>"; 1130 1131 for (int c=0; c<4; c++) 1132 { 1133 tip << "<tr><th>" << c << "</th>"; 1134 for (int b=0; b<10; b++) 1135 { 1136 tip << "<td>" 1137 << (int)(ptr[c*10+b+3]&8) 1138 << (int)(ptr[c*10+b+3]&4) 1139 << (int)(ptr[c*10+b+3]&2) 1140 << (int)(ptr[c*10+b+3]&1) 1141 << "</td>"; 1142 } 1143 tip << "</tr>"; 1144 } 1145 tip << "</table>"; 1146 1147 fFadLedPllLock->setToolTip(tip.str().c_str()); 1113 1148 } 1114 1149 … … 1908 1943 return PostInfoHandler(&FactGui::handleFadFwVersion); 1909 1944 1945 if (getInfo()==&fDimFadPllLock) 1946 return PostInfoHandler(&FactGui::handleFadPllLock); 1947 1910 1948 if (getInfo()==&fDimFadStatistics) 1911 1949 return PostInfoHandler(&FactGui::handleFadStatistics); … … 2349 2387 fDimFadConnections ("FAD_CONTROL/CONNECTIONS", (void*)NULL, 0, this), 2350 2388 fDimFadFwVersion ("FAD_CONTROL/FIRMWARE_VERSION", (void*)NULL, 0, this), 2389 fDimFadPllLock ("FAD_CONTROL/PLL_LOCK", (void*)NULL, 0, this), 2351 2390 fDimFadStatistics ("FAD_CONTROL/STATISTICS", (void*)NULL, 0, this) 2352 2391 { -
trunk/FACT++/src/EventBuilderWrapper.h
r11162 r11166 721 721 DimDescribedService fDimEventData; 722 722 DimDescribedService fDimFwVersion; 723 DimDescribedService fDimPllLock; 723 724 DimDescribedService fDimStatistics; 724 725 … … 740 741 fDimEventData("FAD_CONTROL/EVENT_DATA", "S:1;I:1;S:1;I:2;S:1;S", ""), 741 742 fDimFwVersion("FAD_CONTROL/FIRMWARE_VERSION", "F:43", ""), 743 fDimPllLock("FAD_CONTROL/PLL_LOCK", "C:43", ""), 742 744 fDimStatistics("FAD_CONTROL/STATISTICS", "X:8", ""), 743 745 fDebugStream(false), fDebugRead(false) … … 1353 1355 vec[i+3] = *ref; 1354 1356 1355 if (gi_NumConnect[i/7]!=7)1356 continue;1357 // if (gi_NumConnect[i/7]!=7) 1358 // continue; 1357 1359 1358 1360 if (!val) … … 1403 1405 { 1404 1406 const uint16_t id = h.Id(); 1405 if (id>39) // WARNING1407 if (id>39) 1406 1408 return; 1407 1409 … … 1442 1444 { 1443 1445 const pair<bool, boost::array<uint16_t,43>> pll = Compare(&h, &h.fStatus, 0xf<<12, 12); 1444 Print("Pll", pll); 1446 pair<bool, boost::array<uint8_t,43>> data; 1447 data.first = pll.first; 1448 1449 for (int i=0; i<43; i++) 1450 data.second[i] = (pll.second[i]>>12)&0xf; 1451 Update(fDimPllLock, data); 1445 1452 } 1446 1453
Note:
See TracChangeset
for help on using the changeset viewer.