NQSH: NCD Shaper Header record



				Titles: NQSH: NCD Shaper Header record
				======================================

Contact: Mark Howe / Jan Wouters

Revision History:-
================
	2003-02-11 (jmw) - Original
	2003-02-19 (jmw) - Added mode field.  
	2003-11-04 (gac) - renamed first two words to match NQRH bank description
	2003-11-17 (gac) - renamed word prefix NCDS -> NQSH and reorganized 
	2003-11-22 (jmw) - Moved NQSH_MODE to word 7 since board option not channel option.
	2004-02-08 (jmw) - Added word 0 - Num of shaper records.
        2004-10-29 (krr) - Version 2 -- Added NQSH_ONLINE_MASK and NQSH_SCALER_MASK
        2007-04-16 (ggp) - Revised documentation.

Titles Files
------------

Verification
------------
Version 2 verified on 10-29-04 by LCS and KRR

Description
-----------

Bank Number: Version 2

Written out at the beginning of a run by SHaRC.  
The shaper data is acquired by 6 shapers each with 8 channels.  
The data from each shaper channel consists of a single 12 bit value.  
The following parameters define basic information for one shaper.

Data Words
----------

	Fixed length Database Header. See titles_dbhdr.html

    Data types: B(bit), I, F, D(double), H(hollerith 4 char)

Word		Type		Mnemonic		Description
1		I		NQSH_NUM_SH		Number of shaper records that follow.
2		I		NQSH_VERS		NQSH bank version number
3		I		NQSH_SH_NUMBER		ORCA assigned board number (0-15)
4		I		NQSH_SH_HW		Hardware address in decimal (0x8000 - 0x8f00)
5		I		NQSH_ID			Shaper board id.
6		I		NQSH_TYPE		Shaper type (0 = Test,
								1 = emit, 2 = ncd,
								3 = time tag)
7		I		NQSH_REV		Shaper board revision.
8		I		NQSH_MODE		Mode for acquisition. Bits:-
                                                                B0   Continuous
								B1   Enable scalers
                                                                B2   Multiboard
9               I               NQSH_ONLINE_MASK        Mask (in decimal) of which shaper channels are online and enabled
10              I               NQSH_SCALER_MASK        Mask (in decimal) of which cahnnel's scalers are enabled
11              I               NQSH_SPARE              Spare word
12		I		NQSH_NUM_CHAN		The number of shaper channels (=8)
13		I		NQSH_REC_SIZE		The size of the following repeating block (=3)
14		I		NQSH_REC		Base start address for the following repeating record

i				i = NQSH_REC + (n-1)*NQSH_REC_SIZE Start (n = 1 to NQSH_NUM_CHAN)

i+0		I		NQSH_THRES_DAC		Threshold written to DAC.
i+1		I		NQSH_THRES_ADC		Threshold read back from ADC.
i+2		I		NQSH_GAINS		Gains.
							
                                Words 2 to i+2 of final channel repeat for each shaper card.
 

Go Back to the Snoman Companion Top Page