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

BugID: 993

Initial check-in of test scripts. Not tested on CS-1 hardware yet.
parent 66a3820d
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
binpath=/opt/lofar/bin
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 "$binpath/beamctl --array=CS1-TEST --rcumode=3 --rcus=0:95 --subbands=256 --beamlets=$blidx --direction=$mpos,0,LOFAR_LMN &"
# echo "recording snapshot $idx"
# $binpath/rspctl --statistics=beamlet --select=0,1 --integration=1 --duration=1 --directory=/home/lofartest/sjw/beamexperiment
# killall beamctl
done
# set WG to 40MHz
$binpath/rspctl --wg=40e6
#!/bin/sh
binpath=/opt/lofar/bin
for ((idx = 0; idx < 300; idx++)) do
echo #idx
$binpath/rspctl --xcstatistics --integration=60 --duration=60
cp *.dat acm.dat
mv *.dat monitordata
done
#!/bin/sh
basepath=/home/lofartest/wierenga/LOFAR/installed/gnunew_opt
#basepath=/opt/lofar
if [ "$USER" != "root" ]; then
echo `basename $0` must be run as root
exit 1
fi
mkdir -p $basepath/var/log
cd $basepath/var/log
# list of all services
services="amcserver ServiceBroker RSPDriver" # CalServer BeamServer
# kill old services
for service in $services; do
echo -n Killing $service...
killall $service
echo done
done
echo Waiting for 5 seconds...
sleep 5
# start new services
for service in $services; do
echo -n Starting $service...
nohup ../../bin/$service > ../../var/log/$service_out.log 2>&1 &
sleep 1 # wait for service to start listening for connections
echo done
done
#!/bin/sh
logfile=`date -u +%Y-%m-%d-%H-%M-%S`_tdmon.log
echo > $logfile
while (true); do
date -u >> $logfile
rspctl --tdstatus 2> /dev/null | fgrep -v controlling >> $logfile
sleep 1
done
#!/bin/sh
binpath=/opt/lofar/bin
declare phaserad
declare startidx
declare stopidx
for ((idx = 0; idx < 96; idx++)) do
phaserad=$(eval "echo \"($idx * 2 * 3.141592654) / 96\" | bc -l")
ampl=$(eval "echo \"$idx/(96*2)\" | bc -l")
eval "$binpath/rspctl --wg=40e6 --select=$idx --ampli=$ampl --phase=$phaserad"
done
for ((idx = 0; idx < 512; idx++)) do
echo $idx
eval "rspctl --xcsubband=$idx"
eval "rspctl --xcstatistics --integration=4 --duration=4 --directory=common4s"
done
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