A.14 file management – Campbell Scientific CR1000 Measurement and Control System User Manual
Page 515

Appendix A. CRBasic Programming Instructions
515
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 different variables or fills a range of
variables with a constant.
Syntax
Move(Dest, DestReps, Source, SourceReps)
A.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. CalFile pre‐dates and is not used with the FieldCal
function.
Syntax
CalFile(Source/Dest, NumVals, "Device:filename", Option)
Encryption
Encrypts / decrypts a message (string variable) shared between two devices.
Syntax
Result = Encryption(Dest, Source, SourceLen, Key, Action)
FileCopy
Copies a file from one drive to another.
Syntax
FileCopy(FromFileName, ToFileName)
FileClose
Closes a FileHandle created by FileOpen.
Syntax
FileClose(FileHandle)
FileEncrypt
Performs an encrypting algorithm on the file. Allows distribution of CRBasic files
without exposing source code.
Syntax
Boolean Variable = FileEncrypt(FileName)
FileList
Returns a list of files that exist on the specified drive.
Syntax
FileList(Drive,DestinationArray)