Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  23 Mar 2021, Lars Martin, Bug Report, Time shift in history CSV export Cooling-MoxaCalib-20212118-190450-20212119-102151.pngScreenshot_from_2021-03-23_12-29-21.png
    Reply  23 Mar 2021, Lars Martin, Bug Report, Time shift in history CSV export 
       Reply  23 Mar 2021, Lars Martin, Bug Report, Time shift in history CSV export 
          Reply  24 Mar 2021, Stefan Ritt, Bug Report, Time shift in history CSV export 
             Reply  24 Mar 2021, Lars Martin, Bug Report, Time shift in history CSV export 
                Reply  14 Apr 2021, Stefan Ritt, Bug Report, Time shift in history CSV export 
Message ID: 2135     Entry time: 24 Mar 2021     In reply to: 2134     Reply to this: 2136
Author: Stefan Ritt 
Topic: Bug Report 
Subject: Time shift in history CSV export 
I confirm there is a problem. If variables are from the same equipment, they have the same 
time stamps, like

t1 v1(t1) v2(t1)
t2 v1(t2) v2(t2)
t3 v1(t3) v2(t3)

when they are from different equipments, they have however different time stamps

t1 v1(t1)
t2    v2(t2)
t3 v1(t3)
t4    v2(t4)

The bug in the current code is that all variables use the time stamps of the first variable, 
which is wrong in the case of different equipments, like

t1 v1(t1) v2(*t2*)
t3 v1(t3) v2(*t4*)

So I can change the code, but I'm not sure what would be the bast way. The easiest would be to 
export one array per variable, like

t1 v1(t1)
t2 v1(t2)
...
t3 v2(t3)
t4 v2(t4)
...

Putting that into a single array would leave gaps, like

t1 v1(t1) [gap]
t2 [gap]  v2(t2)
t3 v1(t3) [gap]
t4 [ga]]  v2(t4)

plus this is programmatically more complicated, since I have to merge two arrays. So which 
export format would you prefer?

Stefan
ELOG V3.1.4-2e1708b5