
Appendix A. CRBasic Programming Instructions
495
NewFile
Determinesifafilestoredonthedataloggerhasbeenupdatedsincethe
instructionwaslastrun.Typicallyusedwithimagefiles.
Syntax
NewFile(NewFileVar, "FileName")
RunProgram
Runsadataloggerprogramfilefromtheactiveprogramfile.
Syntax
RunProgram("Device:FileName", Attrib)
A.15 Data-Table Access and Management
Commands to access and manage data stored in data tables, including Public and
Status tables.
FileMark
Insertsafilemarkintoadatatable.
Syntax
FileMark(TableName)
GetRecord
Retrievesonerecordfromadatatableandstorestheresultsinanarray.Maybe
usedwithSecsSince1990().
Syntax
GetRecord(Dest, TableName, RecsBack)
ResetTable
Usedtoresetadatatableunderprogramcontrol.
Syntax
ResetTable(TableName)
SetStatus
ChangesthevalueforasettinginthedataloggerStatustable.
Syntax
SetStatus("FieldName", Value)
TableName.EventCount
Returnsthenumberofdatastorageeventsthathaveoccurredforanevent‐
drivendatatable.
Syntax
TableName.EventCount(1,1)
TableName.FieldName
Accessesaspecificfieldfromarecordinatable
Syntax
TableName.FieldName(FieldNameIndex, RecordsBack)
Komentáře k této Příručce