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 />

ReadOnly<br />

Flags a comma separated list of variables (Public or Alias name) as read‐only.<br />

Syntax<br />

ReadOnly [variable1, variable2, ...]<br />

Units<br />

Assigns a unit name to a field associated with a variable.<br />

Syntax<br />

Units [variable] = [unit name]<br />

A.1.2 Constant Declarations<br />

A.2 Data-Table Declarations<br />

Const<br />

Declares symbolic constants for use in place of numeric entries.<br />

Syntax<br />

Const [constant name] = [value or expression]<br />

ConstTable / EndConstTable<br />

Declares constants, the value of which can be changed using the external<br />

keyboard / display or terminal C option. The program is recompiled with the new<br />

values when values change. See Constants (p. 122).<br />

Syntax<br />

ConstTable<br />

[constant a] = [value]<br />

[constant b] = [value]<br />

[constant c] = [value]<br />

EndConstTable<br />

DataTable / EndTable<br />

Mark the beginning and end of a data table.<br />

Syntax<br />

DataTable(Name, TrigVar, Size)<br />

[data table modifiers]<br />

[on-line storage destinations]<br />

[output processing instructions]<br />

EndTable<br />

DataTime<br />

Declaration within a data table that allows time stamping with system time.<br />

Syntax<br />

DataTime(Option)<br />

A.2.1 Data-Table Modifiers<br />

DataEvent<br />

Sets triggers to start and stop storing records within a table. One application is<br />

with WorstCase.<br />

Syntax<br />

DataEvent(RecsBefore, StartTrig, StopTrig, RecsAfter)<br />

475

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

Saved successfully!

Ooh no, something went wrong!