D. Archive/History
==================
The archived data points for a given device.
Given as a table of timestamped values, containing a rectangular matrix of 5 arrays:
Columns:
i) the values (double)
ii) the times as strings "dd-mmm-yyyy hh:mm:ss" (matlab dateform '0', suitable for datenum);
iii) repeat count;
iv) the times as numeric timestamps in UNIX system time format
v) the pulse id;
vi) the count (1 for a scalar and greater than 1 for a waveform-- count may be used to index into the values array for waveforms to extract the waveform values for each sample
vii) a flag indicating whether the times represent Daylight Savings Time.
For example see [3].
-------------------------------------------------
This sends the entire archive data. The server should be able to compress this into a statistical sample. I would propose:
for each sample
sample start time - in unix gmt (should convert to ascii in the client side)
number of samples
first value
last value
mean
high
low
first standard deviation
--------------------------------------------------
|