diff --git a/applications/apertif/commissioning/tests/batch_test.py b/applications/apertif/commissioning/tests/batch_test.py index c34ce01bde4ca43a7baca1eb01544084b1ce38f7..797b49257216b69498c9789458e1d238f4f0da0d 100644 --- a/applications/apertif/commissioning/tests/batch_test.py +++ b/applications/apertif/commissioning/tests/batch_test.py @@ -38,7 +38,15 @@ it can be called after main.py and before MAC software takes control. Arguments: - --seq : selects one or more tests to run from info,bst,transpose + --seq : selects one or more tests to run from: + + . info can run on dish or on central + . bst runs on dish + . transpose runs on dish + . link requires dish and central + . mesh requires dish and central + . vis_packet requires dish and central + --tel : selects dish from 2,3,4,5,6,7,8,9,a,b,c,d for bands 0:15 omit --tel to have no dish tests --pol : selects the dish UniBoards and central FPGA nodes: @@ -49,7 +57,7 @@ . pol 0 selects central nodes --fn 0:3 pol 1 selects central nodes --bn 0:3 pol 0,1 selects central nodes --fn 0:3 --bn 0:3 - --unb, : selects central uniboards with --fn 0:3 --bn 0:3 + --unb : selects central uniboards with --fn 0:3 --bn 0:3 omit --unb to have no central tests Usage: @@ -247,6 +255,18 @@ if tc.nofUnb > 0 : run_in_foreground(CCU, command) # Update machine test result in global tc object get_test_result(MACHINES) + + if 'vis_packet' in tc.sequence: + # Apply stimuli at the dishes + # Set BF weights to have one SP per CB for all beamlets and rely on the measured sky noise to provide ADC input + command = 'ssh lcu-rtc -X "python $UPE/peripherals/pi_apertif_system.py -v 3 %s %s --cmd 62 --cbeams 0:36 --pol 0,1 --subbands 0:511 --globalsp 56 --weight 32767,0' % (dishUnb, dishFn) + run_in_foreground(LCUS, command) + tc.sleep(2) + # Verify expected results at central + command = 'python $RADIOHDL/applications/apertif/commissioning/tests/verify_correlator_db_output.py -v 3 %s %s %s %s --beamlets 0 --channels 0' % (optTel, centralUnb, centralFn, centralBn) + run_in_foreground(CCU, command) + # Update machine test result in global tc object + get_test_result(MACHINES) ############################################################################### # End