Campbell Scientific CR6 CR6 Measurement and Control System - Page 206
Data Output: Writing High-Frequency Data to Memory, Cards
![]() |
View all Campbell Scientific CR6 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 206 highlights
Section 7. Installation 'Program BeginProg Scan(1,Sec,0,0) '1) Read Public.TimeStamp into a LONG numeric variable. Note that TimeStamp is a ' system variable, so it is not declared. TimeLong = Public.TimeStamp(1,1) + UTC_Offset '2) Store it into a type NSEC datum in final-data memory. CallTable(TimeTable) '3) sample time to three string forms using the TableName.FieldName notation. 'Form 1: "mm/dd/yyyy hr:mm:ss UTTime(1) = TimeTable.TimeLong(1,1) 'Form 2: "dd/mm/yyyy hr:mm:ss UTTime(2) = TimeTable.TimeLong(3,1) 'Form 3: "ccyy-mm-dd hr:mm:ss (ISO 8601 Int'l Date) UTTime(3) = TimeTable.TimeLong(4,1) NextScan EndProg 7.9.11 Data Output: Writing High-Frequency Data to Memory Cards The best method for writing high-frequency time-series data to memory cards, especially in high-speed measurement applications, is usually to use the TableFile() instruction with Option 64. It supports 16 GB or smaller memory cards and permits smaller and variable file sizes. 7.9.11.1 TableFile() with Option 64 Option 64 has been added as a format option for the CRBasic instruction TableFile(). It combines the speed and efficiency of the CardOut() instruction with the flexibility of the TableFile() instruction. Memory cards1 up to 16 GB are supported. TableFile() with Option 64, TOB3 is now available in CR6 operating systems 25 or greater. TableFile() is a CRBasic instruction that creates a file from a data table in datalogger CPU memory. Option 64 directs that the file be written in TOB3 format exclusively to the CRD: drive2. Syntax for the TableFile() instruction is as follows: TableFile(FileName, Option, MaxFiles, NumRecs/ TimeIntoInterval, Interval, Units, OutStat, LastFileName) where Option is given the argument of 64. Refer to CRBasic Editor Help3 for a detailed description of each parameter. Note The CRD: drive (the drive designation for the optional memory card) is the only drive that is allowed for use with Option 64. Note Memory cards add a measure of security in guarding against data loss. However, no system is infallible. Finding a functioning memory card in the mud after a moose has trampled your weather station or a tractor has run an offset disk over your soil-moisture station may be difficult. The best rule is to collect data 206
![](/manual_guide/products/campbell-scientific-cr6-cr6-measurement-control-a476969/206.png)