From 3591738aa3315a020e38676a8d5c9907e45cb57a Mon Sep 17 00:00:00 2001 From: Arthur Coolen <coolen@astron.nl> Date: Wed, 11 Oct 2006 13:05:30 +0000 Subject: [PATCH] BugID: 788 delete datapoints/types from database, ANALOG2 and ExampleDP_Float are in use by PVSS (as are the _ (internal)) DPT's, so keep those --- MAC/Navigator/scripts/emptyDatabase.ctl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/MAC/Navigator/scripts/emptyDatabase.ctl b/MAC/Navigator/scripts/emptyDatabase.ctl index 5c736d42741..fc9931f56c9 100644 --- a/MAC/Navigator/scripts/emptyDatabase.ctl +++ b/MAC/Navigator/scripts/emptyDatabase.ctl @@ -10,12 +10,14 @@ main() { dpType = types[i]; - if (substr(dpType,0,1) != "_") + if (substr(dpType,0,1) != "_" + && substr(dpType,0,7) != "ANALOG2" + && substr(dpType,0,15) != "ExampleDP_Float" ) { DebugN("DPType: "+dpType); string dpName; - dyn_string names = dpNames("*",dpType); - len2 = dynlen(names); + dyn_string names = dpNames("*",dpType); + len2 = dynlen(names); if (len2 > 0) { for (i2 = 1; i2 <= len2; i2++) -- GitLab