Up Next
Go up to Spectrum update commands
Go forward to Indexed updates

Simple updates


INC|DEC <spectrum-name>(<x-channel> [,<y-channel> [,<z-channel>]])

SET <spectrum-name>(<x-channel> [,<y-channel> [,<z-channel>]]) = <expression>

where a channel is defined as one of the following:

<arithmetic expression>

<parameter-list>

[<$word>=]<group-parameter-list>


INC|DEC increment/decrement the spectrum channel specified. SET sets the spectrum channel to the value given by <expression>. If a parameter-list is specified for a channel then the command will be applied to all members of the list present in the event. If the same list is used for different channels of a spectrum then the ith element of a list will not be incremented with the ith element.

eg.

INC GMAT(GELIST.E2,GELIST.E2)
... increment the channels given by each E2 word for parameter-list GELIST. Channels given by the ith element of the first list and the ith element of the second list are not incremented, ie. the same gamma-ray is not incremented with itself.
INC GS1(GE[1].E1)
... increment the channel GE[1].E1 of spectrum GS1, where E1 is an item associated with the group GE[1].
DEC GAMSPC((GAM1+100)/2)
... decrement channel GAM1 of spectrum GAMSPC.
SET TCHECK(10) = clock.w1
... assign the data word clock.w1 to channel 10 of spectrum TCHECK.
INC MAT2D(WORDX,LISTX)
... increment channel given by the word WORDX (x-coordinate) and all valid words in word-parameter-list LISTX (y-coordinate) of 2D spectrum MAT2D.
INC ALL_GES(GELIST.E2)
... increment channel given by all valid E2 words in group-parameter-list GELIST of spectrum ALL_GES.
INC GFEX3(GAMA,GAMB,GAMC)
... increment the symmetrised cube GFEX3 at the location given by GAMA, GAMB and GAMC.

Any spectrum update attempted by a command in this sort package which falls outside the defined spectrum dimensions will be safely ignored.


support@ns.ph.liv.ac.uk

Up Next