LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create array from while loop

Overview:

Im extracting mean values from an array using mean.vi.
I need to then make a new array usings the mean vaules obtained from mean.vi.

Problem is that the while wont pass data to the array that i have created...see picture (im talking about 'average weight array')

This is part of a university assignment and i have included all relevent files, please post any other suggestions that my improve my design.

Thanks
Download All
0 Kudos
Message 1 of 4
(3,079 Views)
It seems that the due date was in April, are you just trying to solve it for your own fun? In this case I would recommend starting with something a bit simpler until you become more familiar with LabVIEW.

I certainly don't want to complete the assignment for you. You are currently struggling with a simple dataflow issue: The "average weight array" will get data once the while loop finishes, e.g. after you press the stop button. (try it!).
0 Kudos
Message 2 of 4
(3,079 Views)
I need to send the data from Mean.vi to an array as the values are generated. How would this be achieved??
0 Kudos
Message 3 of 4
(3,079 Views)
Hi there,

if you need to update something live while a loop is going round then you have to place the item inside the loop (this applies to while loops and for loops). I have modified your code so it now updates live inside the loop. I have attached this code and also screenshots of the code in case you need them for any reason.

If you require any more help on this then please get back to me.

Best regards,

Peter H.
Applications Engineer.
National Instruments.
0 Kudos
Message 4 of 4
(3,079 Views)