LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

exported data shouldn't be interpolated, but is

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.
0 Kudos
Message 1 of 2
(2,335 Views)
The "Write Traces To Spreadsheet.vi interpolates the data like you described and there is no way to change this behavior.
Instead using this vi you should use the Read Traces (Numeric).vi that has an option for turning interpolation on and off. This vi doesn't write the data to a file so you will need to add some array and file handling (like the "Write to Spreadsheet.vi").

Best regards,

Jochen Klier
NI-Germany
0 Kudos
Message 2 of 2
(2,335 Views)