1 time synchronization and the copy condition – Campbell Scientific RTDAQ Software User Manual

Page 323

Advertising
background image

Section 10. Utilities

10.3.3.1.15.1 Time Synchronization and the Copy Condition

To use the time synchronize function, time element(s) must be specified in the
Start Condition. The user must also specify a time interval in the Copy
condition. For instance, if the original data had 15 minute outputs and you
only want hourly outputs, then an interval of 60 minutes must be specified
following the element number. This is entered as (assuming hrmn is element
number 3) “3[60]”. If time synchronization is specified in the Start Condition,
Split looks for the interval in a time element in the Copy condition. Only one
time interval is specified. This interval is the unit of time to synchronize each
file.

The interval can be given tolerance limits by following the interval with a
comma and the tolerance. For example, if 3 is the hrmn element, and the time
interval is 60 minutes +/-2 minutes, the syntax is 3[60,2].

Table based data files need to use the same time format as described in Section
10.3.3.1.3. You can specify the interval for time synchronization on table files
as ::1[60]: which will give you an output interval of 60 minutes.

If the time synchronize function is enabled and data are missing at one or more
of the time intervals specified, then a blank (or the comment entered in the
“Replace bad data with” field) is output to the Output File. See Table 10.3-5.

10.3.3.1.15.2 Using Time Synchronization While Starting Relative to PC Time

Split tries to time-sync files to the top of the hour when starting relative to PC
time. If you are synchronizing files where the data output interval is not at the
top of the hour, you will need to specify an interval in the Copy Condition that
represents a window of time in which Split should look for the hour/minute.
For instance, if your data is output 50 minutes into a 60 minute interval (and
therefore, your time stamps are 50, 150, 250, 350...2350) your Start Condition
and Copy Conditions for the first file might look like the following:

Start Condition
2[-1]:3[50]:

Copy Condition
1[106]and3[60,10]

Where:

element 1 is the array ID

element 2 is the Julian day

element 3 is the hour/minute

The Start Condition directs Split to begin processing data when the time is one
day prior to the current PC time and when the hour/minute value is equal to 50.
The 1[106] in the Copy Condition specifies the array from which the data
should be copied. The 3[60,10] indicates that the interval for the time stamp is
60 minutes and designates a 10 minute time window on each side of the top of
the hour in which Split should look for the hour/minute data (10 minutes
before the hour, 10 minutes after the hour).

The second file's Copy Condition should include only the array from which to
copy the data. No interval is necessary.

10-53

Advertising