beautypg.com

6 other functions, 7 clock functions – Campbell Scientific CR200/CR200X-series Dataloggers User Manual

Page 116

background image

Section 10. CRBASIC Programming Instructions

MinSpa

Finds the minimum value in an array.

Syntax

MinSpa (Dest, Swath, Source)

RMSSpa

Computes the RMS (root mean square) value of an array.

Syntax

RMSSpa (Dest, Swath, Source)

StdDevSpa

Used to find the standard deviation of an array.

Syntax

StdDevSpa (Dest, Swath, Source)

10.6.6 Other Functions

Randomize

Initializes the random-number generator.

Syntax

Randomize (source)

RND

Generates a random number.

Syntax

RND (source)

10.7 Clock Functions

ClockSet

Sets the datalogger clock from the values in an array

Syntax

ClockSet (Source)

IfTime

Returns a number indicating True (-1) or False (0) based on the datalogger's

real-time clock.

Syntax

If (IfTime (TintoInt, Interval, Units)) Then

-or-

Variable = IfTime (TintoInt, Interval, Units)

RealTime

Parses year, month, day, hour, minute, second, micro-second, day of week,

and/or day of year from the datalogger clock.

Syntax

RealTime (Dest)

Ticker250ms

Stores the running total of a 250ms system timer.

Syntax

Ticker250ms (Destination)

104