create_mtc_device_from_dmtcd: Create MTCDevice class from Delimited MTC Data and log file

Description Usage Arguments Examples

Description

Create MTCDevice class from Delimited MTC Data and log file

Usage

1
2
create_mtc_device_from_dmtcd(file_path_dmtcd, file_path_xml, device_name,
  mtconnect_version = NULL)

Arguments

file_path_dmtcd

Path to Delimited MTC Data file

file_path_xml

Path to the XML file

device_name

Name of the device in the xml. List of all the devices and their names can be got using the get_device_info_from_xml function

mtconnect_version

Specify MTConnect Version manually. If not specified, it is inferred automatically from the data.

Examples

1
2
3
4
5
6
7
8
file_path_dmtcd = "testdata/dataExtraction/test_dmtcd.log"
file_path_xml = "testdata/dataExtraction/test_devices.xml"
device_name = "test_device"
mtc_device = create_mtc_device_from_dmtcd(
  system.file(file_path_dmtcd, package = "mtconnectR"),
  system.file(file_path_xml, package = "mtconnectR"),
  device_name)
print(summary(mtc_device))

mtconnectR documentation built on May 1, 2019, 10:38 p.m.