readLogger_PCE_TDS100: Read Logger File from PCE TDS100

View source: R/logger_PCE_TDS100.R

readLogger_PCE_TDS100R Documentation

Read Logger File from PCE TDS100

Description

Read logger file of flow meter TDS 100 by PCE Deutschland GmbH

Usage

readLogger_PCE_TDS100(txt, timeformat = .defaultTimeFormat("v3"))

Arguments

txt

full path to text file generated by logger

timeformat

Date and time format used in the file. Default: "%y-%m-%d %H:%M:%S"

Value

data frame with columns tstamp, flow, flowunit, vel, velunit, UP, DN, Q. Duplicate lines are removed. The data frame has an attribute metadata containing the meta data of the file, as returned by .getMetadata

References

http://www.warensortiment.de/bedienung/ba_durchflussmessgeraet-pce-tds100h_de-v-1-1.pdf

http://www.industrial-needs.com/manual/manual-pce-tds-100h.pdf

Examples

## Not run: 
# set path to example file (contained in this package)
file_1 <- extdataFile("PCE/example_PCE_TDS100.log")
file_2 <- extdataFile("PCE/example_PCE_TDS100_noMeta.log")

# read a file containing metadata
x1 <- readLogger_PCE_TDS100(file_1) # warnings about duplicate timestamps
  
# read a file not containing metadata
x2 <- readLogger_PCE_TDS100(file_2) # warning about missing meta data
  
# examine the structures of the results
str(x1)
str(x2)
  
# get meta data from attribute "metadata"
kwb.utils::getAttribute(x1, "metadata")

## End(Not run)


KWB-R/kwb.logger documentation built on June 18, 2022, 1:49 a.m.