10-13-2008 02:01 PM
Hi All,
I am working with data files that were generated by a data acquisition device. The files consist of 56 columns (the first column is a time stamp and the rest are voltage values from sensors). I am interested in converting those voltage values to pressure values by using a linear correction (y=mx+b). Each sensor has a different slope and intercept thus I need some way of entering a slope and intercept for each column while leaving the first column unchanged.
Ideally the new 'corrected' values would be written to a new file.
Any help with this would be greatly appreciated!!!
Solved! Go to Solution.
10-13-2008 02:18 PM
Post your vi file and a sample data file and we'll see what we can do for you.
10-13-2008 02:25 PM
Hi,
I haven't worked on a vi yet. I am extremely new to labview and am not even sure where to start with such a project.
Please find a sample file attached. Note: some of the columns read zero because those sensors were turned off.
10-13-2008 05:53 PM
Here is a vi in 8.5 format.
10-13-2008 06:49 PM
Thanks for the quick reply.
Looking at the .vi I am not sure where to enter the values for m and b to scale the data. Since each sensor (each column) has different scaling factors I need to be able to enter a different m and b for each column.
Perhaps I am just missing it in the .vi.
Thanks for your help.
10-13-2008 07:13 PM
10-14-2008 07:49 AM
Actually I do have the calibration data in a file. It would be great to be able to read it from the file and have the correction applied automatically.
The file is organized with slope in the first column and intercept in the second column (so m and b). The first row is sensor one, second is sensor two and so on.
How would I wire this into the vi? so that the data is automatically corrected?
Please find the calibration data file attached.
Thanks again for the help!!!
10-14-2008 09:23 AM
10-14-2008 09:48 AM
Thanks!!!
I just need to add an extra line in the calibration file in order to push it over since it was starting with the time stamp.