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

Task #3877: merged release 1.9 navigator changes into trunk

parent 03d69df6
No related branches found
No related tags found
No related merge requests found
...@@ -3240,6 +3240,8 @@ MAC/Navigator2/panels/objects/Hardware/lofar_HW_state.pnl -text ...@@ -3240,6 +3240,8 @@ MAC/Navigator2/panels/objects/Hardware/lofar_HW_state.pnl -text
MAC/Navigator2/panels/objects/Hardware/midplane_small.pnl -text MAC/Navigator2/panels/objects/Hardware/midplane_small.pnl -text
MAC/Navigator2/panels/objects/Observations/Observation_small.pnl -text MAC/Navigator2/panels/objects/Observations/Observation_small.pnl -text
MAC/Navigator2/panels/objects/Observations/lofar_Obs_state.pnl -text MAC/Navigator2/panels/objects/Observations/lofar_Obs_state.pnl -text
MAC/Navigator2/panels/objects/Processes/CCUSWLevelView.pnl -text
MAC/Navigator2/panels/objects/Processes/MCUSWLevelView.pnl -text
MAC/Navigator2/panels/objects/Processes/ObsSW_CEP.pnl -text MAC/Navigator2/panels/objects/Processes/ObsSW_CEP.pnl -text
MAC/Navigator2/panels/objects/Processes/ObsSW_Main.pnl -text MAC/Navigator2/panels/objects/Processes/ObsSW_Main.pnl -text
MAC/Navigator2/panels/objects/Processes/ObsSW_Station.pnl -text MAC/Navigator2/panels/objects/Processes/ObsSW_Station.pnl -text
......
...@@ -13,7 +13,7 @@ PANEL,-1 -1 1010 745 N "_3DFace" 0 ...@@ -13,7 +13,7 @@ PANEL,-1 -1 1010 745 N "_3DFace" 0
baseDP=g_currentDatapoint; baseDP=g_currentDatapoint;
stationList = makeDynString(\"CS001\",\"CS002\",\"CS003\",\"CS004\",\"CS005\",\"CS006\",\"RS007\", stationList = makeDynString(\"CS001\",\"CS002\",\"CS003\",\"CS004\",\"CS005\",\"CS006\",\"CS007\",
\"CS011\",\"CS013\",\"CS017\", \"CS011\",\"CS013\",\"CS017\",
\"CS021\",\"CS024\",\"CS026\",\"CS028\", \"CS021\",\"CS024\",\"CS026\",\"CS028\",
\"CS030\",\"CS031\",\"CS032\", \"CS030\",\"CS031\",\"CS032\",
...@@ -24,7 +24,7 @@ PANEL,-1 -1 1010 745 N "_3DFace" 0 ...@@ -24,7 +24,7 @@ PANEL,-1 -1 1010 745 N "_3DFace" 0
\"RS406\",\"RS407\",\"RS409\", \"RS406\",\"RS407\",\"RS409\",
\"RS503\",\"RS508\",\"RS509\", \"RS503\",\"RS508\",\"RS509\",
\"DE601\",\"DE602\",\"DE603\",\"DE604\",\"RS605\",\"FR606\",\"SE607\",\"UK608\", \"DE601\",\"DE602\",\"DE603\",\"DE604\",\"RS605\",\"FR606\",\"SE607\",\"UK608\",
\"CCU001\",\"MCU001\"); CEPDBName,MainDBName);
redraw(); redraw();
} }
...@@ -209,12 +209,17 @@ void addSWCtrlers() { ...@@ -209,12 +209,17 @@ void addSWCtrlers() {
int yPos_AddSymbol = 28; int yPos_AddSymbol = 28;
int ref = 1; int ref = 1;
string addPanelName = \"objects/Processes/stationSWLevelView.pnl\"; string addPanelName;
//loop over list and prepare panel with all datastreamobjects //loop over list and prepare panel with all datastreamobjects
for (int i=1; i<= dynlen(stationList); i++) { for (int i=1; i<= dynlen(stationList); i++) {
//skip CCU and MCU machines //CCU and MCU machines different layout
if (strpos(stationList[i],\"MCU\") >=0 ||strpos(stationList[i],\"CCU\") >=0) continue; if (strpos(stationList[i],\"MCU\") >=0 ) {
addPanelName = \"objects/Processes/MCUSWLevelView.pnl\";
} else if( strpos(stationList[i],\"CCU\") >=0) {
addPanelName = \"objects/Processes/CCUSWLevelView.pnl\";
} else {
addPanelName = \"objects/Processes/stationSWLevelView.pnl\";
}
swCtrlRefNames[i]=\"swCtrl\"+(i); swCtrlRefNames[i]=\"swCtrl\"+(i);
if ( addSymbol( strModuleName, // Stay in this modul if ( addSymbol( strModuleName, // Stay in this modul
...@@ -231,7 +236,14 @@ void addSWCtrlers() { ...@@ -231,7 +236,14 @@ void addSWCtrlers() {
} }
yPos_AddSymbol += 10; yPos_AddSymbol += 10;
ref++; ref++;
addStationProcesses(stationList[i]+\":\"); //CCU and MCU machines different layout
if (strpos(stationList[i],\"MCU\") >=0 ) {
// addMCUProcesses(stationList[i]+\":\");
} else if( strpos(stationList[i],\"CCU\") >=0) {
// addCCUProcesses(stationList[i]+\":\");
} else {
addStationProcesses(stationList[i]+\":\");
}
} }
dpSet(DPNAME_NAVIGATOR + g_navigatorID + \".processesList\",station_result); dpSet(DPNAME_NAVIGATOR + g_navigatorID + \".processesList\",station_result);
......
V 10 V 11
1 1
LANG:1 0 LANG:1 0
PANEL,-1 -1 999 293 N "_3DFace" 1 PANEL,-1 -1 999 293 N "_3DFace" 1
...@@ -110,12 +110,10 @@ updateObservations(string dp1, dyn_string obs, ...@@ -110,12 +110,10 @@ updateObservations(string dp1, dyn_string obs,
if (!navFunct_dpReachable(obsDP) ){ if (!navFunct_dpReachable(obsDP) ){
LOG_ERROR(\"Observation_small.pnl:updateObservations|DP unreachable\"); LOG_ERROR(\"Observation_small.pnl:updateObservations|DP unreachable\");
updateObservationsTableValues(\"\",0,\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",true); updateObservationsTableValues(\"\",0,\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",true);
return;
} }
} else { } else {
LOG_ERROR(\"Observation_small.pnl:updateObservations|ERROR: Dp for LOFAR_ObsSW_\"+obs[i]+\" doesn't exist.\"); LOG_ERROR(\"Observation_small.pnl:updateObservations|ERROR: Dp for LOFAR_ObsSW_\"+obs[i]+\" doesn't exist.\");
return;
} }
} }
} }
...@@ -184,9 +182,8 @@ LANG:1 0 ...@@ -184,9 +182,8 @@ LANG:1 0
0 0
1 1
LANG:1 98 -*-MS Shell Dlg-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,505,0,0,0,0,0,0,0,0,MS Shell Dlg LANG:1 33 MS Shell Dlg,-1,13,5,50,0,0,0,0,0
0 "" 0 -2 -2 991 219
-2 -2 991 219
"main() "main()
{ {
myTable.tableMode(TABLE_SELECT_BROWSE); myTable.tableMode(TABLE_SELECT_BROWSE);
...@@ -253,9 +250,8 @@ LANG:1 0 ...@@ -253,9 +250,8 @@ LANG:1 0
514 514
18 18 10 10 18 18 10 10
1 1
LANG:1 98 -*-MS Shell Dlg-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,505,0,0,0,0,0,0,0,0,MS Shell Dlg LANG:1 33 MS Shell Dlg,-1,13,5,50,0,0,0,0,0
0 "" 0 0 1 2 1 7
0 1 2 1 7
1 0 1 0
0 0
LAYER, 1 LAYER, 1
...@@ -286,4 +282,4 @@ LAYER, 7 ...@@ -286,4 +282,4 @@ LAYER, 7
1 1
LANG:1 0 LANG:1 0
0 0
0 0
\ No newline at end of file
V 11
1
LANG:1 0
PANEL,-1 -1 765 50 N "_3DFace" 1
"$station"
E E E E E 1 -1 -1 0 0 0
""0 1
E "#uses \"navPanel.ctl\"
string baseDP=\"\";" 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 0
2 16
"PRIMITIVE_TEXT1"
""
1 70 80 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
16 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 70 80 71 93
0 2 2 "0s" 0 0 0 192 0 0 70 80 1
1
LANG:1 34 MS Shell Dlg 2,8,-1,5,50,0,0,0,0,0
0 1
LANG:1 0
1 17 1 "" 0
0
1 18 2 "" 0
0
1 19 3 "" 0
0
1 20 4 "" 0
0
1 27 11 "" 0
0
1 28 12 "" 0
0
1 29 13 "" 0
0
0
LAYER, 1
1
LANG:1 0
0
LAYER, 2
1
LANG:1 0
0
LAYER, 3
1
LANG:1 0
0
LAYER, 4
1
LANG:1 0
0
LAYER, 5
1
LANG:1 0
0
LAYER, 6
1
LANG:1 0
0
LAYER, 7
1
LANG:1 0
0
3 1 "PANEL_REF1" -1
"objects\\Processes\\SWControler_small.pnl" 0 0 T 18 U
2
"$name""PermSW_SoftwareMonitor"
"$station""CCU"
3 2 "PANEL_REF2" -1
"objects\\Processes\\SWControler_small.pnl" 20 0 T 19 1 0 1 -4 0
2
"$name""PermSW_Daemons_LogProcessor"
"$station""CCU"
3 3 "PANEL_REF3" -1
"objects\\Processes\\SWControler_small.pnl" 30 0 T 20 1 0 1 2 0
2
"$name""PermSW_Daemons_CEPlogProcessor"
"$station""CCU"
3 4 "PANEL_REF4" -1
"objects\\Processes\\SWControler_small.pnl" 50 0 T 21 U
2
"$name""PermSW_Daemons_ServiceBroker"
"$station""CCU"
3 11 "PANEL_REF11" -1
"objects\\Processes\\SWControler_small.pnl" 270 0 T 28 U
2
"$name""PermSW_CTStartDaemon"
"$station""$station"
3 12 "PANEL_REF12" -1
"objects\\Processes\\SWControler_small.pnl" 290 0 T 29 1 0 1 -4 0
2
"$name""OnlineControl"
"$station""CCU"
3 13 "PANEL_REF13" -1
"objects\\Processes\\SWControler_small.pnl" 300 0 T 30 1 0 1 2 0
2
"$name""PythonControl"
"$station""CCU"
0
V 11
1
LANG:1 0
PANEL,-1 -1 765 50 N "_3DFace" 1
"$station"
"main()
{
station=$station;
}" 0
E E E E 1 -1 -1 0 0 0
""0 1
E "#uses \"navPanel.ctl\"
string baseDP=\"\";
string station;" 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 0
2 16
"PRIMITIVE_TEXT1"
""
1 70 80 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
16 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 70 80 71 93
0 2 2 "0s" 0 0 0 192 0 0 70 80 1
1
LANG:1 34 MS Shell Dlg 2,8,-1,5,50,0,0,0,0,0
0 1
LANG:1 0
1 17 1 "" 0
0
1 18 2 "" 0
0
1 19 3 "" 0
0
1 20 4 "" 0
0
1 21 11 "" 0
0
1 22 12 "" 0
0
1 23 13 "" 0
0
0
LAYER, 1
1
LANG:1 0
0
LAYER, 2
1
LANG:1 0
0
LAYER, 3
1
LANG:1 0
0
LAYER, 4
1
LANG:1 0
0
LAYER, 5
1
LANG:1 0
0
LAYER, 6
1
LANG:1 0
0
LAYER, 7
1
LANG:1 0
0
3 1 "PANEL_REF1" -1
"objects\\Processes\\SWControler_small.pnl" 0 0 T 18 U
2
"$name""PermSW_SoftwareMonitor"
"$station""$station"
3 2 "PANEL_REF2" -1
"objects\\Processes\\SWControler_small.pnl" 20 0 T 19 1 0 1 -4 0
2
"$name""PermSW_Daemons_LogProcessor"
"$station""$station"
3 3 "PANEL_REF3" -1
"objects\\Processes\\SWControler_small.pnl" 30 0 T 20 1 0 1 2 0
2
"$name""PermSW_Daemons_ServiceBroker"
"$station""$station"
3 4 "PANEL_REF4" -1
"objects\\Processes\\SWControler_small.pnl" 50 0 T 21 U
2
"$name""PermSW_Daemons_SASGateway"
"$station""$station"
3 11 "PANEL_REF11" -1
"objects\\Processes\\SWControler_small.pnl" 270 0 T 28 U
2
"$name""PermSW_CTStartDaemon"
"$station""$station"
3 12 "PANEL_REF12" -1
"objects\\Processes\\SWControler_small.pnl" 290 0 T 29 1 0 1 -4 0
2
"$name""PermSW_MACScheduler"
"$station""$station"
3 13 "PANEL_REF13" -1
"objects\\Processes\\SWControler_small.pnl" 300 0 T 30 1 0 1 2 0
2
"$name""ObservationControl"
"$station""$station"
0
...@@ -6,8 +6,12 @@ PANEL,-1 -1 388 166 N "_3DFace" 2 ...@@ -6,8 +6,12 @@ PANEL,-1 -1 388 166 N "_3DFace" 2
"$station" "$station"
"main() "main()
{ {
station = $station; station = $station+\":\";
baseDP = station+\":LOFAR_\"+$name;
if (station == \"MCU\") station = MAINDBName;
if (station == \"CCU\") station = CEPDBName;
baseDP = station+\"LOFAR_\"+$name;
// some controllers are observationbased and are only active if there is actually an observation running // some controllers are observationbased and are only active if there is actually an observation running
// these should be reloaded if the active observation changes, the name of the observation (temp place) will also change // these should be reloaded if the active observation changes, the name of the observation (temp place) will also change
...@@ -40,7 +44,7 @@ private void observationChanged(string dp1, dyn_string observations, ...@@ -40,7 +44,7 @@ private void observationChanged(string dp1, dyn_string observations,
firstObservation = observations[1]; firstObservation = observations[1];
// get real name from claimmanager // get real name from claimmanager
obsDP=claimManager_nameToRealName(\"LOFAR_ObsSW_\"+firstObservation); obsDP=claimManager_nameToRealName(\"LOFAR_ObsSW_\"+firstObservation);
baseDP = station+\":\"+obsDP+\"_\"+$name; baseDP = station+obsDP+\"_\"+$name;
reload(); reload();
} }
} }
......
V 10 V 11
1 1
LANG:1 8 (NoName) LANG:1 8 (NoName)
PANEL,-1 -1 366 54 N "_3DFace" 1 PANEL,-1 -1 366 71 N "_3DFace" 1
"$name" "$name"
"main() { "main() {
//delay while navigator instance is being prepared, shouldn't be needed, but this way we at least have a trigger when something goes wrong //delay while navigator instance is being prepared, shouldn't be needed, but this way we at least have a trigger when something goes wrong
...@@ -270,9 +270,8 @@ LANG:1 0 ...@@ -270,9 +270,8 @@ LANG:1 0
0 0
1 1
LANG:1 98 -*-MS Shell Dlg-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,505,0,0,0,0,0,0,0,0,MS Shell Dlg LANG:1 33 MS Shell Dlg,-1,11,5,50,0,0,0,0,0
0 "" 0 -2 8 72 32
-2 8 72 34
T T
1 1
...@@ -304,9 +303,8 @@ LANG:1 0 ...@@ -304,9 +303,8 @@ LANG:1 0
0 0
1 1
LANG:1 98 -*-MS Shell Dlg-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,505,0,0,0,0,0,0,0,0,MS Shell Dlg LANG:1 33 MS Shell Dlg,-1,11,5,50,0,0,0,0,0
0 "" 0 78 8 152 32
78 8 152 34
T T
1 1
...@@ -354,4 +352,4 @@ LAYER, 7 ...@@ -354,4 +352,4 @@ LAYER, 7
1 1
LANG:1 6 Layer8 LANG:1 6 Layer8
0 0
0 0
\ No newline at end of file
...@@ -217,7 +217,7 @@ E "main(int x, int y) ...@@ -217,7 +217,7 @@ E "main(int x, int y)
2 1 2 1
"station_text" "station_text"
"" ""
1 10 10 E E E 1 E 1 E N "_WindowText" E N "_Transparent" E E 1 5 10 E E E 1 E 1 E N "_WindowText" E N "_Transparent" E E
"main() "main()
{ {
rClick(station); rClick(station);
...@@ -239,8 +239,8 @@ E "main(int x, int y) ...@@ -239,8 +239,8 @@ E "main(int x, int y)
{ {
click(station); click(station);
}" 0 }" 0
0 1 1 2 1 E U 0 E 10 10 38 23 0 1 1 2 1 E U 0 E 5 10 33 23
0 2 2 "0s" 0 0 0 192 0 0 10 10 1 0 2 2 "0s" 0 0 0 192 0 0 5 10 1
1 1
LANG:1 34 MS Shell Dlg 2,8,-1,5,50,0,0,0,0,0 LANG:1 34 MS Shell Dlg 2,8,-1,5,50,0,0,0,0,0
0 1 0 1
......
...@@ -11,4 +11,5 @@ install(FILES ...@@ -11,4 +11,5 @@ install(FILES
monitorStateReset.ctl monitorStateReset.ctl
readStationConfigs.ctl readStationConfigs.ctl
readStationBGPconnections.ctl readStationBGPconnections.ctl
transferMPs.ctl
DESTINATION pvss/scripts) DESTINATION pvss/scripts)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment