beautypg.com

A.14 file management, P. 493) – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual

Page 493

background image

Appendix A. CRBasic Programming Instructions

493

 

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 CR800 memory.

CalFile 
Stores variable data, such as sensor calibration data, from a program into a non‐
volatile CR800 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)