I want to automatically extract data from my database immediately following an experiment. The file name is given and the start and stop timestamps are defined in other routines. What I am having trouble with, is ensuring that the data exported is not interpolated, but rather exported more as "steps". For example, if I set a setpoint value of 5 on a flow controller at time=10, and then set another setpoint value of 40 at time=20, I want the setpoint for (10=< time < 20) to be 5, and not some value interpolated between 5 and 40. The attached routine interpolates the values inbetween the two setpoints, which is very bad.
How can I export this data without the interpolation? Is there a better way of doing this? I am s
tarting to look into exporting to DIAdem, but will post a question about that in another thread.