1 =History and Collector in Charts and Trends=
\r
2 There is a specified way how trend manages the items in the history.
\r
3 The "id"-field of an history item has the following format: "subscriptionId-variableId-formatId".
\r
4 Therefore the files are named in the same notation (appended with the different extensions ".data", ".txt", ".index").
\r
6 The trend's history item format has the following record:
\r
9 variableId : String, // Simantics RVI
\r
11 deadband : Double, // NaN = No deadband
\r
16 groupId : String, // Subscription Id
\r
17 groupItemId : String, // Subscription Item Id
\r
18 formatId : String // One of: "all", "100ms", "1s", "10s", "60s", or "minmax"
\r
22 Each datasource variable is sampled into 5-6 separated files with different interval.
\r
23 The sampling formats are named. Some formats may be omited if subscription configuration suggests so. For example, if "subscription interval = 250ms" then, the files "all" and "100ms" are omited.
\r
24 {| border="1" cellpadding="3" cellspacing="0" align="center"
\r
25 |- style="background-color: #f9f9f9;"
\r
26 |'''SamplingFormat-Id'''
\r
30 |All datasource samples are stored here.
\r
33 |Samples are written with (atleast) 100ms interval.
\r
36 |Samples are written with (atleast) 1000ms interval.
\r
39 |Samples are written with (atleast) 10000ms interval.
\r
42 |Samples are written with (atleast) 60000ms interval.
\r
45 |File contains only one sample and it has fields { time, value, endTime, min, max }. Not used for with binary variable.
\r
48 The file format for analog variables is the following:
\r
49 {| border="1" cellpadding="3" cellspacing="0" align="center"
\r
50 |- style="background-color: #f9f9f9;"
\r
51 |'''SamplingFormat-Id'''
\r
52 |'''Sample RecordType'''
\r
55 |{ time:Double, endTime:Double, value:Double, quality:Byte }
\r
58 |{ time:Double, endTime:Double, value:Double, min:Double, max:Double, avg:Double, quality:Byte }
\r
61 |{ time:Double, endTime:Double, value:Double, min:Double, max:Double, avg:Double, quality:Byte }
\r
64 |{ time:Double, endTime:Double, value:Double, min:Double, max:Double, avg:Double, quality:Byte }
\r
67 |{ time:Double, endTime:Double, value:Double, min:Double, max:Double, avg:Double, quality:Byte }
\r
70 |{ time:Double, endTime:Double, value:Double, min:Double, max:Double }
\r
73 The file format for binary variables is the following:
\r
74 {| border="1" cellpadding="3" cellspacing="0" align="center"
\r
75 |- style="background-color: #f9f9f9;"
\r
76 |'''SamplingFormat-Id'''
\r
77 |'''Sample RecordType'''
\r
80 |{ time:Double, endTime:Double, value:Byte, quality:Byte }
\r
83 |{ time:Double, endTime:Double, value:Byte, max:Byte, quality:Byte }
\r
86 |{ time:Double, endTime:Double, value:Byte, max:Byte, quality:Byte }
\r
89 |{ time:Double, endTime:Double, value:Byte, max:Byte, quality:Byte }
\r
92 |{ time:Double, endTime:Double, value:Byte, max:Byte, quality:Byte }
\r