Appendix A. CRBasic Programming Instructions
493
FindSpa
Searchesasourcearrayforavalueandreturnsthevalue'spositioninthearray.
Syntax
FindSpa(SoughtLow, SoughtHigh, Step, Source)
Move
Movesthevaluesinarangeofvariablesintodifferentvariablesorfillsarangeof
variableswithaconstant.
Syntax
Move(Dest, DestReps, Source, SourceReps)
A.14 File Management
Commands to access and manage files stored in CR800 memory.
CalFile
Storesvariabledata,suchassensorcalibrationdata,fromaprogramintoanon‐
volatileCR800memoryfile.CalFilepre‐datesandisnotusedwiththeFieldCal
function.
Syntax
CalFile(Source/Dest, NumVals, "Device:filename", Option)
Encryption
Encrypts/decryptsamessage(stringvariable)sharedbetweentwodevices.
Syntax
Result = Encryption(Dest, Source, SourceLen, Key, Action)
FileCopy
Copiesafilefromonedrivetoanother.
Syntax
FileCopy(FromFileName, ToFileName)
FileClose
ClosesaFileHandlecreatedbyFileOpen.
Syntax
FileClose(FileHandle)
FileEncrypt
Performsanencryptingalgorithmonthefile.AllowsdistributionofCRBasicfiles
withoutexposingsourcecode.
Syntax
Boolean Variable = FileEncrypt(FileName)
FileList
Returnsalistoffilesthatexistonthespecifieddrive.
Syntax
FileList(Drive,DestinationArray)