4 stop condition – Campbell Scientific RTDAQ Software User Manual

Page 299

Advertising
background image

Section 10. Utilities

• If the start time is a certain number of days prior to the PC

time, the file will be processed beginning at midnight of the
day specified.

NOTE

• To specify a start time in minutes from the current PC time,

you must also specify a day parameter of [-0]. Otherwise,
processing will begin at the first instance in the data file that
the minutes parameter equals the current minutes.

10.3.3.1.4 Stop Condition

The Stop Condition specifies when to stop processing data. This feature
allows segments of data to be removed from large data files. For instance, if a
data file contains one month of data and just one day is desired, the start and
stop values allow the user to get just that day’s data.

The Stop Condition is expressed with the same syntax as the Start Condition.
If the Stop Condition parameter is left blank, Split will execute until the end of
the file. As with the Start Condition, logical "and" and "or" statements can be
used when specifying the Stop Condition (Section 10.3.3.1.3), as well as
stopping based on PC time.

The array or record containing the Stop Condition is not included in the output
file. If the stop value is not found, Split will display a dialog box that gives the
option to select a new file and continue processing the data. This feature is
useful when data are contained in more than one data file.

The "Start-Stop On/After Time" function can be used with a Stop Condition.
This will stop processing of the file when the exact time is found or at the first
instance of data after that time has occurred. This option is found on the
Output tab, Other button.

The C and F commands alter the meaning of the Stop Condition.

10.3.3.1.4.1 "C" Option: Formatting Event Tests Containing Conditional Output Arrays

The C option is used to combine data from two or more conditional arrays onto
one Split output line. A conditional array is one that is only output when a
defined event occurs.

Assume that two or more conditional Output Arrays with unique Output Array
IDs compose a test period, followed by an unconditional Output Array that
defines the end of a test. The unconditional "end of test" Output Array is at the
end of each test, but the conditional Output Arrays may or may not be present.
The data file is comprised of several of these tests.

As an example, let's look at a vehicle test application. The start of the test is
when the vehicle is turned on, and the end of the test is when the vehicle is
turned off. The conditional output arrays could be:

• monitoring the engine temperature and outputting data to a unique array

when the temperature exceeds a limit

• outputting data to a unique array when the brakes are applied

10-29

Advertising