Skip to content
Snippets Groups Projects
Commit 444d9171 authored by Boudewijn Hut's avatar Boudewijn Hut
Browse files

Added functionality to get PPS delays from MACs configuration file (only for 'apertif-sr2.6')

parent 327e6976
No related branches found
No related tags found
No related merge requests found
...@@ -250,8 +250,18 @@ python $UPE/peripherals/util_diag_wg_wideband.py --unb $UNBS --bn 0:3 -n 4 --sp ...@@ -250,8 +250,18 @@ python $UPE/peripherals/util_diag_wg_wideband.py --unb $UNBS --bn 0:3 -n 4 --sp
# equals difference in cable length in meters. FIXME Disabled due to buggy bn_filterbank image # equals difference in cable length in meters. FIXME Disabled due to buggy bn_filterbank image
############################################################################### ###############################################################################
#if [ "$(hostname)" != "lcu-rtc" ] && [ "$(hostname)" != "lcu-rtd" ]; then #if [ "$(hostname)" != "lcu-rtc" ] && [ "$(hostname)" != "lcu-rtd" ]; then
# Inital values for RTC, RTD:
# python $UPE/peripherals/pi_common_pulse_delay.py --unb $UNBS --bn 0:3 --reg pulse_delay=1516 # python $UPE/peripherals/pi_common_pulse_delay.py --unb $UNBS --bn 0:3 --reg pulse_delay=1516
#fi #fi
if [ "$APP" == "apertif-sr2.6" ]; then
# . Determine telescope character (2..D)
HOST=$(hostname)
TELCHAR=${HOST:6:7}
# . Get value from MAC configuration file
PPS_DELAY=$(grep -i RT$TELCHAR /opt/apertif/etc/FixedDelays.conf | awk -v N=$3 '{print $3}')
# . Apply value
python $UPE/peripherals/pi_common_pulse_delay.py --unb $UNBS --bn 0:3 --reg pulse_delay=$PPS_DELAY
fi
############################################################################### ###############################################################################
# Write fiber delay setting. # Write fiber delay setting.
...@@ -274,18 +284,20 @@ python $UPE/peripherals/util_diag_wg_wideband.py --unb $UNBS --bn 0:3 -n 4 --sp ...@@ -274,18 +284,20 @@ python $UPE/peripherals/util_diag_wg_wideband.py --unb $UNBS --bn 0:3 -n 4 --sp
# . RTC: 2274m 0m # . RTC: 2274m 0m
# . RTD: 2274m 0m # . RTD: 2274m 0m
############################################################################### ###############################################################################
#case "$(hostname)" in if [ "$APP" == "apertif-sr2.6" ]; then
# lcu-rt2) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1188 ;; case "$(hostname)" in
# lcu-rt3) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1288 ;; lcu-rt2) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1188 ;;
# lcu-rt4) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1384 ;; lcu-rt3) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1288 ;;
# lcu-rt5) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1499 ;; lcu-rt4) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1384 ;;
# lcu-rt6) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1533 ;; lcu-rt5) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1499 ;;
# lcu-rt7) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1429 ;; lcu-rt6) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1533 ;;
# lcu-rt8) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1325 ;; lcu-rt7) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1429 ;;
# lcu-rt9) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1222 ;; lcu-rt8) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1325 ;;
# lcu-rta) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1099 ;; lcu-rt9) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1222 ;;
# lcu-rtb) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1099 ;; lcu-rta) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1099 ;;
#esac lcu-rtb) python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=1099 ;;
esac
fi
############################################################################### ###############################################################################
# Write front end beamformer settings for Arts SC1: # Write front end beamformer settings for Arts SC1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment