Skip to content
Snippets Groups Projects
Commit 7af254a9 authored by Menno Norden's avatar Menno Norden
Browse files

bug 1315: beamctl used to switch on HBA

parent 3750a427
No related branches found
No related tags found
No related merge requests found
...@@ -79,8 +79,11 @@ def main() : ...@@ -79,8 +79,11 @@ def main() :
#--------------------------------------------- #---------------------------------------------
# capture reference data (all HBA elements off) # capture reference data (all HBA elements off)
rm_files(dir_name,'*') rm_files(dir_name,'*')
os.popen("rspctl --rcumode=5 2>/dev/null") os.popen3("swlevel 3");
os.popen("rspctl --enable 2>/dev/null") time.sleep(5)
os.popen("beamctl --array=HBA --rcus=0:95 --rcumode=5 --subbands=100:110 --beamlets=0:10 --direction=0,0,J2000&")
#os.popen("rspctl --rcumode=5 2>/dev/null")
#os.popen("rspctl --rcuenable=1 2>/dev/null")
for ind in range(hba_elements) : for ind in range(hba_elements) :
ctrl_string=ctrl_string + '128,' ctrl_string=ctrl_string + '128,'
strlength=len(ctrl_string) strlength=len(ctrl_string)
......
...@@ -45,7 +45,7 @@ def open_file(files, file_nr) : ...@@ -45,7 +45,7 @@ def open_file(files, file_nr) :
f=open(file_name,'rb') f=open(file_name,'rb')
max_frames = size/(512*8) max_frames = size/(512*8)
frames_to_process=max_frames frames_to_process=max_frames
rcu_nr = int(files[file_nr][-7:-4]) rcu_nr = int(files[file_nr][-6:-4])
#print 'File nr ' + str(file_nr) + ' RCU nr ' + str(rcu_nr) + ' ' + files[file_nr][-6:-4] #print 'File nr ' + str(file_nr) + ' RCU nr ' + str(rcu_nr) + ' ' + files[file_nr][-6:-4]
else : else :
frames_to_process=0 frames_to_process=0
...@@ -121,8 +121,11 @@ def main() : ...@@ -121,8 +121,11 @@ def main() :
#--------------------------------------------- #---------------------------------------------
# capture reference data (all HBA elements off) # capture reference data (all HBA elements off)
rm_files(dir_name,'*') rm_files(dir_name,'*')
os.popen("rspctl --rcumode=5 2>/dev/null") os.popen3("swlevel 3");
os.popen("rspctl --rcuenable=1 2>/dev/null") time.sleep(5)
os.popen("beamctl --array=HBA --rcus=0:95 --rcumode=5 --subbands=100:110 --beamlets=0:10 --direction=0,0,J2000&")
#os.popen("rspctl --rcumode=5 2>/dev/null")
#os.popen("rspctl --rcuenable=1 2>/dev/null")
time.sleep(2) time.sleep(2)
for ind in range(hba_elements) : for ind in range(hba_elements) :
ctrl_string=ctrl_string + '2,' ctrl_string=ctrl_string + '2,'
......
...@@ -94,10 +94,11 @@ def main() : ...@@ -94,10 +94,11 @@ def main() :
#--------------------------------------------- #---------------------------------------------
# capture reference data (all HBA elements off) # capture reference data (all HBA elements off)
rm_files(dir_name,'*') rm_files(dir_name,'*')
os.popen("rspctl --rcumode=5 2>/dev/null") os.popen3("swlevel 3");
time.sleep(2) time.sleep(5)
os.popen("rspctl --rcuenable=1 2>/dev/null") os.popen("beamctl --array=HBA --rcus=0:95 --rcumode=5 --subbands=100:110 --beamlets=0:10 --direction=0,0,J2000&")
time.sleep(2) #os.popen("rspctl --rcumode=5 2>/dev/null")
#os.popen("rspctl --rcuenable=1 2>/dev/null")
for ind in range(hba_elements) : for ind in range(hba_elements) :
ctrl_string=ctrl_string + '2,' ctrl_string=ctrl_string + '2,'
strlength=len(ctrl_string) strlength=len(ctrl_string)
......
...@@ -3,18 +3,37 @@ ...@@ -3,18 +3,37 @@
# Send delays from RCU to HBA and compare results with the expected golden result. # Send delays from RCU to HBA and compare results with the expected golden result.
# To verify modem communication between RCU and HBA # To verify modem communication between RCU and HBA
# #
# Version 1.1 55555 2009 M.J.Norden # Version 1.2 18-01-10 M.J.Norden
rm -f hba_modem*.log rm -f hba_modem*.log
rm -f hba_modem*.diff rm -f hba_modem*.diff
declare ontime=4 let ontime=4
let hbamode=5 let hbamode=5
eval "rspctl --rcumode=$hbamode" station=`hostname -s`
if [ -e /opt/lofar/etc/RemoteStation.conf ]; then
let rspboards=`sed -n 's/^\s*RS\.N_RSPBOARDS\s*=\s*\([0-9][0-9]*\).*$/\1/p' /opt/lofar/etc/RemoteStation.conf`
let rcus=$rspboards*8
let nrcus=$rcus-1
else
echo "Could not find /opt/lofar/etc/RemoteStation.conf"
let rspboards=12
let rcus=$rspboards*8
let nrcus=$rcus-1
fi
echo "This is station "$station
echo "The number of RCU's is "$rcus
rspctl --splitter=0
sleep 2 sleep 2
eval "rspctl --rcuenable=1"
swlevel 3
beamctl --array=HBA --rcus=0:$nrcus --rcumode=$hbamode --subbands=100:110 --beamlets=0:10 --direction=0,0,J2000&
sleep 5
echo "The rcumode is "$hbamode echo "The rcumode is "$hbamode
sleep 2 sleep 2
......
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