04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 8. Operation<br />

<strong>Campbell</strong> <strong>Scientific</strong> CF card modules connect to the <strong>CR1000</strong> peripheral port.<br />

Each has a slot for Type I or Type II CF cards. A maximum of 30 data tables can<br />

be created on a CF card. Refer to Writing High-Frequency Data to CF Cards (p.<br />

266) for information on programming the <strong>CR1000</strong> to use CF cards. Refer to the<br />

appendix Card-Storage Modules for information on available CF-card modules.<br />

Note CardConvert software, included with mid- and top-level datalogger support<br />

software (p. 399, p. 451), converts binary card data to the standard <strong>Campbell</strong> <strong>Scientific</strong><br />

data format.<br />

When a data table is sent to a CF card, a data table of the same name in SRAM is<br />

used as a buffer for transferring data to the card. When the card is present, the<br />

Status table will show the size of the table on the card. If the card is removed, the<br />

size of the table in SRAM is shown.<br />

When a new program is compiled that sends data to the CF card, the <strong>CR1000</strong><br />

checks if a card is present and if the card has adequate space for the data tables. If<br />

no card is present, or if space is inadequate, the <strong>CR1000</strong> will warn that the card is<br />

not being used. However, the user program runs anyway and data are stored to<br />

SRAM. When a card is inserted later, data accumulated in the SRAM table are<br />

copied to the CF card.<br />

Formatting CF Cards<br />

The <strong>CR1000</strong> accepts cards formatted as FAT or FAT32; however, FAT32 is<br />

recommended. Otherwise, some functionality, such as the ability to manage large<br />

numbers of files (>254) is lost. Older <strong>CR1000</strong> operating systems formatted cards<br />

as FAT or FAT32. Newer operating systems always format cards as FAT32.<br />

To save time, use a PC to format CF cards. After formatting the card, write any<br />

file to the card, then delete the file. This action sets up the card for faster initial<br />

use.<br />

FAT32 uses an “info sector” to store the free cluster information. This info sector<br />

prevents the need to repeatedly traverse the FAT for the bytes free information.<br />

After a card is formatted by a PC, the info sector is not automatically updated.<br />

Therefore, when the datalogger boots up, it must determine the bytes available on<br />

the card prior to loading the Status table. Traversing the entire FAT of a 16 GB<br />

card can take up to 30 minutes or more. However, subsequent compile times are<br />

much shorter because the info sector is used to update the bytes free information.<br />

To avoid long compile times on a freshly formatted card, format the card on a PC,<br />

then copy a small file to the card, and then delete the file (while still in the PC).<br />

Copying the file to the freshly formatted card forces the PC to update the info<br />

sector. The PC is much faster than the datalogger at updating the info sector.<br />

8.3.1.1.6 Data File Formats<br />

TableFile() instruction data-file formats contain time-series data and may have an<br />

option to include header, time stamp and record number. Table TableFile()-<br />

Instruction Data-File Formats (p. 336) lists available formats. For a format to be<br />

compatible with datalogger support software (p. 77) graphing and reporting tools,<br />

header, timestamps, and record numbers are usually required. Fully compatible<br />

formats are indicated with an asterisk. A more detailed discussion of data file<br />

formats is available in the <strong>Campbell</strong> <strong>Scientific</strong> publication LoggerNet Instruction<br />

<strong>Manual</strong> available at www.campbellsci.com.<br />

335

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

Saved successfully!

Ooh no, something went wrong!