LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our General Code Repository Files. Also, before posting here, check to see if your post doesn't fit into another subforum by category.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Array problem
andy810915
post Jul 3 2003, 07:15 AM
Post #1


One hit wonder!


Member
Posts: 1
Joined: 1-July 03
Member No.: 132



I wanna to add 2D data to an build array and save it. For one run, i can manage it, what about for 10 runs? For loop's N=10, each run i produce a set of 2D data, but i wanna to average them and save them as one set.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Jul 3 2003, 07:15 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Michael_Aivaliot...
post Sep 4 2003, 04:30 AM
Post #2


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2402
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


I'm sorry no-one else responded in a reasonable time but I'll try to close this one off for others that might be in the same predicament.

Basically you need to use a shift register. You can right-click on the borders of FOR and While loops to create shift registers. The shift register is a powerful tool and it allows you to carry the data from previous iterations into the present one. So, in your case, you would average the new data (add then devide by 2) with the previous data then pass it along back on the shift register. This can be repeated for as many iterations as you wish. On the outside of your loop you can place the saving of your data. At that point you would have an average of all the dat collected from previous loop iterations. This would be carried on the shift register.

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 8th January 2009 - 01:13 AM