Prev Up Next
Go backward to Goto command
Go up to *COMMANDS
Go forward to Gain command

Arithmetic operations


<sortword> = <expression>



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



where <expression> is:

<operand> [<operator> <operand>]r

<operand> is either:

<sortword> eg. GELI1, SUMEN, GE[41].BGO1

<constant> eg. 5, @FF, 64.983

and <x-channel>, <y-channel> and <z-channel> may each be:

<sortword>

<integer constant>


Evaluated expressions may be assigned to a sortword variable, ie. a word, long or float type variable.

C precedence determines the order in which operations are performed in the absence of parentheses. Up to 6 nested pairs of parentheses are allowed.

A floating point randomised value in the range 0.0 to 1.0 may be obtained by specifying the reserved float variable RANDOM. A random integer value in the range 0 to 32767 may be accessed using the reserved word IRANDOM.

  • Operations
  • Maths functions
  • Other functions

  • support@ns.ph.liv.ac.uk

    Prev Up Next