ā10-13-2020 09:37 AM
The averaging is fine, it is the Elapsed Time Express VI is the problem. It is the wrong tool. It is used only once and is in parallel to the the multiple iterations of the For Loop.
Look at the other functions on the timing palette. You want to get the current time before the For Loop starts and the current time after the For Loop ends. Subtract the values to get the time that has elapsed within the For Loop.
ā10-14-2020 02:06 AM
Hi GerdW, I have attached the LabVIEW file of your desired version.
thank you
ā10-16-2020 04:04 AM
I have attached my VI below. I try to use this method to find out the average data point but I don't get the average data point. What's wrong with this view. Could you please suggest to me the best idea to get the average data point of power as well as the time?
Thank you.
ā10-16-2020 04:11 AM - edited ā10-16-2020 04:24 AM
Hi prabesh,
@prabesh99 wrote:
I try to use this method to find out the average data point but I don't get the average data point. What's wrong with this view.
Your "method" is basically this part of your code:
What does that code do?
mean_power = Sum_power / n = (nĆPower)/n = Power
=>
mean_power = Power
Is this what you want to achieve? Probably not.
But that is what you programmed - and what your VI is doing!
(Btw. doing simple stuff in a very complicated way is called "Rube-Goldberg"! :D)
You need to collect the last "n" samples of "Power" - as I have shown you (11 days!) beforeā¦
ā10-16-2020 04:40 AM
Dear GerdW,
Thank you for your prompt reply. I have some questions. I would like to ask you.
`
1. I Use shift register to add power. As power varies with respect to time. So, I think I will get the total sum of power. If the power is constant throughout time then I will get the same power. But I am curious to ask you that power is changing with respect to time. If I add variable power I should get a different power. But I am getting the same power.
2. The VI that was sent by you is not working.
Thank you for your attention.
ā10-16-2020 05:17 AM - edited ā10-16-2020 05:17 AM
Hi prabesh,
@prabesh99 wrote:
2. The VI that was sent by you is not working.
Yes, there was a bug in the example. You could have found that bug on your own in the last daysā¦
@prabesh99 wrote:
But I am curious to ask you that power is changing with respect to time. If I add variable power I should get a different power. But I am getting the same power.
I have explained why you get the "same power" instead of a "different power"ā¦
(The way you wrote this question it is really hard to understand.)
ā10-20-2020 03:07 AM
Dear Gerdw,
Thank you for your reply. I did what you said to do, but I got the repetition data as shown below. I do not know why I got this. I am really working hard to figure it out, and now I am tired of working in LabVIEW. Could you please help me to solve this problem? I would be really grateful if you can help me.
Thank you in advance
ā10-20-2020 03:23 AM
ā10-20-2020 04:07 AM
Dear GerdW,
Thank you for your prompt reply. I have attached LV2017.
ā10-20-2020 04:12 AM
Dear GerdW,
I am a beginner. During one month, I learned a lot from LabVIEW. However, the average data point is a hurdle for me. I learned many things from you. I hope the average data point will also solve.