Skip to content
Snippets Groups Projects
Commit be3f3ede authored by wierenga's avatar wierenga
Browse files

BugID: 781

Some test scripts to test beamformer en correlator.
parent 98e60c8b
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,10 @@ bin_PROGRAMS = \
EPAStub \
RSPTest
bin_SCRIPTS = \
beamtest \
wgtest
#check_PROGRAMS = \
# RSPTest
......
#!/bin/sh
killall beamctl
sleep 10
declare mpos
declare blidx
declare blidx2
declare -i N=216
for ((idx = 0; idx < $N; idx++)) do
echo $idx
mpos=$(eval "echo \"($idx / $N)\" | bc -l")
blidx=$(eval "echo \"$idx\" | bc")
blidx2=$(eval "echo \"$blidx+8\" | bc")
echo $blidx
eval "/opt/lofar_beam/bin/beamctl --array=CS1-TEST --rcumode=3 --rcus=0:95 --subbands=256 --beamlets=$blidx --direction=$mpos,0,LOFAR_LMN &"
# echo "recording snapshot $idx"
# ./rspctl --statistics=beamlet --select=0,1 --integration=1 --duration=1 --directory=/home/lofartest/sjw/beamexperiment
# killall beamctl
done
#!/bin/sh
declare phaserad
declare startidx
declare stopidx
declare -i nrcus=16
for ((idx = 0; idx < $nrcus; idx++)) do
phaserad=$(eval "echo \"($idx * 2 * 3.141592654) / $nrcus\" | bc -l")
ampl=$(eval "echo \"$idx/$nrcus\" | bc -l")
# eval "rspctl --wg=50e6 --select=$idx --ampli=$ampl --phase=$phaserad"
eval "rspctl --wg=50e6 --select=$idx --phase=$phaserad"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment