04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A. CRBasic Programming Instructions<br />

A.8 Clock Functions<br />

StrComp<br />

Compares two strings by subtracting the characters in one string from the<br />

characters in another<br />

Syntax<br />

Variable = StrComp(String1, String2)<br />

SplitStr<br />

Splits out one or more strings or numeric variables from an existing string.<br />

Syntax<br />

SplitStr(SplitResult, SearchString, FilterString, NumSplit,<br />

SplitOption)<br />

SPrintF<br />

Converts data to formatted strings. Returns length of formatted string. Replaces<br />

FormatFloat() and FormatLong().<br />

Syntax<br />

length = SPrintF(Destination, format,...)<br />

Trim<br />

Returns a copy of a string with no leading or trailing spaces.<br />

Syntax<br />

variable = Trim(TrimString)<br />

UpperCase<br />

Converts a string to all uppercase characters<br />

Syntax<br />

String = UpperCase(SourceString)<br />

Within the <strong>CR1000</strong>, time is stored as integer seconds and nanoseconds into the<br />

second since midnight, January 1, 1990.<br />

ClockChange<br />

Returns milliseconds of clock change due to any setting of the clock that<br />

occurred since the last execution of ClockChange.<br />

Syntax<br />

variable = ClockChange<br />

ClockReport<br />

Sends the datalogger clock value to a remote datalogger in the PakBus network.<br />

Syntax<br />

ClockReport(ComPort, RouterAddr, PakBusAddr)<br />

ClockSet<br />

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

Syntax<br />

ClockSet(Source)<br />

505

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

Saved successfully!

Ooh no, something went wrong!