From d555ca0db6838abd26ec635713aa544178907556 Mon Sep 17 00:00:00 2001
From: Menno Norden <norden@astron.nl>
Date: Tue, 19 Jan 2010 10:31:05 +0000
Subject: [PATCH] bug 1315: beamctl used to switch on HBA

---
 .../subbandstatistics_hba-5.sh                | 38 +++++++--------
 .../subbandstatistics_hba-6.sh                | 47 ++++++++++---------
 .../subbandstatistics_hba-7.sh                | 38 +++++++--------
 3 files changed, 63 insertions(+), 60 deletions(-)

diff --git a/LCU/StationTest/test/subbandstatistics/subbandstatistics_hba-5.sh b/LCU/StationTest/test/subbandstatistics/subbandstatistics_hba-5.sh
index 82046ab3ade..8afb7e4b975 100644
--- a/LCU/StationTest/test/subbandstatistics/subbandstatistics_hba-5.sh
+++ b/LCU/StationTest/test/subbandstatistics/subbandstatistics_hba-5.sh
@@ -1,19 +1,19 @@
-#!/bin/sh
-# 1.1 subband statistics HBA test 
-# 29-06-09, M.J Norden
-# HBA input with antennas
-
-rspctl --specinv=1
-rspctl --rcuprsg=0
-rspctl --wg=0
-rspctl --rcumode=5 
-sleep 2
-rspctl --rcuenable=1
-sleep 2
-
-echo ==========================
-echo "Subband Statistics HBA rcumode=5" `hostname -s`
-echo ==========================
-rspctl --stati& 
-sleep 20 && kill $!
-
+#!/bin/sh
+# 1.2 subband statistics HBA test 
+# 18-01-10, M.J Norden
+# HBA input with antennas
+
+rspctl --rcuprsg=0
+rspctl --wg=0
+rspctl --splitter=0
+
+swlevel 3
+beamctl --array=HBA --rcus=0:95 --rcumode=5 --subbands=100:110 --beamlets=0:10 --direction=0,0,J2000&
+sleep 2
+
+echo ==========================
+echo "Subband Statistics HBA rcumode=5" `hostname -s`
+echo ==========================
+rspctl --stati& 
+sleep 20 && kill $!
+
diff --git a/LCU/StationTest/test/subbandstatistics/subbandstatistics_hba-6.sh b/LCU/StationTest/test/subbandstatistics/subbandstatistics_hba-6.sh
index 8d04c34b377..f3d0c989c13 100644
--- a/LCU/StationTest/test/subbandstatistics/subbandstatistics_hba-6.sh
+++ b/LCU/StationTest/test/subbandstatistics/subbandstatistics_hba-6.sh
@@ -1,22 +1,25 @@
-#!/bin/sh
-# 1.1 subband statistics HBA test 
-# 29-06-09, M.J Norden
-# HBA input with antennas
-
-
-echo "Set the clock speed at 160MHz (rspctl --clock=160)"
-echo "Before you run this test!!"
-
-rspctl --specinv=0
-rspctl --rcuprsg=0
-rspctl --wg=0
-rspctl --rcumode=6 
-sleep 2
-rspctl --rcuenable=1
-sleep 2
-
-echo ==========================
-echo "Subband Statistics HBA rcumode=6" `hostname -s`
-echo ==========================
-rspctl --stati& 
-sleep 20 && kill $!
+#!/bin/sh
+# 1.2 subband statistics HBA test 
+# 18-01-10, M.J Norden
+# HBA input with antennas
+
+
+echo "Set the clock speed at 160MHz (wait for 60 seconds)"
+rspctl --clock=160 && sleep 60
+
+rspctl --rcuprsg=0
+rspctl --wg=0
+rspctl --splitter=0
+
+swlevel 3
+beamctl --array=HBA --rcus=0:95 --rcumode=6 --subbands=100:110 --beamlets=0:10 --direction=0,0,J2000&
+sleep 2
+
+echo ==========================
+echo "Subband Statistics HBA rcumode=6" `hostname -s`
+echo ==========================
+rspctl --stati& 
+sleep 20 && kill $!
+echo "Do not forget to switch the clock back to 200MHz"
+
+
diff --git a/LCU/StationTest/test/subbandstatistics/subbandstatistics_hba-7.sh b/LCU/StationTest/test/subbandstatistics/subbandstatistics_hba-7.sh
index b8f90d4fdc2..eff45a34e23 100644
--- a/LCU/StationTest/test/subbandstatistics/subbandstatistics_hba-7.sh
+++ b/LCU/StationTest/test/subbandstatistics/subbandstatistics_hba-7.sh
@@ -1,19 +1,19 @@
-#!/bin/sh
-# 1.1 subband statistics HBA test 
-# 29-06-09, M.J Norden
-# HBA input with antennas
-
-rspctl --specinv=0
-rspctl --rcuprsg=0
-rspctl --wg=0
-rspctl --rcumode=7 
-sleep 2
-rspctl --rcuenable=1
-sleep 2
-
-echo ==========================
-echo "Subband Statistics HBA rcumode=7" `hostname -s`
-echo ==========================
-rspctl --stati& 
-sleep 20 && kill $!
-
+#!/bin/sh
+# 1.2 subband statistics HBA test 
+# 18-01-10, M.J Norden
+# HBA input with antennas
+
+rspctl --rcuprsg=0
+rspctl --wg=0
+rspctl --splitter=0
+
+swlevel 3
+beamctl --array=HBA --rcus=0:95 --rcumode=7 --subbands=100:110 --beamlets=0:10 --direction=0,0,J2000&
+sleep 2
+
+echo ==========================
+echo "Subband Statistics HBA rcumode=7" `hostname -s`
+echo ==========================
+rspctl --stati& 
+sleep 20 && kill $!
+
-- 
GitLab