07.01.2015 Views

CR200/CR200X Series Dataloggers - Campbell Scientific

CR200/CR200X Series Dataloggers - Campbell Scientific

CR200/CR200X Series Dataloggers - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 10. CRBASIC Programming Instructions<br />

MinSpa<br />

Finds the minimum value in an array.<br />

Syntax<br />

MinSpa (Dest, Swath, Source)<br />

RMSSpa<br />

Computes the RMS (root mean square) value of an array.<br />

Syntax<br />

RMSSpa (Dest, Swath, Source)<br />

StdDevSpa<br />

Used to find the standard deviation of an array.<br />

Syntax<br />

StdDevSpa (Dest, Swath, Source)<br />

10.6.6 Other Functions<br />

Randomize<br />

Initializes the random-number generator.<br />

Syntax<br />

Randomize (source)<br />

RND<br />

Generates a random number.<br />

Syntax<br />

RND (source)<br />

10.7 Clock Functions<br />

ClockSet<br />

Sets the datalogger clock from the values in an array<br />

Syntax<br />

ClockSet (Source)<br />

IfTime<br />

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

real-time clock.<br />

Syntax<br />

If (IfTime (TintoInt, Interval, Units)) Then<br />

-or-<br />

Variable = IfTime (TintoInt, Interval, Units)<br />

RealTime<br />

Parses year, month, day, hour, minute, second, micro-second, day of week,<br />

and/or day of year from the datalogger clock.<br />

Syntax<br />

RealTime (Dest)<br />

Ticker250ms<br />

Stores the running total of a 250ms system timer.<br />

Syntax<br />

Ticker250ms (Destination)<br />

104

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!