Difference between revisions of "MCE Test Scripts"

From MCEWiki
(Python Scripts)
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The following test scripts are found in SVN in the /mce_script/test_suite directory. The scripts are as follows:
+
{{Related|Testing}}
 +
Here are few scripts to help troubleshoot MCE hardware failures. They can be found under mce_script/test_suite.
 +
; mce_check
 +
: checks the health of the MCE by reporting the hardware status: Silicon ID, FPGA temperature, card temperature, firmware revision, hardware revision for each card in MCE crate. The output looks like [[mce_check_output]]
  
== Bash Scripts ==
+
; card_all_test
* addressing.scr
+
:this script is used to test the features common to all MCE cards on a particular card (unit-under-test). It queries the MCE for temperatures, silicon ID, firmware revision, hardware revision, toggles LEDs, etc.
* biasing.scr
+
****** Check to make sure the LEDs on the target card switched status! ****
* hw_auto_cc
+
Unit Under Test  :  rc1
* hw_auto_cc_sram
+
Serial Number    :  SRC-216
* hw_man_cc_2slotbp
+
Firmware Revision:  0x05010003
* hw_man_mce
+
card_id          :  0x20be502
* mce_check
+
slot_id          :  [4]
* sram_test
+
card_type        :  [2]
* sys_auto_mce
+
card_rev        :  0
* test_suite
+
fpga_temp        :  34 C pass
* test_suite_library.bash
+
card_temp        :  28 C pass
 +
results are in  :  /data/cryo/current_data/SRC-216_1285959943_all_test
 +
; bc_test
 +
:this script is used to load test patterns into the DACs of a Bias Card and user can verify those patterns using a scope probe. It loads a fix-value, then ramp, and finally a cross-talk test between even and odd channels.
  
== Python Scripts ==
+
; rc_test
To install the Emacs template file for python, type the following:
+
: this script is used to test the serial and parallel DACs in a Readout Card. It loads certain patterns and user has to use a probe to verify the DAC output.
sudo apt-get install python-mode
 
  
Here is a sample starter script for the MCE:
+
; rc_noise_test_histogram
mce@mce-ubc-2:~$ python
+
: This script is used to test the integrity of the pre-amp chain and ADCs. This script collects 10 sets of 65k 50MHz samples of all channels and creates a histogram of all the data and also a bit-ratio distribution to assess the ADC noise. The histograms are saved in postscript.  
Python 2.4.3 (#2, Mar 7 2008, 01:58:20)
 
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
 
Type "help", "copyright", "credits" or "license" for more information.
 
>>> import os
 
>>> os.system('mce_cmd -x rb cc fw_rev')
 
This is mce_cmd version MAS/trunk/230
 
Line  0 : ok : 0x400000b
 
Processed 0 lines, exiting.
 
0
 
>>>
 
  
When creating a python script, for the script to be executable, you must put the following line of code at the top:
+
; hw_auto_cc
#!/bin/python
+
: This script tests the Clock Card FPGA's hardware interfaces.
  
And you must change the permissions of the file to the following:
+
== Useful Links ==
chmod a+x <python_script_name>
+
*[[Testing MCE Readout Cards]]
 +
*[[Testing MCE Bias Cards]]
 +
 
 +
[[Category:MCE Script]]
 +
[[Category:Testing]]

Latest revision as of 18:05, 31 August 2016

Here are few scripts to help troubleshoot MCE hardware failures. They can be found under mce_script/test_suite.

mce_check
checks the health of the MCE by reporting the hardware status: Silicon ID, FPGA temperature, card temperature, firmware revision, hardware revision for each card in MCE crate. The output looks like mce_check_output
card_all_test
this script is used to test the features common to all MCE cards on a particular card (unit-under-test). It queries the MCE for temperatures, silicon ID, firmware revision, hardware revision, toggles LEDs, etc.
****** Check to make sure the LEDs on the target card switched status! ****
Unit Under Test  :  rc1
Serial Number    :  SRC-216
Firmware Revision:  0x05010003
card_id          :  0x20be502
slot_id          :  [4]
card_type        :  [2]
card_rev         :  0
fpga_temp        :  34 C pass
card_temp        :  28 C pass
results are in   :  /data/cryo/current_data/SRC-216_1285959943_all_test
bc_test
this script is used to load test patterns into the DACs of a Bias Card and user can verify those patterns using a scope probe. It loads a fix-value, then ramp, and finally a cross-talk test between even and odd channels.
rc_test
this script is used to test the serial and parallel DACs in a Readout Card. It loads certain patterns and user has to use a probe to verify the DAC output.
rc_noise_test_histogram
This script is used to test the integrity of the pre-amp chain and ADCs. This script collects 10 sets of 65k 50MHz samples of all channels and creates a histogram of all the data and also a bit-ratio distribution to assess the ADC noise. The histograms are saved in postscript.
hw_auto_cc
This script tests the Clock Card FPGA's hardware interfaces.

Useful Links