5 copy – Campbell Scientific RTDAQ Software User Manual

Page 302

Advertising
background image

Section 10. Utilities

processed that have a Stop Condition specified. If multiple files are being
processed but it is desired that the function affect one or more

⎯but not all⎯of

the files, the F option is used in the Stop Condition field of the files that you
want processed using the function. The syntax for the F option is: F,e

i

[val

i

].

A typical application for the Trigger on Stop Condition is to reduce days of
hourly data into daily summaries. A logical element to use for the Stop
Condition is time (hrmn). Assuming the third element of the hourly Output
Array is hrmn, and midnight is output as 0, the Stop Condition is entered as
3[0] (or F,3[0] if the F option is used). The Time Series processing is
performed over a day defined by midnight to midnight.

If only hourly Output Arrays were contained in the Input File, the Copy line
could be left blank. If other Output Arrays are present which need not be
included in the Time Series processing, a logical Copy condition would be the
Output Array ID of the hourly output.

The Trigger on Stop Condition functions the same for multiple Input files as it
does for a single Input File. If the option is enabled on several Input Files, and
the Stop Conditions do not occur at the same point in each file, when a file's
Stop Condition is met, its time series data are output and blanks are output for
data selected from the other Input Files.

Say, for example, that you were interested in the average value of the first data
point (element 2) for each test, in the data set listed in Table 10.3-2. The Input
File template would look like that shown in Table 10.3-4.

TABLE 10.3-4. Input File Entries to Process the

First Data Point for each Test

First Input File = DATA_1.DAT:1

Stop Condition = F,1[200]

Select

=

AVG(2)

10.3.3.1.5 Copy

The Copy Condition tells Split which arrays should be used for the output data.
After the Start Condition is satisfied, and before the Stop Condition is met, the
Copy condition must be satisfied before any data will be processed according
to Select line instructions. If the Copy condition is left blank, all arrays are
processed between the Start and Stop values. Syntax for the Copy condition is
similar to the Start and Stop values mentioned above. Logical "and" and "or"
statements (see Section 10.3.3.1.3) can be used when specifying the Copy
condition.

For example, referring to Table 10.3-1, if only those hours during day 189
when the temperature was above 90 and the soil temperature was below 62 is
desired, or, during day 189 when the average wind speed was below 21 while
the wind direction was between 255 to 265 is desired, the Copy condition
would be:

1[189]and4[90..150]and5[0..61.99]or1[189]and6[0..20.99]and7[255..265]

10-32

Advertising