Skip to content
Snippets Groups Projects
Commit 8604834f authored by Arthur Coolen's avatar Arthur Coolen
Browse files

Task #4862: Show level hooked controller info

parent fb2819fa
No related branches found
No related tags found
No related merge requests found
......@@ -338,7 +338,7 @@ void addStationProcesses(string selectedStation) {
}
void addMemAndHDD() {
int xPos_AddSymbol = 625;
int xPos_AddSymbol = 631;
int yPos_AddSymbol = 28;
int ref = 1;
string addPanelName = \"objects/Hardware/System_MemAndHDD.pnl\";
......@@ -365,7 +365,7 @@ void addMemAndHDD() {
}
void addStationView() {
int xPos_AddSymbol = 665;
int xPos_AddSymbol = 671;
int yPos_AddSymbol = 28;
int ref = 1;
string addPanelName = \"objects/Hardware/Station_mainView.pnl\";
......@@ -616,7 +616,7 @@ LANG:1 13 datastream on
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E 1 0 1.428571428571429 466 -40 1 E 140 140 150 210
E E 0 1 1 2 1 E 1 0 1.428571428571429 470 -40 1 E 140 140 150 210
6 32
"RECTANGLE8"
""
......@@ -630,11 +630,11 @@ LANG:1 14 datastream off
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E 1 0 1.428571428571429 466 60 1 E 140 140 150 210
E E 0 1 1 2 1 E 1 0 1.428571428571429 470 59.99999999999994 1 E 140 140 150 210
4 33
"LINE2"
""
1 621 0 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
1 625 0 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
E E
18 0 0 0 0 0
E E E
......@@ -644,7 +644,7 @@ LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 2 1 2 1 E 621 0 621 570
E E 0 2 1 2 1 E 625 0 625 570
2 34
"PRIMITIVE_TEXT8"
""
......@@ -795,7 +795,7 @@ LANG:1 8 CEP View
2 44
"PRIMITIVE_TEXT16"
""
1 627 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
1 631 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
29 0 0 0 0 0
E E E
......@@ -805,8 +805,8 @@ LANG:1 18 DiskSpace & Memory
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 627 10 657 23
0 2 2 "0s" 0 0 0 192 0 0 627 10 1
E E 0 1 1 2 1 E U 0 E 631 10 661 23
0 2 2 "0s" 0 0 0 192 0 0 631 10 1
1
LANG:1 34 MS Shell Dlg 2,8,-1,5,75,0,0,0,0,0
0 1
......@@ -814,7 +814,7 @@ LANG:1 6 D M
2 45
"PRIMITIVE_TEXT17"
""
1 670 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
1 674 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
30 0 0 0 0 0
E E E
......@@ -824,8 +824,8 @@ LANG:1 22 Temperature & Humidity
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 670 10 694 23
0 2 2 "0s" 0 0 0 192 0 0 670 10 1
E E 0 1 1 2 1 E U 0 E 674 10 698 23
0 2 2 "0s" 0 0 0 192 0 0 674 10 1
1
LANG:1 34 MS Shell Dlg 2,8,-1,5,75,0,0,0,0,0
0 1
......@@ -833,7 +833,7 @@ LANG:1 5 T H
2 46
"PRIMITIVE_TEXT18"
""
1 743 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
1 747 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
31 0 0 0 0 0
E E E
......@@ -843,8 +843,8 @@ LANG:1 27 power 48V and TBB.recording
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 743 10 781 23
0 2 2 "0s" 0 0 0 192 0 0 743 10 1
E E 0 1 1 2 1 E U 0 E 747 10 785 23
0 2 2 "0s" 0 0 0 192 0 0 747 10 1
1
LANG:1 34 MS Shell Dlg 2,8,-1,5,75,0,0,0,0,0
0 1
......@@ -852,7 +852,7 @@ LANG:1 6 48 TBB
2 47
"PRIMITIVE_TEXT19"
""
1 785 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
1 789 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
32 0 0 0 0 0
E E E
......@@ -862,8 +862,8 @@ LANG:1 26 #faulty HBA & LBA Antennas
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 785 10 832 23
0 2 2 "0s" 0 0 0 192 0 0 785 10 1
E E 0 1 1 2 1 E U 0 E 789 10 836 23
0 2 2 "0s" 0 0 0 192 0 0 789 10 1
1
LANG:1 34 MS Shell Dlg 2,8,-1,5,75,0,0,0,0,0
0 1
......@@ -1137,7 +1137,7 @@ LANG:1 7 exceed?
2 79
"PRIMITIVE_TEXT35"
""
1 705 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
1 709 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
49 0 0 0 0 0
E E E
......@@ -1147,8 +1147,8 @@ LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 705 10 720 23
0 2 2 "0s" 0 0 0 192 0 0 705 10 1
E E 0 1 1 2 1 E U 0 E 709 10 724 23
0 2 2 "0s" 0 0 0 192 0 0 709 10 1
1
LANG:1 34 MS Shell Dlg 2,8,-1,5,75,0,0,0,0,0
0 1
......@@ -1156,7 +1156,7 @@ LANG:1 2 AP
2 80
"PRIMITIVE_TEXT36"
""
1 725 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
1 729 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
50 0 0 0 0 0
E E E
......@@ -1166,8 +1166,8 @@ LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 725 10 739 23
0 2 2 "0s" 0 0 0 192 0 0 725 10 1
E E 0 1 1 2 1 E U 0 E 729 10 743 23
0 2 2 "0s" 0 0 0 192 0 0 729 10 1
1
LANG:1 34 MS Shell Dlg 2,8,-1,5,75,0,0,0,0,0
0 1
......
......@@ -3,9 +3,66 @@ V 11
LANG:1 0
PANEL,-1 -1 765 50 N "_3DFace" 1
"$station"
E E E E E 1 -1 -1 0 0 0
"main()
{
swline1.visible(false);
swline2.visible(false);
swline3.visible(false);
swline4.visible(false);
swline5.visible(false);
swline6.visible(false);
station = $station;
baseDP = station+\":LOFAR_PermSW_Daemons_SoftwareMonitor\";
if (navFunct_dpReachable(baseDP)) {
if(dpExists(baseDP+\".SWLevel\")) {
if (dpConnect(\"setSWLine\", baseDP+\".SWLevel:_online.._value\",
baseDP+\".SWLevel:_online.._invalid\") == -1) {
LOG_ERROR(\"StationSWLevelView.pnl:main|Couldn't connect to: \"+baseDP+\".SWLevel\");
}
} else {
LOG_ERROR(\"StationSWLevelView.pnl:main|\"+baseDP+\".SWLevel not found\");
}
}
}
void setSWLine(string dp1, int swlvl,
string dp2, bool invalid) {
swline1.visible(false);
swline2.visible(false);
swline3.visible(false);
swline4.visible(false);
swline5.visible(false);
swline6.visible(false);
if (!invalid) {
switch(swlvl) {
case 1:
swline1.visible(true);
break;
case 2:
swline2.visible(true);
break;
case 3:
swline3.visible(true);
break;
case 4:
swline4.visible(true);
break;
case 5:
swline5.visible(true);
break;
case 6:
swline6.visible(true);
break;
}
}
}
" 0
E E E E 1 -1 -1 0 0 0
""0 1
E "#uses \"navPanel.ctl\"
string station = \"\";
string baseDP=\"\";" 0
2
"CBRef" "1"
......@@ -48,6 +105,90 @@ LANG:1 0
0
1 23 13 "" 0
0
4 24
"swline1"
""
1 68 0 E E E 1 E 1 E N "_3DText" E N {255,255,255} E E
E E
31 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 3 1 2 1 E 68 0 68 9
4 25
"swline2"
""
1 126 0 E E E 1 E 1 E N "_3DText" E N {255,255,255} E E
E E
32 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 3 1 2 1 E 126 0 126 9
4 26
"swline3"
""
1 176 0 E E E 1 E 1 E N "_3DText" E N {255,255,255} E E
E E
33 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 3 1 2 1 E 176 0 176 9
4 27
"swline4"
""
1 210 0 E E E 1 E 1 E N "_3DText" E N {255,255,255} E E
E E
34 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 3 1 2 1 E 210 0 210 9
4 28
"swline5"
""
1 250 0 E E E 1 E 1 E N "_3DText" E N {255,255,255} E E
E E
35 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 3 1 2 1 E 250 0 250 9
4 29
"swline6"
""
1 370 0 E E E 1 E 1 E N "_3DText" E N {255,255,255} E E
E E
36 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 3 1 2 1 E 370 0 370 9
0
LAYER, 1
1
......
......@@ -5,8 +5,60 @@ PANEL,-1 -1 765 50 N "_3DFace" 1
"$station"
"main()
{
station=$station;
}" 0
swline1.visible(false);
swline2.visible(false);
swline3.visible(false);
swline4.visible(false);
swline5.visible(false);
swline6.visible(false);
station = $station;
baseDP = station+\":LOFAR_PermSW_Daemons_SoftwareMonitor\";
if (navFunct_dpReachable(baseDP)) {
if(dpExists(baseDP+\".SWLevel\")) {
if (dpConnect(\"setSWLine\", baseDP+\".SWLevel:_online.._value\",
baseDP+\".SWLevel:_online.._invalid\") == -1) {
LOG_ERROR(\"StationSWLevelView.pnl:main|Couldn't connect to: \"+baseDP+\".SWLevel\");
}
} else {
LOG_ERROR(\"StationSWLevelView.pnl:main|\"+baseDP+\".SWLevel not found\");
}
}
}
void setSWLine(string dp1, int swlvl,
string dp2, bool invalid) {
swline1.visible(false);
swline2.visible(false);
swline3.visible(false);
swline4.visible(false);
swline5.visible(false);
swline6.visible(false);
if (!invalid) {
switch(swlvl) {
case 1:
swline1.visible(true);
break;
case 2:
swline2.visible(true);
break;
case 3:
swline3.visible(true);
break;
case 4:
swline4.visible(true);
break;
case 5:
swline5.visible(true);
break;
case 6:
swline6.visible(true);
break;
}
}
}
" 0
E E E E 1 -1 -1 0 0 0
""0 1
E "#uses \"navPanel.ctl\"
......@@ -53,6 +105,90 @@ LANG:1 0
0
1 23 13 "" 0
0
4 24
"swline1"
""
1 68 0 E E E 1 E 1 E N "_3DText" E N {255,255,255} E E
E E
31 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 3 1 2 1 E 68 0 68 9
4 25
"swline2"
""
1 126 0 E E E 1 E 1 E N "_3DText" E N {255,255,255} E E
E E
32 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 3 1 2 1 E 126 0 126 9
4 26
"swline3"
""
1 176 0 E E E 1 E 1 E N "_3DText" E N {255,255,255} E E
E E
33 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 3 1 2 1 E 176 0 176 9
4 27
"swline4"
""
1 210 0 E E E 1 E 1 E N "_3DText" E N {255,255,255} E E
E E
34 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 3 1 2 1 E 210 0 210 9
4 28
"swline5"
""
1 250 0 E E E 1 E 1 E N "_3DText" E N {255,255,255} E E
E E
35 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 3 1 2 1 E 250 0 250 9
4 30
"swline6"
""
1 370 0 E E E 1 E 1 E N "_3DText" E N {255,255,255} E E
E E
37 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 3 1 2 1 E 370 0 370 9
0
LAYER, 1
1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment