Size

Defines the number of records (or rows) that should be allocated for the DataTable. The number of values (or columns) in the DataTable is determined by the output processing instructions contained in the DataTable declaration. Size can be defined as a fixed number of records or as auto-allocate. To set the table size to a fixed number of records, enter that value. To set the size to autoallocate, enter a -1. If a table is set to auto-allocate, all memory that remains after creating fixed-sized tables will be allocated to this table. If multiple DataTables are declared with a -1 for size, the available memory will be divided among the tables. The datalogger attempts to allocate memory to the tables so that all tables are filled at the same time. By default, data storage memory sectors are organized as ring memory. When the ring is full, oldest data are overwritten by newest data. Using the FillStop statement sets a program to stop writing to the data table when it is full, and no more data are stored until the table is reset.

For the CardOut instruction, enter -1000 to set the size of the data table on the card to the size of the data table in datalogger memory.

NOTE:  For extended-memory dataloggers, auto-allocated data tables are written automatically to the extended internal memory (72 MB) unless CardOut() or Tablefile() is used. When CardOut() or Tablefile() is used, data is streamed from the CPU to the card in 1 KB frames, and the extended internal memory is not utilized. As a result, on extended-memory dataloggers, auto-allocated table fill times on the CPU are longer if CardOut() or Tablefile() is not used. However, total final data storage is greatly increased with external memory, allowing up to 2 GB per table. To check whether a datalogger has extended internal memory, view the CPU Bytes Free in File Control. Dataloggers with extended internal memory display approximately 30 MB Bytes Free for an empty CPU, compared to about 1 MB Bytes Free for dataloggers without extended internal memory.

Type: Constant (or expression that evaluates as a constant)