Skip to content

Commit

Permalink
updating scripts!
Browse files Browse the repository at this point in the history
  • Loading branch information
jw-lin committed Oct 19, 2023
1 parent c6d7a9b commit 99c681a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
3 changes: 3 additions & 0 deletions AOloopControl/examples/scexao-NIRPL-conf/cacaovars.bash
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,6 @@ export CACAO_FPSPROC_MODALFILTERING="ON"
# Compute DM command from control mode values
#
export CACAO_FPSPROC_MVMGPU_CMODEVAL2DM="ON"

# Env variable to see if we are in sim mode or not
export CACAO_MODE=""
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,21 @@
source cacao-check-cacaovars
source ./scripts/fps-utility.sh

setupfps "column_sum"
# name of function to setup
fname = "column_sum"

# add to fpsCTRL, start tmux, start conf, turn on procinfo
setupfps "${fname}"

# procinfo specific stuff
sendFPScmd "setval ${fname}-${CACAO-LOOPNUMBER}.procinfo.triggermode 3"
sendFPScmd "setval ${fname}-${CACAO-LOOPNUMBER}.procinfo.loopcntMax -1"

if ${CACAO_MODE} == "HARDW"
then
sendFPScmd "setval ${fname}-${CACAO-LOOPNUMBER}.procinfo.triggersname ${CACAO_WFSSTREAM}"
elif ${CACAO_MODE} == "SIM"
then
sendFPScmd "setcal ${fname}-${CACAO-LOOPNUMBER}.procinfo.triggersname ${CACAO_WFSSTREAMSIM}"
fi

Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,5 @@ ln -sf ${MILK_SHM_DIR}/dm${CACAO_DMINDEX}disp00.im.shm ${MILK_SHM_DIR}/aol${CACA
ln -sf ${MILK_SHM_DIR}/dm${CACAO_DMINDEX}disp02.im.shm ${MILK_SHM_DIR}/aol${CACAO_LOOPNUMBER}_dmRM.im.shm

ln -sf ${MILK_SHM_DIR}/dm${CACAO_DMINDEX}disp.im.shm ${MILK_SHM_DIR}/aol${CACAO_LOOPNUMBER}_dmdisp.im.shm

$CACAO_MODE = "HARDW"
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ ln -sf ${MILK_SHM_DIR}/dm${CACAO_DMSIMINDEX}disp00.im.shm ${MILK_SHM_DIR}/aol${C
ln -sf ${MILK_SHM_DIR}/dm${CACAO_DMSIMINDEX}disp02.im.shm ${MILK_SHM_DIR}/aol${CACAO_LOOPNUMBER}_dmRM.im.shm

ln -sf ${MILK_SHM_DIR}/dm${CACAO_DMSIMINDEX}disp.im.shm ${MILK_SHM_DIR}/aol${CACAO_LOOPNUMBER}_dmdisp.im.shm

CACAO_MODE="SIM"

0 comments on commit 99c681a

Please sign in to comment.