Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
e3-sis8300llrf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
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
ESS EPICS Environment
wrappers
e3-sis8300llrf
Commits
d7050634
Commit
d7050634
authored
5 years ago
by
Gabriel Fedel
Browse files
Options
Downloads
Patches
Plain Diff
Change configChannels to just generate alias if alias is != from channel name
parent
e05cf02f
No related branches found
No related tags found
1 merge request
!17
Change the way to set alias and description
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
startup/configChannels.sh
+18
-15
18 additions, 15 deletions
startup/configChannels.sh
with
18 additions
and
15 deletions
startup/configChannels.sh
+
18
−
15
View file @
d7050634
...
...
@@ -51,21 +51,24 @@ do
desc
=
${
desc
:0:40
}
fi
echo
"# Board
$iNum
, Channel
$ch
=
$pv_name
"
>>
$fPath
# set aliases
echo
"
$template0$ch
, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
\"
)"
>>
$fPath
echo
"
$template0$ch
-ATT, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-ATT
\"
)"
>>
$fPath
echo
"
$template0$ch
-ATT-RBV, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-ATT-RBV
\"
)"
>>
$fPath
echo
"
$template0$ch
-DECF, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-DECF
\"
)"
>>
$fPath
echo
"
$template0$ch
-DECF-RBV, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-DECF-RBV
\"
)"
>>
$fPath
echo
"
$template0$ch
-DECO, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-DECO
\"
)"
>>
$fPath
echo
"
$template0$ch
-DECO-RBV, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-DECO-RBV
\"
)"
>>
$fPath
echo
"
$template0$ch
-FileName, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-FileName
\"
)"
>>
$fPath
echo
"
$template0$ch
-Slope, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-Slope
\"
)"
>>
$fPath
echo
"
$template0$ch
-Offset, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-Offset
\"
)"
>>
$fPath
echo
"
$template0$ch
-InputValues, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-InputValues
\"
)"
>>
$fPath
echo
"
$template0$ch
-DigitisedValues, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-DigitisedValues
\"
)"
>>
$fPath
echo
"
$template0$ch
-FittedLine, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-FittedLine
\"
)"
>>
$fPath
# If alias is the same as channel, doesn't set alias
if
[
$pv_name
!=
"AI
$ch
"
]
;
then
echo
"# Board
$iNum
, Channel
$ch
=
$pv_name
"
>>
$fPath
# set aliases
echo
"
$template0$ch
, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
\"
)"
>>
$fPath
echo
"
$template0$ch
-ATT, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-ATT
\"
)"
>>
$fPath
echo
"
$template0$ch
-ATT-RBV, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-ATT-RBV
\"
)"
>>
$fPath
echo
"
$template0$ch
-DECF, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-DECF
\"
)"
>>
$fPath
echo
"
$template0$ch
-DECF-RBV, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-DECF-RBV
\"
)"
>>
$fPath
echo
"
$template0$ch
-DECO, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-DECO
\"
)"
>>
$fPath
echo
"
$template0$ch
-DECO-RBV, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-DECO-RBV
\"
)"
>>
$fPath
echo
"
$template0$ch
-FileName, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-FileName
\"
)"
>>
$fPath
echo
"
$template0$ch
-Slope, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-Slope
\"
)"
>>
$fPath
echo
"
$template0$ch
-Offset, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-Offset
\"
)"
>>
$fPath
echo
"
$template0$ch
-InputValues, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-InputValues
\"
)"
>>
$fPath
echo
"
$template0$ch
-DigitisedValues, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-DigitisedValues
\"
)"
>>
$fPath
echo
"
$template0$ch
-FittedLine, A=
$LLRF_IOC_NAME$iNum
:
$pv_name
-FittedLine
\"
)"
>>
$fPath
fi
# set descriptions
echo
"
$template1
\"
A=
$LLRF_IOC_NAME$iNum
:
$pv_name
, D=
$desc
\"
)"
>>
$fPathDesc
...
...
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