03-18-2017 04:33 PM
I have the data saved in txt format with headers like:
Date:
Sun, Mar 12, 2017
Time:
9:56 PM
Delta t (us)
499.999999E-3
Temperature (K):
300
Reactor Pressure (torr):
9.990000E+0
Time (microseconds) #$ Data
-5000.000000 0.000042
-4999.500000 -0.000003
-4999.000000 -0.000016
-4998.500000 -0.000033
I want to replace a column of data and save it as another txt file (there is a space between two columns of number)
from
0.000042
-0.000003
-0.000016
-0.000033
into
0.000050
-0.000008
-0.000018
-0.000039
Is there any way that the Labview program can read this file and transform it as another one with the same format?
Thank you.
Solved! Go to Solution.
03-18-2017 08:39 PM
Your description is a tad confusing. Can LV manipulate your data? Yes. But, what exactly are you trying to do? You ask about replacing a column with headers (why wouldn't you just add headers and maintain the data?) You also ask about swapping out a set of values.
Can you provide two examples of what you'd want your data to look like; one from before and one from after? Not just a single column, but the entire data set? If so, it'll be much easier to point you in a good direction.
03-19-2017 07:23 AM
03-19-2017 09:56 AM
Thank you!
The two examples are shown as below:
Before (in text file):
Date:
Sun, Mar 12, 2017
Time:
9:56 PM
Delta t (us)
499.999999E-3
Temperature (K):
300
Reactor Pressure (torr):
9.990000E+0
Time (microseconds) #$ Data
-5000.000000 0.000042
-4999.500000 -0.000003
-4999.000000 -0.000016
-4998.500000 -0.000033
After (save as another text file):
Date:
Sun, Mar 12, 2017
Time:
9:56 PM
Delta t (us)
499.999999E-3
Temperature (K):
300
Reactor Pressure (torr):
9.990000E+0
Time (microseconds) #$ Data
-5000.000000 0.000050
-4999.500000 -0.000008
-4999.000000 -0.000018
-4998.500000 -0.000039
03-19-2017 09:57 AM
Thank you for providing the solution. I will give it a try and respond you after testing.