4 stop condition, Stop condition -49 – Campbell Scientific LoggerNet Datalogger Support Software User Manual

Page 347

Advertising
background image

Section 8. Working with Data Files on the PC

8.2.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 8.2.3.1.3, Start Condition),

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.

8.2.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

outputting data when engine RPM exceeds a limit

The unconditional array data (the stop condition) would be output to a unique

array when the engine is turned off. By processing the data with Split using the

C option, the data collected during each test could be merged on to one line,

with blanks inserted if a set of data didn’t exist (e.g., if the engine temperature

never exceeded the defined limit).

An Input File must be set up for each array ID in the test. The first Input

File is configured on the Input File tab that appears when you open Split.

Additional Input Files are added by choosing Edit | Add Data File from the

8-49

Advertising