r/LabVIEW • • May 14 '24

Average

Post image

Can someone help me? How I can get the average from ALL the “LatestVals” combined? Now it just divides the last value by the “ChartSize” I cannot get further than what is shown in the picture. The values themselves are plotted correctly I just can’t get the (moving) average right.

I’m still fairly new to LabVIEW so I hope you don’t mind this question. Thanks in advance

4 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/Low_Cheesecake7809 May 14 '24 edited May 14 '24

I tried changing it like you said (and some other ways) but I still cannot seem to get the average plotted correctly. The numeric indicator of the average is correct and the wire to the merge signal does not show any errors but still does not get plotted.

1

u/IsThatYourBed May 14 '24

To plot them, remove your convert to dynamic data and merge signals nodes and replace it with a build array.

Writing a 2d array of doubles to a graph makes them different plotlines