04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - 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.

Appendix A. CRBasic Programming Instructions<br />

A.7 String Functions<br />

LevelCrossing<br />

Processes data into a one‐ or two‐dimensional histogram using a level‐crossing<br />

counting algorithm.<br />

Syntax<br />

LevelCrossing(Source, DataType, DisableVar, NumLevels,<br />

2ndDim, CrossingArray, 2ndArray, Hysteresis, Option)<br />

RainFlow<br />

Processes data with the Rainflow counting algorithm, essential to estimating<br />

cumulative damage fatigue to components undergoing stress / strain cycles (see<br />

Downing S. D., Socie D. F. (1982) Simple Rainflow Counting Algorithms.<br />

International Journal of Fatigue Volume 4, Issue 1).<br />

Syntax<br />

RainFlow(Source, DataType, DisableVar, MeanBins, AmpBins,<br />

Lowlimit, Highlimit, MinAmp, Form)<br />

A.7.1 String Operations<br />

Read More! See String Operations (p. 236)<br />

& Concatenates string variables.<br />

+ Concatenates string and numeric variables.<br />

- Compares two strings, returns zero if identical.<br />

String Constants<br />

Constant strings can be used in expressions using quotation marks. For<br />

example:<br />

FirstName = "Mike"<br />

String Addition<br />

Strings can be concatenated using the '+' operator. For example:<br />

FullName = FirstName + " " + MiddleName + " " + LastName<br />

String Subtraction<br />

String1‐String2 results in an integer in the range of ‐255..+255.<br />

String Conversion to/from Numerics<br />

Conversion of strings to numerics and numerics to strings is done<br />

automatically when an assignment is made from a string to a numeric or<br />

a numeric to a string, if possible.<br />

String Comparison Operators<br />

The comparison operators =, >,= and

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

Saved successfully!

Ooh no, something went wrong!