beautypg.com

2 memory conservation, 3 memory reset, 1 full memory reset – Campbell Scientific CR200/CR200X-series Dataloggers User Manual

Page 142: 2 program send reset, 3 manual data table reset

background image

Section 12. Memory and Data Storage

12.2 Memory Conservation

One or more of the following memory saving techniques can be used on the rare

occasions when a program reaches memory limits:

Declare variables as DIM instead of Public. DIM variables do not require

buffer memory for data retrieval.

Reduce arrays to the minimum size needed. Each variable, whether or not

part of an array, requires about the same amount of memory.

Approximately 70 variables will fill available memory.

Use variable arrays with aliases instead of individual variables with unique

names. Aliases consume less memory than unique variable names.

12.3 Memory Reset

Three features are available for complete or selective reset of CR200(X)

memory.

12.3.1 Full Memory Reset

Full memory reset occurs when an operating system is sent to the CR200(X)

using DevConfig. A full memory reset does the following:

Clears and Formats CPU: drive (all program files erased)

Clears SRAM data tables

Clears Status Table Elements

Restores settings to default

Initializes system variables

Clears communications memory

12.3.2 Program Send Reset

All SRAM and CRD: data are erased when user programs are uploaded. This

will occur even when a program with identical data tables is sent to the

CR200(X).

12.3.3 Manual Data Table Reset

Data table memory is reset using the ResetTables field of the Status table.

Change the value from 0 to 8888 to reset all data tables.

130