diff --git a/MAC/APL/PIC/RSPDriver/test/Makefile.am b/MAC/APL/PIC/RSPDriver/test/Makefile.am
index 6bdc033d17446f965feb9e398a44651f3afc50d6..af44bbdc961fdff0fc41173c6d020ec15fd3c01c 100644
--- a/MAC/APL/PIC/RSPDriver/test/Makefile.am
+++ b/MAC/APL/PIC/RSPDriver/test/Makefile.am
@@ -11,6 +11,10 @@ bin_PROGRAMS = \
 	EPAStub \
 	RSPTest
 
+bin_SCRIPTS = \
+	beamtest \
+	wgtest
+
 #check_PROGRAMS = \
 #	RSPTest
 
diff --git a/MAC/APL/PIC/RSPDriver/test/beamtest b/MAC/APL/PIC/RSPDriver/test/beamtest
new file mode 100755
index 0000000000000000000000000000000000000000..0c47dcc9df6906552854192c7da0719cda0633e0
--- /dev/null
+++ b/MAC/APL/PIC/RSPDriver/test/beamtest
@@ -0,0 +1,19 @@
+#!/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
+
diff --git a/MAC/APL/PIC/RSPDriver/test/wgtest b/MAC/APL/PIC/RSPDriver/test/wgtest
new file mode 100755
index 0000000000000000000000000000000000000000..134ebe2267c2afd1365b1a2f4bcefc441dd0ba76
--- /dev/null
+++ b/MAC/APL/PIC/RSPDriver/test/wgtest
@@ -0,0 +1,12 @@
+#!/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
+