Commit 9c542be8 authored by John Robert Gill's avatar John Robert Gill

Added TX + RX slot numbers as arguments.

parent 894e1f48
......@@ -3,15 +3,15 @@
# After calling wr2rf_init.sh for both tx and rx wr2rf_vme cards. The sequence outlined below
# can be used to "simulate" a cycle of the sps. The slot numbers used are specific to cfv-774-celma4
# card configuration and should be adapted...
# slot 2 is TX, slots 4+5 RX
./wr2rf -s 4 set-rfout 1 mix
./wr2rf -s 4 set-rfout 2 mix
./wr2rf -s 5 set-rfout 1 mix
./wr2rf -s 5 set-rfout 2 mix
# configure the tx + rx slots from the input arguments
tx=$1
rx=$2
./wr2rf -s $rx set-rfout 1 mix
./wr2rf -s $rx set-rfout 2 mix
# reset the RX wr2rf trigger unit
sh vtu_setup.sh 4
sh vtu_setup.sh 5
sh vtu_setup.sh $rx
freq_LHCPILOT=43347.158955
freq_SFTION1=42966.157844
......@@ -27,6 +27,6 @@ ftw_hex=`echo "obase=16;ibase=10; $ftw_h1" | bc -q`
echo "FTW calculated as $ftw_hex"
usleep 10
./wr2rf -s 2 ftw-send1 0x$ftw_hex reset
./wr2rf -s $tx ftw-send1 0x$ftw_hex reset
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment