V 10 1 LANG:1 8 (NoName) PANEL,225 137 820 645 N "hmpUserFrameBack" 2 "$1" "$2" " main() { //dcsUiBase_Init(); // ------ Decode the name of node ------ sNode = $2; sDomain = $1; hmpBase_GetCoords(sNode, iModule, iSector, iExtra, iType); if(iType != LDT_LVRO ) { DebugN(\"hmpReadout: Bad referenced Alias for PWS Module !! ABORT [\"+sNode+\"]\"); return; } // ------ and estract all DPs that compose the PWSystem ------ sLVlDpName = dpAliasToName(hmpBase_buildLogicalPathName(LDT_LVROSEG,iModule,0,LDC_ISLEFT)); sLVrDpName = dpAliasToName(hmpBase_buildLogicalPathName(LDT_LVROSEG,iModule,0,LDC_ISRIGHT)); // ----------------------------------------------------- SetTrendView(); // ------------------------- int xpo,ypo,wpo,hpo,upo,lpo; getValue(\"fr1\",\"position\",xpo,ypo); getValue(\"fr1\",\"size\",wpo,hpo); xpo = xpo+10; ypo = ypo-(hpo); removeSymbol(myModuleName(),myPanelName(),\"vmSec\"); addSymbol(myModuleName(),myPanelName(),\"objects/hmpGeneral/hmpIndicatorBIG.pnl\", \"vmSec\",makeDynString(\"$sDpName:\"+sLVlDpName,\"$sDpeName:\"+sLVlDpName+\"actual.vMon\", \"$Decimal:3\",\"$Digit:6\",\"$sLabel:VMON\",\"$sPanel:none\",\"$sSign:+\",\"$sTitle:\"), xpo,ypo+40,0,1,1); removeSymbol(myModuleName(),myPanelName(),\"imSec\"); addSymbol(myModuleName(),myPanelName(),\"objects/hmpGeneral/hmpIndicatorBIG.pnl\", \"imSec\",makeDynString(\"$sDpName:\"+sLVlDpName,\"$sDpeName:\"+sLVlDpName+\"actual.iMon\", \"$Decimal:3\",\"$Digit:6\",\"$sLabel:IMON\",\"$sPanel:none\",\"$sSign:\",\"$sTitle:\"), xpo,ypo+80,0,1,1); removeSymbol(myModuleName(),myPanelName(),\"cmSec\"); addSymbol(myModuleName(),myPanelName(),\"objects/hmpGeneral/hmpIndicator.pnl\", \"cmSec\",makeDynString(\"$sDpName:\"+sLVlDpName,\"$sDpeName:\"+sLVlDpName+\"actual.vCon\", \"$Decimal:3\",\"$Digit:6\",\"$sLabel:V CONNECTO\",\"$sPanel:none\",\"$sSign:\",\"$sTitle:\"), xpo,ypo+135,0,1,1); getValue(\"fr2\",\"position\",xpo,ypo); getValue(\"fr2\",\"size\",wpo,hpo); xpo = xpo+10; ypo = ypo-(hpo); removeSymbol(myModuleName(),myPanelName(),\"vpSec\"); addSymbol(myModuleName(),myPanelName(),\"objects/hmpGeneral/hmpIndicatorBIG.pnl\", \"vpSec\",makeDynString(\"$sDpName:\"+sLVrDpName,\"$sDpeName:\"+sLVrDpName+\"actual.vMon\", \"$Decimal:3\",\"$Digit:6\",\"$sLabel:VMON\",\"$sPanel:none\",\"$sSign:+\",\"$sTitle:\"), xpo,ypo+40,0,1,1); removeSymbol(myModuleName(),myPanelName(),\"ipSec\"); addSymbol(myModuleName(),myPanelName(),\"objects/hmpGeneral/hmpIndicatorBIG.pnl\", \"ipSec\",makeDynString(\"$sDpName:\"+sLVrDpName,\"$sDpeName:\"+sLVrDpName+\"actual.iMon\", \"$Decimal:3\",\"$Digit:6\",\"$sLabel:IMON\",\"$sPanel:none\",\"$sSign:\",\"$sTitle:\"), xpo,ypo+80,0,1,1); removeSymbol(myModuleName(),myPanelName(),\"ciSec\"); addSymbol(myModuleName(),myPanelName(),\"objects/hmpGeneral/hmpIndicator.pnl\", \"ciSec\",makeDynString(\"$sDpName:\"+sLVrDpName,\"$sDpeName:\"+sLVrDpName+\"actual.vCon\", \"$Decimal:3\",\"$Digit:6\",\"$sLabel:V CONNECTOR\",\"$sPanel:none\",\"$sSign:\",\"$sTitle:\"), xpo,ypo+135,0,1,1); // ------------------------- fwCU_connectState(\"ChState\",sDomain+\"::\"+sNode); // -------- Access control ------------------------------------------- // Set the CB Function that Hook the change of Logged User dyn_string exceptionInfo; fwAccessControl_setupPanel(\" hmpReadOut_LoggedUserAC\",exceptionInfo); if (dynlen(exceptionInfo)) { hmpReadOut_LoggedUserAC(\"\",\"\"); // global \"reject\" } // ---------------------------------------------------------------------- // ---------------- Set the title into the main window ------------------ dcsUiBase_setMainTitle(\"HMPID - Module Position \"+iModule+\" ReadOut\"); // ---------------------------------------------------------------------- } ChState(string node, string state) { string color; fwCU_getStateColor(node, state, color); setMultiValue(\"txtChStatus\",\"text\",state,\"txtChStatus\",\"backCol\",color); } " 0 "main() { // -------------- Event Terminate --------------------- // // Here REMOVE all objects inserted with an // addSymbol() function // // int removeSymbol (string moduleName, string panelName, string refName); removeSymbol(myModuleName(),myPanelName(),\"vmSec\"); removeSymbol(myModuleName(),myPanelName(),\"imSec\"); removeSymbol(myModuleName(),myPanelName(),\"vpSec\"); removeSymbol(myModuleName(),myPanelName(),\"ipSec\"); removeSymbol(myModuleName(),myPanelName(),\"ciSec\"); removeSymbol(myModuleName(),myPanelName(),\"cmSec\"); // } //" 0 E E E 1 0 0 0 0 0 "" 0 1 E"#uses \"hmpBaselibrary.ctl\" global int iModule; global int iSector; global int iType; global int iExtra; global string sLVlDpName; global string sLVrDpName; global string sDomain; global string sNode; void SetTrendView() { Trend1.connectDirectly(\"VRIGHTP\",sLVrDpName+\"actual.vMon:_original.._value\"); Trend1.connectDirectly(\"IRIGHTP\",sLVrDpName+\"actual.iMon:_original.._value\"); Trend1.connectDirectly(\"VLEFTP\",sLVlDpName+\"actual.vMon:_original.._value\"); Trend1.connectDirectly(\"ILEFTP\",sLVlDpName+\"actual.iMon:_original.._value\"); Trend1.curveAutoscale(\"IRIGHTP\",false); Trend1.curveMax(\"IRIGHTP\", 20.0); Trend1.curveMin(\"IRIGHTP\", 0.0); Trend1.curveAutoscale(\"ILEFTP\",false); Trend1.curveMax(\"ILEFTP\", 20.0); Trend1.curveMin(\"ILEFTP\", 0.0); Trend1.curveAutoscale(\"VRIGHTP\",false); Trend1.curveMax(\"VRIGHTP\", 5.5); Trend1.curveMin(\"VRIGHTP\", 0.0); Trend1.curveAutoscale(\"VLEFTP\",false); Trend1.curveMax(\"VLEFTP\", 5.5); Trend1.curveMin(\"VLEFTP\", 0.0); Trend1.curveLegendUnit(\"VRIGHTP\", \"V\"); Trend1.curveLegendUnit(\"VLEFTP\", \"V\"); Trend1.curveLegendUnit(\"IRIGHTP\", \"A\"); Trend1.curveLegendUnit(\"ILEFTP\", \"A\"); } // ------ Access Control related Functions ------------------------------------ // void hmpReadOut_DisableAllAC() { // Put Here all commands to disable objects on panel setMultiValue(\"bdLVP\",\"visible\",true,\"bdLVN\",\"visible\",true, \"cmdLVP\",\"visible\",false,\"cmdLVN\",\"visible\",false); } void hmpReadOut_EnableAC(bool isGuest, bool isOperator, bool isExpert, bool isAdmin) { if(isGuest) { // Put Here all commands to enable objects on panel // related to Guest grants } if(isOperator) { // Put Here all commands to enable objects on panel // related to Operator grants } if(isExpert) { // Put Here all commands to enable objects on panel // related to Expert grants setMultiValue(\"bdLVP\",\"visible\",false,\"bdLVN\",\"visible\",false, \"cmdLVP\",\"visible\",true,\"cmdLVN\",\"visible\",true); } if(isAdmin) { // Put Here all commands to enable objects on panel // related to Administrator grants setMultiValue(\"bdLVP\",\"visible\",false,\"bdLVN\",\"visible\",false, \"cmdLVP\",\"visible\",true,\"cmdLVN\",\"visible\",true); } } void hmpReadOut_LoggedUserAC(string dp, string username_from_ui) { // Set the minimum users grants bool isGuest=false; bool isOperator=false; bool isExpert=false; bool isAdmin=false; // Disable all items in the panel hmpReadOut_DisableAllAC(); // Get Grants for the specified user dcsUiBase_getACGrants(isAdmin,isExpert,isOperator,isGuest); // Now enable - this is related to the specific Policy rules hmpReadOut_EnableAC(isGuest,isOperator,isExpert,isAdmin); } // ------------------------------------------------------------------------------ " 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 2 476 "txtChStatus" "" 1 10 10 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E E E 724 0 0 0 0 0 EE E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" "main() { }" 0 E 0 1 1 0 1 E U 1 E 12 12 188 28 1 2 0 "s" 0 0 0 65 0 0 12 12 1 1 LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial 0 "" 1 LANG:1 10 RUMPING UP 30 477 "fr2" "" 0 12 440 E E E 1 E 1 E N "hmpUserFrameFore" E N "_Transparent" E E E E 725 0 0 0 0 0 EE E 1 1 LANG:1 0 0 "main() { }" 0 E 0 1 1 0 1 E U 0 E 10 280 200 440 1 LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial 0 "" 1 LANG:1 8 RO RIGHT 2 478 "Text7" "" 1 162 298 E E E 1 E 1 E N "hmpUserFrameFore" E N "_Transparent" E E E E 726 0 0 0 0 0 EE E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 0 E 164 300 192 316 0 2 0 "s" 0 0 0 65 0 0 164 300 1 1 LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial 0 "" 1 LANG:1 1 V 2 479 "Text9" "" 1 162 347 E E E 1 E 1 E N "hmpUserFrameFore" E N "_Transparent" E E E E 727 0 0 0 0 0 EE E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 0 E 164 349 192 365 0 2 0 "s" 0 0 0 65 0 0 164 349 1 1 LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial 0 "" 1 LANG:1 1 A 30 480 "fr1" "" 0 12 260 E E E 1 E 1 E N "hmpUserFrameFore" E N "_Transparent" E E E E 728 0 0 0 0 0 EE E 1 1 LANG:1 0 0 "main() { }" 0 E 0 1 1 0 1 E U 0 E 10 98 200 260 1 LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial 0 "" 1 LANG:1 7 RO LEFT 2 481 "Text3" "" 1 162 121 E E E 1 E 1 E N "hmpUserFrameFore" E N "_Transparent" E E E E 729 0 0 0 0 0 EE E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 0 E 164 123 192 139 0 2 0 "s" 0 0 0 65 0 0 164 123 1 1 LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial 0 "" 1 LANG:1 1 V 2 482 "Text6" "" 1 162 173 E E E 1 E 1 E N "hmpUserFrameFore" E N "_Transparent" E E E E 730 0 0 0 0 0 EE E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 0 E 164 175 192 191 0 2 0 "s" 0 0 0 65 0 0 164 175 1 1 LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial 0 "" 1 LANG:1 1 A 2 484 "Text1" "" 1 136 213 E E E 1 E 1 E N "hmpUserFrameFore" E N "_Transparent" E E E E 732 0 0 0 0 0 EE E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 0 E 138 215 188 228 0 2 0 "s" 0 0 0 64 0 0 138 215 1 1 LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial 0 "" 1 LANG:1 6 V con 2 486 "Text4" "" 1 136 393 E E E 1 E 1 E N "hmpUserFrameFore" E N "_Transparent" E E E E 733 0 0 0 0 0 EE E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 0 E 138 395 188 408 0 2 0 "s" 0 0 0 64 0 0 138 395 1 1 LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial 0 "" 1 LANG:1 6 V con 6 487 "bdLVP" "" 1 163 174 E E E 1 E 1 E N "hmpUserFrameFore" E N {255,255,255} E E E E 733 0 0 0 0 0 EE E 4 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 2 0 3 "pictures/vpos_big.bmp" 13434828 E 163 141 196 174 6 489 "bdLVN" "" 1 163 349 E E E 1 E 1 E N "hmpUserFrameFore" E N {255,255,255} E E E E 735 0 0 0 0 0 EE E 4 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 2 0 3 "pictures/vpos_big.bmp" 13434828 E 163 316 196 349 23 483 "Trend1" "" 0 196 24 E E E 1 E 1 E N "hmpInstrumentFore" E N "hmpInstrumentBack" E E E E 731 0 0 0 0 0 EE E 0 1 LANG:1 0 1 "logarithm" "0" 1 LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial 0 "" 205 8 812 512 1 "main() { }" 0 E E 2 172 N {255,255,255} 0 0 1 0 1 0 2 0 "VLEFTP" "" 0 1 0 0 1 "1 2 0.000000" "%x" 1 0 2 0 E E 1 0 0 3 2 1 LANG:1 28 Left Channel Voltage Monitor 1 LANG:1 0 1 "" "" 0 0 5 0 1 1 0 1 N {204,0,0} 0 0 0 0 0 0 0 0 0 "ILEFTP" "" 0 1 0 0 1 "1 3 0.000000" "%x" 1 0 3 0 E E 1 0 0 3 2 1 LANG:1 28 Left Channel Current Monitor 1 LANG:1 0 1 "" "" 0 0 9 0 1 1 0 1 N {0,255,255} 0 0 0 0 0 0 0 0 0 E 185 N {255,255,255} 0 0 1 0 1 0 2 0 "VRIGHTP" "" 0 1 0 0 1 "1 2 0.000000" "%x" 1 0 2 0 E E 1 0 0 3 2 1 LANG:1 29 Right Channel Voltage Monitor 1 LANG:1 1 V 1 "" "" 0 0 5 0 1 1 0 1 N {204,0,0} 0 0 0 0 0 0 0 0 0 "IRIGHTP" "" 0 1 0 0 1 "1 3 0.000000" "%x" 1 0 3 0 E E 1 0 0 3 2 1 LANG:1 33 Right Ch Positive Current Monitor 1 LANG:1 1 A 1 "" "" 0 0 9 0 1 1 0 1 N {0,255,255} 0 0 0 0 0 0 0 0 1 1 "%X" "%x" 1 1 0 0 E 1 1 1 0 90 0 60 600 1 LANG:1 106 -microsoft windows-Arial-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-11,0,0,0,400,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 106 -microsoft windows-Arial-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-11,0,0,0,400,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 106 -microsoft windows-Arial-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-11,0,0,0,400,0,0,0,0,0,0,0,0,Arial 0 "" 74 N {255,255,255} 0 0 1 0 1 150 0 8 8 1 3 0 13 488 "cmdLVP" "" 1 160 140 E E E 1 E 1 E N "hmpUserFrameFore" E N "_3DFace" E E E E 734 0 0 0 0 0 EE E 0 1 LANG:1 0 0 1 LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial 0 "" 158 138 197 177 P 13434828 "pictures/hmpIcons/vpos_big.bmp" 1 LANG:1 0 "main() { string dpType; dyn_string dsAppo, exceptionInfo; dpType = dpTypeName(sLVlDpName); fwDevice_getDefaultOperationPanels(dpType, dsAppo, exceptionInfo); ChildPanelOnCentralModal(dsAppo[1]+\".pnl\",\"LV Channel\", makeDynString(\"$sDpName:\" + substr(sLVlDpName,0,strlen(sLVlDpName)-1))); }" 0 E E E 13 490 "cmdLVN" "" 1 160 315 E E E 1 E 1 E N "hmpUserFrameFore" E N "_3DFace" E E E E 736 0 0 0 0 0 EE E 0 1 LANG:1 0 0 1 LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial 0 "" 158 313 197 352 P 13434828 "pictures/hmpIcons/vpos_big.bmp" 1 LANG:1 0 "main() { string dpType; dyn_string dsAppo, exceptionInfo; dpType = dpTypeName(sLVrDpName); fwDevice_getDefaultOperationPanels(dpType, dsAppo, exceptionInfo); ChildPanelOnCentralModal(dsAppo[1]+\".pnl\",\"LV Channel\", makeDynString(\"$sDpName:\" + substr(sLVrDpName,0,strlen(sLVrDpName)-1))); }" 0 E E E 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