From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
10-20-2020 04:15 AM
Hi prabesh,
@prabesh99 wrote:
Could you please help me to solve this problem?
Yes, I can help: implement my latest suggestion!
10-20-2020 04:20 AM
Dear Gerdw,
Thank you for your response.
yes, I did your latest suggestion but it did not work.
10-20-2020 05:00 AM
the latest version is found here, but not in your VI...
10-20-2020 09:14 PM
Dear GerdW,
Sorry to bother you again. I did what you told me to do, but it did not work again. I got the repetitive data and if I vary the sample length I got the same data. I have attached the Lv2017 as well as a pic.
thank you
10-20-2020 11:08 PM
Dear Gerdw,
I found a snippet on the community, and it works well. However, Whenever I run for the second time this VI, I got previous as well as new data. How can I remove previous data?
I have attached the LV2017.
Thanks in advance
10-21-2020 01:56 AM - edited 10-21-2020 01:56 AM
Hi prabesh,
@prabesh99 wrote:
I did what you told me to do, but it did not work again.
I got the repetitive data and if I vary the sample length I got the same data.
Ofcourse you will get repetitive data: you wanted a new average value after each "sample length" samples! So when you set that to 100 then you get 100 times the same value, then a new value for the next 100 samples!
When I change the "sample length" to 10, then I get a new value each 10 iterations:
10-21-2020 02:01 AM
Hi prabesh,
@prabesh99 wrote:
I found a snippet on the community, and it works well. However, Whenever I run for the second time this VI, I got previous as well as new data. How can I remove previous data?
Clear any shift registers.
Clear the chart history…
10-21-2020 02:17 AM
Hi Gerdw,
thank you for your message. I cleared the chart and shift register too but still, the previous data has been replaced yet by a new one.
Thank you
10-21-2020 02:23 AM
Hi prabesh,
@prabesh99 wrote:
NOW: I cleared the chart and shift register too but still, the previous data has been replaced yet by a new one.
BEFORE: Whenever I run for the second time this VI, I got previous as well as new data. How can I remove previous data?
First you wanted to delete previous data on next run of the VI - now you wonder why previous data has been replaced "yet by new one"?
What exactly do you need?
10-21-2020 02:29 AM
Hi Gerdw,
Thank you for your prompt reply. For the second time running VI, I got both data previous data as well as new data. I want new data only. Whenever I run Vi for the third time or any time, I got the data from 1st running, 2nd running, and as many times as I run the VI. I want the data from the latest Vi that is run last time.
Thank you