05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

CONFIGURING DATA LOGGING<br />

THE LOGGING PROCESS<br />

most likely be different, however, each file will represent a fix length of time regardless of the<br />

number of samples.<br />

THE LOGGING PROCESS<br />

Crimson’s data logger operates using two separate processes. The first samples each data<br />

point at the rate specified in its properties, and places the logged data into a buffer within the<br />

RAM of the Master module. The second process executes every two minutes, and writes the<br />

data from RAM to the CompactFlash card. This structure has several advantages…<br />

• Writes to the CompactFlash card are guaranteed to begin only on a two-minute<br />

boundary—that is, at exactly 2, 4 or 6 minutes past the hour, and so on. This<br />

means that if your Master module supports hot-swapping of CF cards, you can<br />

wait for the next burst of writes to start, and, when the CompactFlash activity<br />

LED on the front of the Master ceases to flicker, you are guaranteed to have until<br />

the start of the next two-minute interval before further writes will be attempted.<br />

This means that you can remove the card without fear of data corruptions. As long<br />

as you insert a new card before four minutes have elapsed, no data will be lost.<br />

• Writes to the CompactFlash achieve a much higher level of performance, by<br />

avoiding the need to continually update the card’s file system data structures for<br />

every single sample. For logs configured to sample at very high data rates, the<br />

bandwidth of a typical CompactFlash card would not allow data to be written<br />

reliably in the absence of such a buffering process.<br />

Note that because data is not committed to CompactFlash for up to two minutes, up to this<br />

amount of log data may be lost when the Master is powered-down. Further, if the Master is<br />

powered-down while a write is in progress, the CompactFlash card may be corrupted. To<br />

ensure that such corruption is not permanent, the Master module uses a journaling system that<br />

caches writes to additional non-volatile memory within the Master. If the Master detects that<br />

a write was interrupted during power-down, the write will be repeated when power is<br />

reapplied, thereby reversing any corruption, and repairing the CompactFlash card.<br />

This means that if you want to remove a CompactFlash card from a Master performing data<br />

logging, you must observe the procedure described above with respect to the activity LED,<br />

and only remove power when the activity has ceased. If you are not sure if the Master was<br />

powered-down correctly, reapply power, allow a CompactFlash write sequence to complete,<br />

and power down according to the correct procedure. The card can then be removed safely.<br />

Since the gyrations required to remove a CompactFlash card are somewhat complex, Crimson<br />

provides two other mechanisms for accessing log files, thereby eliminating the need for such<br />

removals. These methods are described below.<br />

ACCESSING LOG FILES<br />

There are three additional methods of accessing log files…<br />

• The less preferable method is to mount the card as a drive on a PC via the<br />

process described at the start of this manual, so that the logs can be copied using<br />

REVISION 6 PAGE 241

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

Saved successfully!

Ooh no, something went wrong!