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

NewFile<br />

Determines if a file stored on the datalogger has been updated since the<br />

instruction was last run. Typically used with image files.<br />

Syntax<br />

NewFile(NewFileVar, "FileName")<br />

RunProgram<br />

Runs a datalogger program file from the active program file.<br />

Syntax<br />

RunProgram("Device:FileName", Attrib)<br />

A.15 Data-Table Access and Management<br />

Commands to access and manage data stored in data tables, including Public and<br />

Status tables.<br />

FileMark<br />

Inserts a filemark into a data table.<br />

Syntax<br />

FileMark(TableName)<br />

GetRecord<br />

Retrieves one record from a data table and stores the results in an array. May be<br />

used with SecsSince1990().<br />

Syntax<br />

GetRecord(Dest, TableName, RecsBack)<br />

ResetTable<br />

Used to reset a data table under program control.<br />

Syntax<br />

ResetTable(TableName)<br />

SetStatus<br />

Changes the value for a setting in the datalogger Status table.<br />

Syntax<br />

SetStatus("FieldName", Value)<br />

TableName.EventCount<br />

Returns the number of data storage events that have occurred for an eventdriven<br />

data table.<br />

Syntax<br />

TableName.EventCount(1,1)<br />

TableName.FieldName<br />

Accesses a specific field from a record in a table<br />

Syntax<br />

TableName.FieldName(FieldNameIndex, RecordsBack)<br />

517

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

Saved successfully!

Ooh no, something went wrong!