From 2e24e396479445c0ce8f266f900f3c721f205b30 Mon Sep 17 00:00:00 2001 From: Erik Kooistra <kooistra@astron.nl> Date: Tue, 5 Dec 2017 15:07:31 +0000 Subject: [PATCH] Set PPS_DELAY and FIBER_DELAY also for --app arts_sc1 and arts_sc4. --- applications/apertif/commissioning/dish_commands.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/applications/apertif/commissioning/dish_commands.sh b/applications/apertif/commissioning/dish_commands.sh index 0c10ebb1b9..dd481b2e5c 100755 --- a/applications/apertif/commissioning/dish_commands.sh +++ b/applications/apertif/commissioning/dish_commands.sh @@ -267,14 +267,14 @@ python $UPE/peripherals/util_diag_wg_wideband.py --unb $UNBS --bn 0:3 -n 4 --sp # Inital values for RTC, RTD: # python $UPE/peripherals/pi_common_pulse_delay.py --unb $UNBS --bn 0:3 --reg pulse_delay=1516 #fi -if [ "$APP" == "apertif-sr2.6" ]; then -# . Determine telescope character (2..D) +if [ "$APP" == "apertif-sr2.6" ] || [ "$APP" == "arts_sc1" ] || [ "$APP" == "arts_sc4" ]; then + # Determine telescope character (2..D) HOST=$(hostname) TELCHAR=${HOST:6:7} -# . Get value from MAC configuration file + # Get value from MAC configuration file PPS_DELAY=$(grep -i ^RT$TELCHAR /opt/apertif/etc/FixedDelays.conf | awk '{print $2}') FIBER_DELAY=$(grep -i ^RT$TELCHAR /opt/apertif/etc/FixedDelays.conf | awk '{print $3}') -# . Apply value + # Apply value python $UPE/peripherals/pi_common_pulse_delay.py --unb $UNBS --bn 0:3 --reg pulse_delay=$PPS_DELAY python $UPE/peripherals/pi_dp_fifo_monitor.py --unb $UNBS --fn 0:3 --reg rd_fill=$FIBER_DELAY fi -- GitLab