02-09-2022 11:46 PM
Hello,
I have around 10 TDMS files. And my program can call each file in every iteration with respect to my loop count.
Every time it calls a file and performs "Mean" and gets stored in a row of the 2D array, Which is fine
My problem is When it calls the first file and performs mean and store it in the output array in the first row. In the next iteration, it calls the second file and performs mean, and store the mean values in the same row by replacing the values of the first file.
But What I need is, I need to store the mean values in each row when it calls each file.
Like, When it calls the first file and performs mean store it in 1st row of the 2D array. then call the second file, perform mean and store it in 2nd row of the array...,
Thanks in advance!
02-10-2022 01:59 AM
Hi feller,
@feller97 wrote:
My problem is When it calls the first file and performs mean and store it in the output array in the first row. In the next iteration, it calls the second file and performs mean, and store the mean values in the same row by replacing the values of the first file.
When your VI behaves different to your requirements then you did something wrong!
Unfortunately you forgot to attach that VI so we cannot tell you where you failed in creating your VI…
@feller97 wrote:
But What I need is, I need to store the mean values in each row when it calls each file.
Like, When it calls the first file and performs mean store it in 1st row of the 2D array. then call the second file, perform mean and store it in 2nd row of the array...,
Use an autoindexing output tunnel in your loop to receive an array of values as needed…
02-10-2022 02:56 AM
Sorry for that. Please find the vi file attached.
I've used auto indexed tunnel only because my output itself is an array.
Thanks
02-10-2022 03:11 AM
Sorry, I did not explain my program clearly.
All my TDMS file has 10,000 samples(1D array). Then I'll split the 10,000 samples into 5samples each row(2D array). Then I take mean for each row. You'll get an array of data (in a row).
(so this is 👆when I call 1 TDMS file)
So like this, I'll call multiple TDMS files to perform the same. So the output should be, the mean of the first file in 1st row. Mean of the second file in 2nd row...,