Prev Up Next
Go backward to Gate arrays
Go up to Data arrays
Go forward to Arrays of arrays

Gain arrays

Sets of gain matching parameters may be specified in this section by means of a GAINWORD or GAINARRAY statement and referenced in the commands section via the GAIN command.  


GAINWORD <parameter-set-name> <an> <bn> <cn>



GAINARRAY <gain-array-name>

[<array-index>1 (<an> <bn> <cn>) [<array-index>2 (<an> <bn> <cn>) [...

[<array-index>n (<an> <bn> <cn>)] ...]]


where <parameter-set-name> contains the single set of parameters <an>, <bn> and <cn> and <gain-array-name> contains <n> sets of gain matching parameters. GAINWORD is designed for use with single variables and GAINARRAY is used with group-format variables, allowing the same item name associated with all groups of the same type to be gain-matched by a single command line in the commands section, GAINARRAY data is allowed in free format with array element number in the range 0 to 255. See example.

eg.

*FORMATS
GAINWORD GE_19  0.3 -0.05  0.00     // single variable parameters
GAINWORD GE_29  0.6  0.02  0.00

GAINARRAY E2GAINS                    // group format
1  (-0.2  0.10  0.00)
3  (0.7 -0.03  0.00)
     ...
70 (-0.1  0.05  0.00)
Each statement stores a set of gain-matching parameters associated with a particular sortword.

The value of <sortword> may then be modified in the commands section using the GAIN command according to the equation:

<sortword> = <a> + <b>*<sortword> + <c>*<sortword>$^2$

support@ns.ph.liv.ac.uk

Prev Up Next