INC|DEC <spectrum-name>(<x-channel> [,<y-channel> [,<z-channel>]])INDEXED <index>
SET <spectrum-name>(<x-channel> [,<y-channel> [,<z-channel>]])INDEXED <index> = <expression>
For example, it is sometimes useful to be able to update a different spectrum for each gate number passed by a gate-map testing command. eg.
where GATE denotes the gate number passed in the gate-map GLREC by the IF...GATEDBY command . If GATE is 4 then the 3rd spectrum defined after CE132_[3] in the *SPECTRA section, ie. CE132_[6], will be incremented with the value of sortword GAM2.*SPECTRA ... CE132_[3:20] 4096 ... *COMMANDS ... IF GAM1 GATEDBY GLREC { ... INC CE132_(GAM2) INDEXED GATE ... }
It is also possible to use this feature to increment a spectrum according to the group number of a word, eg.
where $GROUPX denotes the group number passed in the parameter list $GELIST.INC CE132_($GROUPA=GELIST.E2) INDEXED $GROUPA