Commands and functions – Xylem STORM 3 Basic Programming manual User Manual
Page 22

Returns a sensor’s most recent raw/unprocessed value. A raw value is the value of a
measurement prior to slope, offset, function or digits are applied to it. If an unknown sensor
is specified, the Error String (default is -99.99) is returned. Prior raw values can be returned
by adding an additional numerical parameter. The number 1 indicates the most recent
measurement, 2 the previous measurement, 3 the value processed three scans prior, etc.
Values from SDI-12 or Basic programs are retrieved by specifying the name of the sensor
followed by the parameter’s name surrounded by parentheses.
GETVALUE SENSORRAW “H-377”, temp$
GETVALUE SENSORRAW “H-340SDI(Rainfall)”, stage$
GETVALUE SENSORRAW “H-340SDI(Rainfall)” 2, previous_stage$
20
COMMANDS AND FUNCTIONS
SENSORRAW
Returns a sensor’s function, specified by the Use Function option under the Processing
section of the Storm’s Sensor Setup screen. If an unknown sensor is specified, an N/A is
returned. Functions from SDI-12 or Basic programs are retrieved by specifying the name of
the sensor followed by the parameter’s name surrounded by parentheses. See SetValue to
change the function of a sensor.
GETVALUE SENSORFUNCTION “H-377”, temp$
GETVALUE SENSORFUNCTION “H-340SDI(Rainfall)”, stage$
SENSORFUNCTION
Returns a new voltage measurement of the attached battery.
GETVALUE SYSBATT, b$
REM sets b$ to the voltage of +12V
SYSBATT
Returns a temperature reading of the internal temperature sensor. The value is returned in
degrees Celsius.
GETVALUE SYSTEMP, t$
REM sets t$ to the internal temperature
SYSTEMP