04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 8. Operation<br />

CRD:<br />

Principal use is to expand Final Storage (p.<br />

454), but it is also used to store .JPG, cr1, and<br />

.DAT files.<br />

1 The CPU: drive uses a FAT16 file system, so it is limited to 128 file. If the file names are longer<br />

than 8.3 characters (e.g. 12345678.123), you can store less.<br />

2 The USR: drive uses a FAT32 file system, so there is no practical limit to the number of files that<br />

can be stored on it. While a FAT file system is subject to fragmentation, performance degradation<br />

is not likely to be noticed since the drive is small and solid state RAM (very fast access).<br />

8.3.1.1.1 Data Table SRAM<br />

8.3.1.1.2 CPU: Drive<br />

8.3.1.1.3 USR: Drive<br />

Primary storage for measurement data are those areas in SRAM allocated to data<br />

tables as detailed in table <strong>CR1000</strong> SRAM Memory (p. 331). Measurement data can<br />

be also be stored as discrete files on USR: or USB: by using TableFile()<br />

instruction.<br />

The <strong>CR1000</strong> can be programmed to store each measurement or, more commonly,<br />

to store processed values such as averages, maxima, minima, histograms, FFTs,<br />

etc. Data are stored periodically or conditionally in data tables in SRAM as<br />

directed by the CRBasic program (see Structure (p. 112) ). The DataTable()<br />

instruction allows the user to set the size of a data table. Discrete data files are<br />

normally created only on a PC when data are retrieved using datalogger support<br />

software (p. 77).<br />

Data are usually erased from this area when a program is sent to the <strong>CR1000</strong>.<br />

However, when using support software File Control menu Send (p. 454) command<br />

or CRBasic Editor Compile, Save and Send (p. 451) command, options are<br />

available to preserve data when downloading programs.<br />

CPU: is the default drive on which programs and calibration files are stored. Do<br />

not store data on CPU: or premature failure of CPU: memory may result.<br />

SRAM can be partitioned to create a FAT32 USR: drive, analogous to partitioning<br />

a second drive on a PC hard disk. Certain types of files are stored to USR: to<br />

reserve limited CPU: memory for datalogger programs and calibration files.<br />

Partitioning also helps prevent interference from data table SRAM. USR: is<br />

configured using DevConfig settings or SetStatus() instruction in a CRBasic<br />

program. Partition USR: drive to at least 11264 bytes in 512-byte increments. If<br />

the value entered is not a multiple of 512 bytes, the size is rounded up. Maximum<br />

size of USR: is the total RAM size less 400 kB; i.e., for a <strong>CR1000</strong> with 4-MB<br />

memory, the maximum size of USR: is about 3.6 MB.<br />

USR: is not affected by program recompilation or formatting of other drives. It<br />

will only be reset if the USR: drive is formatted, a new operating system is<br />

loaded, or the size of USR: is changed. USR: size is changed manually using the<br />

external keyboard / display or by loading a program with a different USR: size<br />

entered in a SetStatus() instruction.<br />

Measurement data can be stored on USR: as discrete files by using the<br />

TableFile() instruction. Table TableFile()-Instruction Data-File Formats (p. 336)<br />

describes available data-file formats.<br />

333

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!