Specifications
Section 10. CRBASIC Programming Instructions
10-35
FileRename
Changes the name of file on the CR1000’s CPU:, USR:, or CRD: drives.
Syntax
FileRename(drive:OldFileName, drive:NewFileName)
FileSize
Returns the size of the file in the previously opened file referenced by the
FileHandle parameter.
Syntax
FileSize(FileHandle)
FileTime
Returns the time the file specified by the FileHandle was created.
Syntax
Variable = FileTime(FileHandle)
FileWrite
Writes ASCII or binary data to a file referenced in the program by FileHandle.
Syntax
FileWrite (FileHandle, Source, Length)
Include
Inserts code from a file (Filename) at the position of the Include() instruction at
compile time. Include cannot be nested.
Syntax
Include ("Device:Filename")
NewFile
Determines if a file stored on the datalogger has been updated since the
instruction was last run. Typically used with image files.
Syntax
NewFile (NewFileVar, “FileName”)
RunProgram
Runs a datalogger program file from the active program file.
Syntax
RunProgram ("Device:FileName", Attrib)
10.15 Data Table Access and Management
Commands to access and manage data stored in data tables, including Public
and Status tables.
FileMark
Inserts a filemark into a data table.
Syntax
FileMark (TableName)
GetRecord
Retrieves one record from a data table and stores the results in an array.
Syntax
GetRecord (Dest, TableName, RecsBack)