Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
d0748ecb
Commit
d0748ecb
authored
17 years ago
by
Arthur Coolen
Browse files
Options
Downloads
Patches
Plain Diff
BugID: 755
Added MasterDatapoints and Archiving for .logMsg dpe's
parent
dcca2b4e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAC/Deployment/data/PVSS/create_db_files
+41
-17
41 additions, 17 deletions
MAC/Deployment/data/PVSS/create_db_files
with
41 additions
and
17 deletions
MAC/Deployment/data/PVSS/create_db_files
+
41
−
17
View file @
d0748ecb
...
...
@@ -485,26 +485,29 @@ create_dpt_file()
fi
prevdpt=${dpt}
if [ ! -f ${dpt}.dpdef ]; then
echo "TypeName"
echo "${dpt}.${dpt} 1#1"
echo " state 21#2"
echo " childState 21#3"
if [ ${prefix} != "-" ]; then
#
# create PVSStypes
#
echo "TypeName"
echo "${dpt}.${dpt} 1#1"
echo " state 21#2"
echo " childState 21#3"
let count=4
if [ ${prefix} != "-" ]; then
if [ ! -f ${dpt}.dpdef ]; then
echo "No definition file for ${dpt}" >> ${ERRORFILE}
echo " currentAction 25#4"
echo " error 25#5"
echo " logMsg 25#6"
fi
else
echo "TypeName"
echo "${dpt}.${dpt} 1#1"
echo " currentAction 25#2"
echo " error 25#3"
echo " logMsg 25#4"
echo " state 21#5"
echo " childState 21#6"
echo " currentAction 25#4"
echo " error 25#5"
echo " logMsg 25#6"
let count=7
fi
if [ -f ${dpt}.dpdef ]; then
let depth=1
oldnode=""
cleanlist ${dpt}.dpdef | awk -v elemNr=$count '
...
...
@@ -555,6 +558,27 @@ create_dpt_file()
}'
fi
echo ""
#
# Create MasterDataPoint
#
echo "DpName TypeName ID"
echo "_mp_${dpt} ${dpt} 0"
echo ""
#
# if software then create an hourarchive for the logMsg in the MasterDataPoint
#
if [ ${prefix} != "-" ]; then
echo "StampSec StampMSec ElementName TypeName DetailNr _archive.._type _archive.._archive _archive.._class"
echo "0 0 _mp_${dpt}.logMsg ${dpt} 45 1"
echo "0 0 _mp_${dpt}.logMsg ${dpt} 1 15 _ValueArchive_2"
echo ""
fi
done >>${DESTDIR}/${DPT_FILE}
echo "created: ${DESTDIR}/${DPT_FILE}"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment