
Section 6. Data Table Declarations and Output Processing Instructions
6-17
the datalogger will determine how many fields are created. If the list of names
is greater than the number of fields, the extra names are ignored. If the number
of fields is greater than the number names in the list of field names, the default
names are used for the remaining fields.
Examples
Sample(4, Temp(1), IEEE4)
FieldNames “IntakeT, CoolerT, PlenumT, ExhaustT”
The 4 values from the variable array temp are stored in the output table with
the names IntakeT, CoolerT, PlenumT, and ExhaustT.
Sample(4, Temp(1), IEEE4)
FieldNames “IntakeT, CoolerT”
The 4 values from the variable array Temp are stored in the output table with 2
individual names and the remainder of the default array Temp:
IntakeT, CoolerT, Temp(3), and Temp(4),
Sample(4, Temp(1), IEEE4)
FieldNames “IntakeT(2)”
The 4 values from the variable array Temp are stored in the output table with
IntakeT,an array of 2, and the remainder of the default array Temp:
IntakeT(1), IntakeT(2), Temp(3), and Temp(4),
Histogram (BinSelect, DataType, DisableVar, Bins, Form, WtVal, LoLim,
UpLim)
Processes input data as either a standard histogram (frequency distribution) or
a weighted value histogram.
The standard histogram counts the time that the bin select variable is within a
particular sub-range of its specified range. The count in a bin is incremented
whenever the bin select input falls within the sub-range associated with the
bin. The value that is output to the data table for each bin can either be the
accumulated total count for each bin or a relative fraction of time computed by
dividing the accumulated total in each bin by the total number of scans. This
form of output is also referred to as a frequency distribution.
The weighted value histogram does not add a constant to the bin but instead
adds the current value of a variable. That variable name is entered as the
weighted value. Each time the instruction is executed, the weighted value is
added to a bin. The sub-range that the bin select value is in determines the bin
to which the weighted value is added. When the histogram is output, the value
accumulated in each bin can be output or the totals can be divided by the
TOTAL number of input scans and then output. These values are the
contributions of the sub-ranges to the overall weighted value. A common use
of a closed form weighted value histogram is the wind speed rose. Wind speed
values (the weighted value input) are accumulated into corresponding direction
sectors (bin select input).
Comentarios a estos manuales