Specifications
Section 10. CRBASIC Programming Instructions
10-34
10.13 Variable Management
FindSpa
Searches a source array for a value and returns the value’s position in the array.
Syntax
FindSpa (SoughtLow, SoughtHigh, Step, Source)
Move
Moves the values in a range of variables into difference variables or fills a
range of variables with a constant.
Syntax
Move (Dest, DestReps, Source, SourceReps)
10.14 File Management
Commands to access and manage files stored in CR1000 memory.
CalFile
Stores variable data, such as sensor calibration data, from a program into a
non-volatile CR1000 memory file (CRD, CPU:drive, or USR: drive). CalFile
pre-dates and is not used with the FieldCal function.
Syntax
CalFile (Source/Dest, NumVals, "Device:filename", Option)
FileClose
Closes a FileHandle created by FileOpen.
Syntax
FileClose (FileHandle)
FileList
Returns a list of files that exist on the specified drive.
Syntax
FileList (Drive,DestinationArray)
FileManage
Manages program files from within a running datalogger program.
Syntax
FileManage ("Device: FileName", Attribute)
FileOpen
Opens an ASCII text file or a binary file for writing or reading.
Syntax
FileHandle = FileOpen ("FileName", "Mode", SeekPoint)
FileRead
Reads a file referenced by FileHandle and stores the results in a variable or
variable array.
Syntax
FileRead (FileHandle, Destination, Length)
FileReadLine
Reads a line in a file referenced by a FileHandle and stores the result in a
variable or variable array.
Syntax
FileReadLine (FileHandle, Destination, Length)