Skip to content
Snippets Groups Projects
Commit d3e01353 authored by Ruud Overeem's avatar Ruud Overeem
Browse files

BugID: 796

State is also set to 'stopped' when program is killed.
customPrep script does not create any datapoints anymore. The DPs are now
part of the install procedure of a PVSS-LOFAR database.
parent 27a47682
No related branches found
No related tags found
No related merge requests found
...@@ -332,6 +332,7 @@ GCFEvent::TResult MACScheduler::active_state(GCFEvent& event, GCFPortInterface& ...@@ -332,6 +332,7 @@ GCFEvent::TResult MACScheduler::active_state(GCFEvent& event, GCFPortInterface&
// to install our handler later than the GCFTask handler. // to install our handler later than the GCFTask handler.
pMacScheduler = this; pMacScheduler = this;
signal (SIGINT, MACScheduler::sigintHandler); // ctrl-c signal (SIGINT, MACScheduler::sigintHandler); // ctrl-c
signal (SIGTERM, MACScheduler::sigintHandler); // kill
// update PVSS // update PVSS
itsPropertySet->setValue(string(PVSSNAME_FSM_STATE),GCFPVString("active")); itsPropertySet->setValue(string(PVSSNAME_FSM_STATE),GCFPVString("active"));
......
...@@ -42,8 +42,6 @@ namespace LOFAR { ...@@ -42,8 +42,6 @@ namespace LOFAR {
#define PVSSNAME_FSM_STATE "state" #define PVSSNAME_FSM_STATE "state"
#define PVSSNAME_FSM_ERROR "error" #define PVSSNAME_FSM_ERROR "error"
#define OC_PROPSET_NAME "LOFAR_ObsSW_Observation%d"
#define OC_PROPSET_TYPE "Observation"
}; // MCU }; // MCU
}; // LOFAR }; // LOFAR
......
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
main() main()
{ {
// create an enabled flag for CCU_PIC // create an enabled flag for CCU_PIC
dpCreate("PIC__enabled", "GCFPaPsEnabled"); // dpCreate("PIC__enabled", "GCFPaPsEnabled");
dpSet("PIC__enabled.","autoloaded|TCcuPic"); // dpSet("PIC__enabled.","autoloaded|TCcuPic");
dpCreate("PIC_Stations__enabled", "GCFPaPsEnabled"); // dpCreate("PIC_Stations__enabled", "GCFPaPsEnabled");
dpSet("PIC_Stations__enabled.","autoloaded|TCcuPic"); // dpSet("PIC_Stations__enabled.","autoloaded|TCcuPic");
dpCreate("PIC_CEP__enabled", "GCFPaPsEnabled"); // dpCreate("PIC_CEP__enabled", "GCFPaPsEnabled");
dpSet("PIC_CEP__enabled.","autoloaded|TCcuCep"); // dpSet("PIC_CEP__enabled.","autoloaded|TCcuCep");
dpCreate("GSO__enabled", "GCFPaPsEnabled"); // dpCreate("GSO__enabled", "GCFPaPsEnabled");
dpSet("GSO__enabled.","autoloaded|TCcuPic"); // dpSet("GSO__enabled.","autoloaded|TCcuPic");
dpCreate("VIC__enabled", "GCFPaPsEnabled"); // dpCreate("VIC__enabled", "GCFPaPsEnabled");
dpSet("VIC__enabled.","autoloaded|TCcuPic"); // dpSet("VIC__enabled.","autoloaded|TCcuPic");
dpDelete("GSO_MACScheduler"); // dpDelete("GSO_MACScheduler");
} }
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
main() main()
{ {
// create an enabled flag for CCU_PIC // create an enabled flag for CCU_PIC
dpCreate("PIC__enabled", "GCFPaPsEnabled"); // dpCreate("PIC__enabled", "GCFPaPsEnabled");
dpSet("PIC__enabled.","autoloaded|TCcuPic"); // dpSet("PIC__enabled.","autoloaded|TCcuPic");
dpCreate("PIC_Stations__enabled", "GCFPaPsEnabled"); // dpCreate("PIC_Stations__enabled", "GCFPaPsEnabled");
dpSet("PIC_Stations__enabled.","autoloaded|TCcuPic"); // dpSet("PIC_Stations__enabled.","autoloaded|TCcuPic");
dpCreate("PIC_CEP__enabled", "GCFPaPsEnabled"); // dpCreate("PIC_CEP__enabled", "GCFPaPsEnabled");
dpSet("PIC_CEP__enabled.","autoloaded|TCcuCep"); // dpSet("PIC_CEP__enabled.","autoloaded|TCcuCep");
dpCreate("GSO__enabled", "GCFPaPsEnabled"); // dpCreate("GSO__enabled", "GCFPaPsEnabled");
dpSet("GSO__enabled.","autoloaded|TCcuPic"); // dpSet("GSO__enabled.","autoloaded|TCcuPic");
dpCreate("VIC__enabled", "GCFPaPsEnabled"); // dpCreate("VIC__enabled", "GCFPaPsEnabled");
dpSet("VIC__enabled.","autoloaded|TCcuPic"); // dpSet("VIC__enabled.","autoloaded|TCcuPic");
dpDelete("GSO_MACScheduler"); // dpDelete("GSO_MACScheduler");
} }
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