09-23-2020 09:29 PM
I am using a Thorlabs power meter to measure power. I use LabVIEW in order to control it.
Now the question is how can I find out the average time taken by the data. for example, it measures 4.145 E-5 at 0 sec, 4.148 E-5 at 0.055 sec, 4.141 E-5 at 0.061 sec, and so on. Here, the time interval between the 1st data point is 0.0055, and the second data point is 0.01 sec.
now I need the average time interval to say 1 sec so that power also should be average. suppose, I need data of 0, 1s, 2s, and so on and the power should also be on average.
I have attached my code as well as the data.
09-23-2020 10:06 PM
Average time per point would be (final time - start time)/number of data points
09-23-2020 10:41 PM
Dear RavensFan,
I am sorry. I didn't get you. Could you please explain this to me further?
09-24-2020 02:22 AM
Hi prabesh,
@prabesh99 wrote:
I have attached my code as well as the data.
No, you did not attach any code or data.
All we got are some images showing only portions of the code/data…
Why did you tag your message with all those names?
@prabesh99 wrote:
Now the question is how can I find out the average time taken by the data. for example, it measures 4.145 E-5 at 0 sec, 4.148 E-5 at 0.055 sec, 4.141 E-5 at 0.061 sec, and so on. Here, the time interval between the 1st data point is 0.0055, and the second data point is 0.01 sec.
now I need the average time interval to say 1 sec so that power also should be average. suppose, I need data of 0, 1s, 2s, and so on and the power should also be on average.
Please provide example data and also provide an expected result for those example data!
09-24-2020 03:07 AM
I have attached my code below. I cannot attach my data so I attached the pic of my data. I hope you will understand. Let me clear it, as you can see the time interval and measured power in right side of column in the attached picture. Now, I need the averge time interval of 1 sec and the power should also be average taken by this average time interval.
thank you
09-24-2020 03:10 AM - edited 09-24-2020 03:13 AM
I am sorry. I forget to attach the pic.
I have attached my code below. I cannot attach my data so I attached the pic of my data. I hope you will understand. Let me clear it, as you can see the time interval and measured power in the right side of the column in the attached picture.
Now, I need the average time interval of 1 sec and the power should also be average taken by this average time interval.
thank you
09-24-2020 03:30 AM
Hi prabesh,
@prabesh99 wrote:
I cannot attach my data so I attached the pic of my data.
Why can't you attach the data file? Use ZIP…
@prabesh99 wrote:
Now, I need the average time interval of 1 sec and the power should also be average taken by this average time interval.
Collect the data in an array. When 1s has elapsed you calculate the mean of the array and start over with an empty array…
10-04-2020 10:57 PM
hi
how can I get the average value every 10 data?
10-05-2020 01:20 AM
I am using LabVIEW to measure the power of light. I can plot the power vs time. Now I want to get the average value of every 10 data in a waveform chart and save it.
10-05-2020 02:44 AM - edited 10-05-2020 02:46 AM