V 10 1 LANG:1 8 (NoName) PANEL,-1 -1 817 257 N "_3DFace" 0 E E E E E 1 0 0 0 10 242 ""0 1 E "#uses \"hmpBaseLibrary.ctl\" global int TrackNum = 0; global int TrackType = 0; global dyn_string dsCol; global dyn_string dsTracks; global int iModuleNumber = -1; global string sDpV = \"\"; global string sDpI = \"\"; global float fMinV = 0.0; global float fMinI = 0.0; global float fMaxV = 0.0; global float fMaxI = 0.0; __disconnectDp2Trend() { if(sDpV != \"\") { shape trend=getShape(\"Trend1\"); Trend1.disconnectDirectly(\"Curve1\"); Trend1.disconnectDirectly(\"Curve2\"); Trend1.curveRemoveData(\"Curve1\", getCurrentTime()); Trend1.curveRemoveData(\"Curve2\", getCurrentTime()); delay(0,500); } return; } __connectDp2Trend() { string sRoot; string sTyp,sExt; float fScal; shape trend=getShape(\"Trend1\"); switch(TrackNum) { case 1: case 2: case 3: case 4: case 5: case 6: switch(TrackType) { case 1: sTyp = LDT_HVSEG; sExt = 0; fMinV = 0.0; fMinI=0.0; fMaxV=3000.0; fMaxI=20.0; break; case 2: sTyp = LDT_LVSEG; sExt = LDC_ISPOSITIVE; fMinV = 0.0; fMinI=0.0; fMaxV=3.0; fMaxI=3.0; break; case 3: sTyp = LDT_LVSEG; sExt = LDC_ISNEGATIVE; fMinV = 0.0; fMinI=0.0; fMaxV=3.0; fMaxI=3.0; break; } sRoot = hmpBase_buildLogicalPathName(sTyp, iModuleNumber, 6-TrackNum, sExt); break; case 7: sRoot = hmpBase_buildLogicalPathName(LDT_LVROSEG, iModuleNumber, 0, LDC_ISLEFT); fMinV = 0.0; fMinI=0.0; fMaxV=5.1; fMaxI=30.0; break; case 8: sRoot = hmpBase_buildLogicalPathName(LDT_LVROSEG, iModuleNumber, 0, LDC_ISRIGHT); fMinV = 0.0; fMinI=0.0; fMaxV=5.1; fMaxI=30.0; break; case 9: sRoot = hmpBase_buildLogicalPathName(LDT_HVGRID, iModuleNumber, 0, 0); fMinV = 0; fMinI=0; fMaxV=3000; fMaxI=20.0; break; } //DebugN(\">dd>--A>\",sRoot,iModuleNumber); if (sRoot != \"\") { __disconnectDp2Trend(); sDpV = dpAliasToName(sRoot) + \"actual.vMon:_original.._value\"; sDpI = dpAliasToName(sRoot) + \"actual.iMon:_original.._value\"; Trend1.connectDirectly(\"Curve1\",sDpV); Trend1.connectDirectly(\"Curve2\",sDpI); fScal = spScaleV.text; trend.curveLegendName(\"Curve1\", sDpV); trend.curveAutoscale(\"Curve1\", false); trend.curveMax(\"Curve1\",fMaxV/fScal); trend.curveMin(\"Curve1\",fMinV/fScal); fScal = spScaleI.text; trend.curveLegendName(\"Curve2\", sDpI); trend.curveAutoscale(\"Curve2\", false); trend.curveMax(\"Curve2\",fMaxI/fScal); trend.curveMin(\"Curve2\",fMinI/fScal); setValue(\"Trend1\", \"trendRefresh\"); } } __deselectTrack() { if(TrackNum != 0 && TrackType != 0) { dyn_string tmp; tmp[1]=\"\"; // Contents tmp[2]=\"white\"; // Background tmp[3]=\"black\"; // Foreground setValue(\"tblTrack\",\"cellValueRC\",TrackNum, dsCol[TrackType+1], tmp); } } __selectTrack() { if(TrackNum != 0 && TrackType != 0) { dyn_string tmp; tmp[1]=\"\"; // Contents tmp[2]=\"green\"; // Background tmp[3]=\"white\"; // Foreground setValue(\"tblTrack\",\"cellValueRC\",TrackNum, dsCol[TrackType+1], tmp); } __connectDp2Trend(); } __setTableTrack() { shape table=getShape(\"tblTrack\"); table.deleteAllLines(); dyn_string tmp; tmp[1]=\"-\"; // Contents tmp[2]=\"{153,153,153}\"; // Background tmp[3]=\"{0,0,0}\"; // Foreground int i; dsTracks[1] = \" \"; dsTracks[2] = \"Sector 5\"; dsTracks[3] = \"Sector 4\"; dsTracks[4] = \"Sector 3\"; dsTracks[5] = \"Sector 2\"; dsTracks[6] = \"Sector 1\"; dsTracks[7] = \"Sector 0\"; dsTracks[8] = \"RO Left\"; dsTracks[9] = \"RO Right\"; dsTracks[10] = \"GRID\"; dsCol[1] = \"Track\"; dsCol[2] = \"HV\"; dsCol[3] = \"LVP\"; dsCol[4] = \"LVN\"; for(i=0;i<=9;i++) { table.appendLine(dsCol[1],dsTracks[i+1],dsCol[2],\"\",dsCol[3],\"\",dsCol[4],\"\"); table.cellBackColRC(i, \"Track\", \"{153,153,153}\"); table.cellForeColRC(i, \"Track\", \"{0,0,0}\"); } tmp[1] = \" HV\"; setValue(\"tblTrack\",\"cellValueRC\",0, dsCol[2], tmp); tmp[1] = \"LV+\"; setValue(\"tblTrack\",\"cellValueRC\",0, dsCol[3], tmp); tmp[1] = \"LV-\"; setValue(\"tblTrack\",\"cellValueRC\",0, dsCol[4], tmp); table.cellBackColRC(7, dsCol[2], \"FwEquipmentDisabled\"); table.cellBackColRC(7, dsCol[4], \"FwEquipmentDisabled\"); table.cellBackColRC(8, dsCol[2], \"FwEquipmentDisabled\"); table.cellBackColRC(8, dsCol[4], \"FwEquipmentDisabled\"); table.cellBackColRC(9, dsCol[3], \"FwEquipmentDisabled\"); table.cellBackColRC(9, dsCol[4], \"FwEquipmentDisabled\"); }" 0 2 "CBRef" "1" "EClose" E "" DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 LAYER, 0 1 LANG:1 6 Layer1 6 0 "Border1" "" 1 10 242 E E E 1 E 1 E N {0,0,0} E N "hmpUserFrameBack" E E E E 1 0 0 0 0 0 E E E 4 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 2 1 0 1 E U 1 E 10 10 810 243 2 4 "Text1" "" 1 12 226 E E E 1 E 1 E N {0,102,102} E N {102,102,102} E E E E 5 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 1 E 14 228 260 238 0 2 0 "0s" 0 0 0 65 0 0 14 228 1 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 45 HMPID - Signal Scope - v.1.0 - Auth.A. Franco 2 5 "Text2" "" 1 658 14 E E E 1 E 1 E N {255,255,255} E N {153,153,153} E E E E 6 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 1 E 660 16 802 30 1 2 0 "0s" 0 0 0 65 0 0 660 16 1 1 LANG:1 87 -*-Arial-bold-r-normal-*-12-*-100-100-*-*-iso8859-1|-12,0,0,0,697,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 14 SELECTED TRACK 2 6 "Text3" "" 1 589 49 E E E 1 E 1 E N "_WindowText" E N "_Transparent" E E E E 6 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 0 E 591 51 657 67 0 2 0 "0s" 0 0 0 65 0 0 591 51 1 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 7 VOLTAGE 2 7 "Text4" "" 1 579 119 E E E 1 E 1 E N "_WindowText" E N "_Transparent" E E E E 7 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 0 E 581 121 657 136 0 2 0 "0s" 0 0 0 65 0 0 581 121 1 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 7 CURRENT 4 8 "Line1" "" 1 569 59 E E E 1 E 1 E N {255,0,0} E N {255,255,255} E E E E 8 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 3 1 0 1 E 569 59 584 59 4 9 "Line2" "" 1 569 129 E E E 1 E 1 E N {0,0,204} E N {255,255,255} E E E E 9 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 3 1 0 1 E 584 129 569 129 2 14 "Text7" "" 1 570 72 E E E 1 E 1 E N "_WindowText" E N "_Transparent" E E E E 14 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 0 E 572 74 628 90 0 2 0 "0s" 0 0 0 64 0 0 572 74 1 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 4 Zoom 2 15 "Text8" "" 1 569 142 E E E 1 E 1 E N "_WindowText" E N "_Transparent" E E E E 15 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 0 E 571 144 627 160 0 2 0 "0s" 0 0 0 64 0 0 571 144 1 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 4 Zoom 2 18 "Text9" "" 1 573 181 E E E 1 E 1 E N "_WindowText" E N "_Transparent" E E E E 18 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 0 E 575 183 643 198 0 2 0 "0s" 0 0 0 65 0 0 575 183 1 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 8 INTERVAL 23 1 "Trend1" "" 1 28 -116 E E E 1 E 1 E N "hmpInstrumentFore" E N "hmpInstrumentBack" E E E E 2 0 0 0 0 0 E E E 0 1 LANG:1 0 0 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 12 12 562 226 5 E E E 1 545 N {255,255,255} 0 0 1 0 1 0 2 0 "Curve1" "" 0 1 0 0 1 "2 0 0.0" "%x" 0 0 2 0 E E 1 0 0 3 2 1 LANG:1 4 #1_1 1 LANG:1 0 1 "" "" 1 0 0 1 0 1 N "Red" 0 0 0 0 0 0 0 0 0 "Curve2" "" 0 1 0 0 1 "2 3 0.0" "%x" 0 0 3 0 E E 1 0 0 3 2 1 LANG:1 4 #1_2 1 LANG:1 0 1 "" "" 1 0 0 1 0 1 N "blue" 0 0 0 0 0 0 0 0 1 1 "%H:%M:%S" "%x" 0 1 0 0 E 1 0 1 0 90 0 10 300 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 100 N {255,255,255} 0 0 1 0 1 150 0 5 5 1 2 0 25 2 "tblTrack" "" 1 317 -104 E E E 1 E 1 E N "hmpDataInputFore" E N "hmpDataInputBack" E E E E 3 0 0 0 0 0 E E E 0 1 LANG:1 0 0 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 655 30 805 217 "main() { tblTrack.deleteAllLines(); __setTableTrack(); }" 0 "main(int row, string column, string value) { switch(column) { case \"HV\": if ( (row > 0) && (row != 7) && (row != 8) ) { __deselectTrack(); TrackNum = row; TrackType = 1; __selectTrack(); } break; case \"LVP\": if ( (row > 0) && (row != 9) ) { __deselectTrack(); TrackNum = row; TrackType = 2; __selectTrack(); } break; case \"LVN\": if ( (row > 0) && (row < 7)) { __deselectTrack(); TrackNum = row; TrackType = 3; __selectTrack(); } break; } }" 0 0 0 1 4 1 "Track" 6 1 0 "s" 1 LANG:1 5 Track E 1 LANG:1 0 56 "HV" 2 1 0 "s" 1 LANG:1 2 HV E 1 LANG:1 0 28 "LVP" 2 1 0 "s" 1 LANG:1 3 LV+ E 1 LANG:1 0 29 "LVN" 2 1 0 "s" 1 LANG:1 3 LV- E 1 LANG:1 0 29 18 18 "" 1 1 LANG:1 2 #1 8 60 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 0 0 0 1 7 1 0 14 3 "txtModuleNumber" "" 1 20 0 E E E 1 E 0 E N "_WindowText" E N "_Window" E E E E 4 0 0 0 0 0 "main() { iModuleNumber = this.text; }" 0 E E 0 1 LANG:1 0 0 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 18 -2 132 25 3 "0s" 0 0 0 0 0 -1 E E E 21 13 "spScaleV" "" 1 608 69 E E E 1 E 1 E N "hmpDataInputFore" E N "hmpDataInputBack" E E E E 13 0 0 0 0 0 E E E 0 1 LANG:1 0 0 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 606 67 650 92 0 E "main() { int iScale; iScale = this.text; Trend1.curveMax(\"Curve1\",fMaxV/iScale); Trend1.curveMin(\"Curve1\",fMinV); }" 0 E N 1 30 1 1 1 1 21 16 "spScaleI" "" 1 607 139 E E E 1 E 1 E N "hmpDataInputFore" E N "hmpDataInputBack" E E E E 16 0 0 0 0 0 E E E 0 1 LANG:1 0 0 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 605 137 649 162 0 E "main() { int iScale; iScale = this.text; Trend1.curveMax(\"Curve2\",fMaxI/iScale); Trend1.curveMin(\"Curve2\",fMinI); }" 0 E N 1 30 1 1 1 1 22 17 "ComboBox1" "" 1 570 200 E E E 1 E 1 E N "hmpDataInputFore" E N "hmpDataInputBack" E E E E 17 0 0 0 0 0 E E E 0 1 LANG:1 0 0 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 568 198 652 223 7 1 LANG:1 8 1 Minute 0 1 LANG:1 9 5 Minutes 0 1 LANG:1 10 10 Minutes 0 1 LANG:1 10 15 Minutes 0 1 LANG:1 10 30 Minutes 0 1 LANG:1 10 45 Minutes 0 1 LANG:1 6 1 Hour 0 "main() { this.selectedPos = 2; }" 0 "main() { int iPos; iPos = this.selectedPos; time starttime; time interval; starttime=makeTime(2006, 8, 23, 1, 00); switch(iPos) { case 1: interval=makeTime(2006, 8, 23, 1, 01); break; case 2: interval=makeTime(2006, 8, 23, 1, 05); break; case 3: interval=makeTime(2006, 8, 23, 1, 10); break; case 4: interval=makeTime(2006, 8, 23, 1, 15); break; case 5: interval=makeTime(2006, 8, 23, 1, 30); break; case 6: interval=makeTime(2006, 8, 23, 1, 45); break; case 7: interval=makeTime(2006, 8, 23, 2, 0); break; default: return; break; } setValue(\"Trend1\", \"trendStop\"); setValue(\"Trend1\", \"timeInterval\", interval-starttime); setValue(\"Trend1\", \"trendRun\"); }" 0 E 0 0 0 LAYER, 1 1 LANG:1 6 Layer2 0 LAYER, 2 1 LANG:1 6 Layer3 0 LAYER, 3 1 LANG:1 6 Layer4 0 LAYER, 4 1 LANG:1 6 Layer5 0 LAYER, 5 1 LANG:1 6 Layer6 0 LAYER, 6 1 LANG:1 6 Layer7 0 LAYER, 7 1 LANG:1 6 Layer8 0 0