11-13-2013 03:07 AM
Hello everyone,
I am new in labview and I have one issue. I have a huge text file with the different pressure value of different ports.
I make the VI in which first I read the text file and identify the perticular port column. In that column there are 32768 pressure value.
Time Num Port 101 Port 102 Port 103...... Port 532
0 1
0.001 2
. .
. .
50 32768
And this all reading takes in 50 sec and I have to split this readings in 4.5 sec... in every 4.5 sec there are 2969 values...
Now please go throw the attched VI... i am able to find the mean value with the 12 time step of 2969 value...
Now I want to do is, to find again the mean value of 2969 values(2970 to 5938) with time step of 12 and so on until 32768... so it happens 11 times in series...
So can anyone modify my VI??
Thank you,
Solved! Go to Solution.
11-13-2013 03:30 AM
I think you're asking for the averages of 12 non-overlapping segments. Try the attached.
11-13-2013 03:43 AM
no actually in first 4.5 sec it contains first 2969 rows...
so from those row I take 0-11,1-12,2-13,3-14.... 2958-2969 and then I found the moving average from that...(already shoe in VI)
but what I want that I have to consider the next segment of 2970 to 5938 and from thos rows I have to find the moving average with the same time step of 12... and then agian I have to consider 5939 to 8908 rows and do the same operation...
So with the help of for loop or while loop I want to solve this prob..
11-13-2013 04:31 AM
I think my first VI also wrong because I need the overlapping time step mean value.
In my first case I only have 247 mean value from 2969 rows of value but It must be more then that.(because as per 1st VI I take 1-12 then 13-24 and so on but I need to calculate 1-12,2-13,3-14 and so on)
So please do correction in my first VI... Sorry for that
11-13-2013 05:31 AM
please go through the attched VI
I made some correction in that.Now I am able to find the mean value for first 2969 rows with the overlapping time step of 12.
It means I am able to find the mean value from 1-12,2-13,3-14 ... 2958-2969...
but now the problem starts, I want to calculate the mean value of next 2969 rows which is 2970 to 5938 with the time step of 12...
So please modify my VI.. I stuck with the serious problem...
I have 32768 rows and have a partition of 2969 rows so the loop has to be repeat for 11 times.
hope you understand the prob
Thank you
11-13-2013 11:58 AM
This will do approximately what you want, though you will need to play with the segmentation a bit to get exactly 11 segments.
11-14-2013 03:40 AM
Hello,
Thank you very much. This is the perfect VI which suits my requirement.
Thanks again.. Have a nice day ahead.
11-14-2013 08:03 AM
You don't want to mark your thank-you message as the solution, but mark the message in which you received the solution. You can change this in your message options.
Cameron