Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxx-R6-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
synApps_6_1_Working
xxx-R6-1
Commits
110d00d6
Commit
110d00d6
authored
13 years ago
by
Pete Jemian
Browse files
Options
Downloads
Patches
Plain Diff
changed starter scripts (csh and bash) to make appending display path even clearer and shorter
parent
850c4d71
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README
+2
-1
2 additions, 1 deletion
README
setup_epics_common
+46
-26
46 additions, 26 deletions
setup_epics_common
start_epics_xxx
+11
-47
11 additions, 47 deletions
start_epics_xxx
start_epics_xxx.bash
+33
-29
33 additions, 29 deletions
start_epics_xxx.bash
with
92 additions
and
103 deletions
README
+
2
−
1
View file @
110d00d6
...
...
@@ -7,7 +7,8 @@ then edit configure/CONFIG to set the variable CROSS_COMPILER_TARGET_ARCHS.
Edit iocBoot/ioc*/Makefile to set the variable ARCH
Edit start_epics_xxx to set the variable EPICS_APP
Edit start_epics_xxx, start_epics_xxx.bash, and setup_epics_common
to set the variables EPICS_APP and EPICS_APP_ADL_DIR
Edit iocBoot/ioc*/*.cmd and iocBoot/ioc*/*.substitutions
to agree with your hardware
...
...
This diff is collapsed.
Click to expand it.
setup_epics_common
+
46
−
26
View file @
110d00d6
setenv EPICS_APP /home/oxygen/MOONEY/epics/synApps_5_5/support/xxx
#!/bin/csh
# caller (typically: start_epics) MUST make these definitions
# setenv EPICS_APP /home/oxygen/MOONEY/epics/synApps_5_5/support/xxx
# setenv EPICS_APP_ADL_DIR ${EPICS_APP}/xxxApp/op/adl
set output = `perl $EPICS_APP/release.pl $EPICS_APP`
$output
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$EPICS_APP/xxxApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$AREA_DETECTOR/ADApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$AUTOSAVE/asApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$BUSY/busyApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$CALC/calcApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$CAMAC/camacApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$DAC128V/dac128VApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$DELAYGEN/delaygenApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$DXP/dxpApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$IP/ipApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$IP330/ip330App/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$IPUNIDIG/ipUnidigApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$LOVE/loveApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$MCA/mcaApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$MOTOR/motorApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$OPTICS/opticsApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$QUADEM/quadEMApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$SSCAN/sscanApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$STD/stdApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$VME/vmeApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$ASYN/medm
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$VAC/vacApp/op/adl
setenv EPICS_DISPLAY_PATH $EPICS_DISPLAY_PATH':'$SOFTGLUE/softGlueApp/op/adl
#######################################
# Prepare MEDM path
# EDP is temporary EPICS_DISPLAY_PATH
#
alias append_EDP 'setenv EDP ${EDP}:\!*'
setenv EDP .
append_EDP ${EPICS_APP_ADL_DIR}
append_EDP ${AREA_DETECTOR}/ADApp/op/adl
append_EDP ${AUTOSAVE}/asApp/op/adl
append_EDP ${BUSY}/busyApp/op/adl
append_EDP ${CALC}/calcApp/op/adl
append_EDP ${CAMAC}/camacApp/op/adl
append_EDP ${DAC128V}/dac128VApp/op/adl
append_EDP ${DELAYGEN}/delaygenApp/op/adl
append_EDP ${DXP}/dxpApp/op/adl
append_EDP ${IP}/ipApp/op/adl
append_EDP ${IP330}/ip330App/op/adl
append_EDP ${IPUNIDIG}/ipUnidigApp/op/adl
append_EDP ${LOVE}/loveApp/op/adl
append_EDP ${MCA}/mcaApp/op/adl
append_EDP ${MOTOR}/motorApp/op/adl
append_EDP ${OPTICS}/opticsApp/op/adl
append_EDP ${QUADEM}/quadEMApp/op/adl
append_EDP ${SSCAN}/sscanApp/op/adl
append_EDP ${STD}/stdApp/op/adl
append_EDP ${VME}/vmeApp/op/adl
append_EDP ${ASYN}/medm
append_EDP ${VAC}/vacApp/op/adl
append_EDP ${SOFTGLUE}/softGlueApp/op/adl
if (! ${?EPICS_DISPLAY_PATH}) then
setenv EPICS_DISPLAY_PATH ${EDP}
else
setenv EPICS_DISPLAY_PATH ${EDP}:${EPICS_DISPLAY_PATH}
endif
if (! ${?MEDM_EXEC_LIST}) setenv MEDM_EXEC_LIST 'Probe;probe &P &'
#setenv EPICS_CA_ADDR_LIST "164.54.53.126"
# This should agree with the environment variable set by the ioc
# see 'putenv "EPICS_CA_MAX_ARRAY_BYTES=64008"' in iocBoot/ioc<target>/st.cmd
setenv EPICS_CA_MAX_ARRAY_BYTES 64008
if (! ${?MEDM_EXEC_LIST}) setenv MEDM_EXEC_LIST 'Probe;probe &P &'
This diff is collapsed.
Click to expand it.
start_epics_xxx
+
11
−
47
View file @
110d00d6
#!/bin/csh
setenv EPICS_APP /home/oxygen/MOONEY/epics/synApps_5_5/support/xxx
set output = `perl $EPICS_APP/release.pl $EPICS_APP`
$output
#######################################
# Prepare MEDM path
# EDP is temporary EPICS_DISPLAY_PATH
#
setenv EDP '.'
setenv EDP $EDP':'$EPICS_APP/xxxApp/op/adl
setenv EDP $EDP':'$AREA_DETECTOR/ADApp/op/adl
setenv EDP $EDP':'$AUTOSAVE/asApp/op/adl
setenv EDP $EDP':'$BUSY/busyApp/op/adl
setenv EDP $EDP':'$CALC/calcApp/op/adl
setenv EDP $EDP':'$CAMAC/camacApp/op/adl
setenv EDP $EDP':'$DAC128V/dac128VApp/op/adl
setenv EDP $EDP':'$DELAYGEN/delaygenApp/op/adl
setenv EDP $EDP':'$DXP/dxpApp/op/adl
setenv EDP $EDP':'$IP/ipApp/op/adl
setenv EDP $EDP':'$IP330/ip330App/op/adl
setenv EDP $EDP':'$IPUNIDIG/ipUnidigApp/op/adl
setenv EDP $EDP':'$LOVE/loveApp/op/adl
setenv EDP $EDP':'$MCA/mcaApp/op/adl
setenv EDP $EDP':'$MOTOR/motorApp/op/adl
setenv EDP $EDP':'$OPTICS/opticsApp/op/adl
setenv EDP $EDP':'$QUADEM/quadEMApp/op/adl
setenv EDP $EDP':'$SSCAN/sscanApp/op/adl
setenv EDP $EDP':'$STD/stdApp/op/adl
setenv EDP $EDP':'$VME/vmeApp/op/adl
setenv EDP $EDP':'$ASYN/medm
setenv EDP $EDP':'$VAC/vacApp/op/adl
setenv EDP $EDP':'$SOFTGLUE/softGlueApp/op/adl
if (! ${?EPICS_DISPLAY_PATH}) then
setenv EPICS_DISPLAY_PATH $EDP
else
setenv EPICS_DISPLAY_PATH $EDP':'$EPICS_DISPLAY_PATH
endif
# this definition is optional
setenv EPICS_DISPLAY_PATH .
echo $EPICS_DISPLAY_PATH
if (! ${?MEDM_EXEC_LIST}) setenv MEDM_EXEC_LIST 'Probe;probe &P &'
# MUST be defined before calling ./setup_epics_common
setenv EPICS_APP /home/oxygen/MOONEY/epics/synApps_5_5/support/xxx
setenv EPICS_APP_ADL_DIR ${EPICS_APP}/xxxApp/op/adl
#setenv EPICS_CA_ADDR_LIST "164.54.53.126"
# define environment variables for MEDM and Probe
source ./setup_epics_common
# This should agree with the environment variable set by the ioc
# see 'putenv "EPICS_CA_MAX_ARRAY_BYTES=64008"' in iocBoot/ioc<target>/st.cmd
setenv EPICS_CA_MAX_ARRAY_BYTES 64008
echo ${EPICS_DISPLAY_PATH}
cd ${EPICS_APP_ADL_DIR}
cd $EPICS_APP/xxxApp/op/adl
medm xxx.adl&
# start MEDM
medm xxx.adl
&
This diff is collapsed.
Click to expand it.
start_epics_xxx.bash
+
33
−
29
View file @
110d00d6
#!/bin/bash
EPICS_APP
=
/home/oxygen/MOONEY/epics/synApps_5_5/support/xxx
EPICS_APP_ADL_DIR
=
${
EPICS_APP
}
/xxxApp/op/adl
output
=
`
perl
-s
$EPICS_APP
/release.pl
-form
=
bash
$EPICS_APP
`
output
=
`
perl
-s
$
{
EPICS_APP
}
/release.pl
-form
=
bash
$
{
EPICS_APP
}
`
eval
$output
#######################################
# Prepare MEDM path
# EDP is temporary EPICS_DISPLAY_PATH
#
function
append_EDP
{
# note: in bash, macros are not expanded in aliases
EDP
=
${
EDP
}
:
$@
}
EDP
=
.
EDP
=
$EDP
:
$EPICS_APP
/xxxApp/op/adl
EDP
=
$EDP
:
$
AREA_DETECTOR
/ADApp/op/adl
EDP
=
$EDP
:
$
AUTOSAVE
/asApp/op/adl
EDP
=
$EDP
:
$
BUSY
/busyApp/op/adl
EDP
=
$EDP
:
$
CALC
/calcApp/op/adl
EDP
=
$EDP
:
$
CAMAC
/camacApp/op/adl
EDP
=
$EDP
:
$
DAC128V
/dac128VApp/op/adl
EDP
=
$EDP
:
$
DELAYGEN
/delaygenApp/op/adl
EDP
=
$EDP
:
$
DXP
/dxpApp/op/adl
EDP
=
$EDP
:
$
IP
/ipApp/op/adl
EDP
=
$EDP
:
$
IP330
/ip330App/op/adl
EDP
=
$EDP
:
$
IPUNIDIG
/ipUnidigApp/op/adl
EDP
=
$EDP
:
$
LOVE
/loveApp/op/adl
EDP
=
$EDP
:
$
MCA
/mcaApp/op/adl
EDP
=
$EDP
:
$
MOTOR
/motorApp/op/adl
EDP
=
$EDP
:
$
OPTICS
/opticsApp/op/adl
EDP
=
$EDP
:
$
QUADEM
/quadEMApp/op/adl
EDP
=
$EDP
:
$
SSCAN
/sscanApp/op/adl
EDP
=
$EDP
:
$
STD
/stdApp/op/adl
EDP
=
$EDP
:
$
VME
/vmeApp/op/adl
EDP
=
$EDP
:
$
ASYN
/medm
EDP
=
$EDP
:
$
VAC
/vacApp/op/adl
EDP
=
$EDP
:
$
SOFTGLUE
/softGlueApp/op/adl
append_EDP
${
EPICS_APP_ADL_DIR
}
append_EDP
${
AREA_DETECTOR
}
/ADApp/op/adl
append_EDP
${
AUTOSAVE
}
/asApp/op/adl
append_EDP
${
BUSY
}
/busyApp/op/adl
append_EDP
${
CALC
}
/calcApp/op/adl
append_EDP
${
CAMAC
}
/camacApp/op/adl
append_EDP
${
DAC128V
}
/dac128VApp/op/adl
append_EDP
${
DELAYGEN
}
/delaygenApp/op/adl
append_EDP
${
DXP
}
/dxpApp/op/adl
append_EDP
${
IP
}
/ipApp/op/adl
append_EDP
${
IP330
}
/ip330App/op/adl
append_EDP
${
IPUNIDIG
}
/ipUnidigApp/op/adl
append_EDP
${
LOVE
}
/loveApp/op/adl
append_EDP
${
MCA
}
/mcaApp/op/adl
append_EDP
${
MOTOR
}
/motorApp/op/adl
append_EDP
${
OPTICS
}
/opticsApp/op/adl
append_EDP
${
QUADEM
}
/quadEMApp/op/adl
append_EDP
${
SSCAN
}
/sscanApp/op/adl
append_EDP
${
STD
}
/stdApp/op/adl
append_EDP
${
VME
}
/vmeApp/op/adl
append_EDP
${
ASYN
}
/medm
append_EDP
${
VAC
}
/vacApp/op/adl
append_EDP
${
SOFTGLUE
}
/softGlueApp/op/adl
if
[
-z
"
$EPICS_DISPLAY_PATH
"
]
then
export
EPICS_DISPLAY_PATH
=
$EDP
export
EPICS_DISPLAY_PATH
=
$
{
EDP
}
else
export
EPICS_DISPLAY_PATH
=
$EDP
:
$EPICS_DISPLAY_PATH
export
EPICS_DISPLAY_PATH
=
$
{
EDP
}
:
$
{
EPICS_DISPLAY_PATH
}
fi
echo
$EPICS_DISPLAY_PATH
echo
$
{
EPICS_DISPLAY_PATH
}
if
[
-z
"
$MEDM_EXEC_LIST
"
]
if
[
-z
"
$
{
MEDM_EXEC_LIST
}
"
]
then
export
MEDM_EXEC_LIST
=
'Probe;probe &P &'
fi
...
...
@@ -53,5 +57,5 @@ fi
# see 'putenv "EPICS_CA_MAX_ARRAY_BYTES=64008"' in iocBoot/ioc<target>/st.cmd
export
EPICS_CA_MAX_ARRAY_BYTES
=
64008
cd
$EPICS_APP
/xxxApp/op/adl
cd
$
{
EPICS_APP
}
/xxxApp/op/adl
medm xxx.adl&
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