Specifications
Section 12. Memory and Data Storage
12-6
Filemanage() command is used within the CRBASIC program to remove files
from the USR: drive. Files are managed manually using the File Control tool
in LoggerNet. Files are collected by remote ftp connections (where there is a
TCP/IP connection to the logger), manually using the file control tool in
LoggerNet, or automatically using the LNCMD program supplied with
LoggerNet.
Two status table registers are used to monitor use and size of the USR: drive.
Bytes remaining are indicated in register “USRDriveFree.” Total size is
indicated in register “USRDriveSize.” Memory allocated to USR: drive, less
overhead for directory use, is shown in LoggerNet | Connect | File Control.
12.4 Memory Conservation
Each public variable in a CRBASIC program uses a little more than 200 bytes
of memory. Memory intensive programs may need to employ one or more of
the following memory saving techniques:
• Declaring variables using DIM instead of PUBLIC saves memory since
DIM variables do not require buffer allocation for data retrieval.
• Reduce arrays to the minimum size needed. Each variable, whether or not
part of an array, requires ≈250 fixed bytes of memory. Approximately 720
variables will fill all available memory.
• String concatenation should be confined to DIM variables when possible.
• Use variable arrays with aliases instead of individual Public statements for
unique names. Aliases consume less memory than unique variable names.
• Dimension string variables only to the size required by the program.
12.5 Memory Reset
CR1000 memory can be reset by entering 98765 in the status table field
“FullMemReset.” Memory reset performs the following functions:
Formats CPU:
Restores all settings to default
Initializes system variables
Clears all comms memory
12.6 File Control
Files in CR1000 memory (program, data, CAL, image) can be managed or
controlled with Campbell Scientific support software as summarized in
TABLE 12.6-1.