Skip to content

Commit

Permalink
Merge pull request #376 from BCDA-APS/357-examples
Browse files Browse the repository at this point in the history
apsbss: example beam line-specific shell scripts
  • Loading branch information
prjemian authored Jul 18, 2020
2 parents 4bf5fd3 + 14c3022 commit add1b69
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
15 changes: 15 additions & 0 deletions docs/source/applications/apsbss.rst
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,21 @@ Start caQtDM with this command: ``caQtDM -macro "P=9id:bss:" apsbss.ui &``

Start MEDM with this command: ``medm -x -macro "P=9id:bss:" apsbss.ui &``

Here's an example starter script for caQtDM from APS 9-ID-C (USAXS):

.. code-block:: bash
#!/bin/bash
BLUESKY_ROOT=/APSshare/anaconda3/Bluesky
APSTOOLS_PKG=${BLUESKY_ROOT}/lib/python3.7/site-packages/apstools
GUI_SCREEN=${APSTOOLS_PKG}/beamtime/apsbss.ui
CAQTDM=/APSshare/bin/caQtDM
source ${BLUESKY_ROOT}/bin/activate
${CAQTDM} -macro P=9idc:bss: ${GUI_SCREEN} &
IOC Management
++++++++++++++

Expand Down
24 changes: 23 additions & 1 deletion docs/source/applications/apsbss_ioc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,26 @@ from EPICS base, use the supplied IOC management shell script
.. note:: The ``softIoc`` application is run within a ``screen``
session so that it remains running even if you close the
console session. Confirm that you have the ``screen`` application
first before trying to start the IOC.
first before trying to start the IOC.


Here's an example starter script for the IOC from APS 9-ID-C (USAXS):

.. code-block:: bash
#!/bin/bash
PROCESS_NAME=ioc9idcbss
IOC_PREFIX=9idc:bss:
# need shell script and EPICS database file
BLUESKY=/APSshare/anaconda3/Bluesky
APSTOOLS=${BLUESKY}/lib/python3.7/site-packages/apstools
source ${BLUESKY}/bin/activate base
# need EPICS base/bin/softIoc from this path
export PATH=${PATH}:/APSshare/epics/base-7.0.3/bin/${EPICS_HOST_ARCH}
cd "${APSTOOLS}"/beamtime
./apsbss_ioc.sh "${@}" "${PROCESS_NAME}" "${IOC_PREFIX}"

0 comments on commit add1b69

Please sign in to comment.