<?xml version="1.0"?>
<Result>
<mydatalog4data id="F000002200000282" >
<ch1>0,0000</ch1>
</mydatalog4data>
</Result>
mydatalog4data
Not relevant for the data import. However, it is recommended to use the relevant table
identifier.
id
Unique identification number of the data record that is going to be modified
ch1
Value to which the measurement value of channel 1 should be changed
10.4.3.2 Importing data
The
id="0"
attribute must be specified if a new data record is going be created. The time stamp for
the data record can be determined using the
stamp
attribute. It must be ensured that the time
stamp of the data is always in ascending order. The
stamp
attribute can also be omitted. In this
case, the current time is used as the time stamp for the data record. The default values of the
myDatanet server are used for all of the elements that are not specified in the XML file when creating
a new data record. The
tag
element is a mandatory field and specifies the table in which the data
record is saved. The link between the data record and the site (if the data record is saved in one of
the tables assigned to the site) or the device (if the data record is saved in one of the tables
assigned to the device) is specified via the
context
element. This relates to the unique data record
identification number (
id
) of the site or device. The attributes (
title
,
units
,
calc
, etc.) are not
relevant for the data import and can be omitted.
Note: Formats (comma, date format, etc.) are adopted from the user or server settings.
Site to which the data record should be linked:
<Result>
<mydatalog4id id="A1526911CF9CCAA0" stamp="13.2.2013 10:00:54" >
<tag> FFFF2700 </tag>
<name title="Name"> Site1 </name>
:
:
</mydatalog4id>
</Result>
XML file:
<?xml version="1.0"?>
<Result>
<mydatalog4data id="0" stamp="16.1.2013 09:00">
<ch1>0</ch1>
<tag>00002700</tag>
<context>A1526911CF9CCAA0</context>
</mydatalog4data>
</Result>
108
Rev. 01