LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting one period from array (array data selection)

Solved!
Go to solution
Solution
Accepted by zordix

With outer loop I meant the one containing the whole program.

 

I changed your final loop a bit for efficiency. The build array node you used inside the loop will call the memory manager every iteration. Initializing the array with the correct size beforehand saves you time during execution because "replace element" can be done "in place" without changing the properties of the array. Since you know the size of the array in advance we can do this.

 

As for mean or median I don't know. I'm not familiar with what you want to achieve - the decision is yours. Just ask yourself why one solution is superior to the other.

 

Best regards

Florian

Message 11 of 13
(300 Views)

Amazing. The test went well. I will mark the previous post as a solution, but now, please let me ask one OT question:

 

Is there a way how to have control with exact numbers to choose? Eg 5,10,20,50 and nothing else? Thank you.

0 Kudos
Message 12 of 13
(283 Views)

Glad to hear of your success!

 

Yes there is a way to achieve what you want.

You may use a text ring for that. Just make the text and the value for each entry the same.

 

Best regards Florian

Message 13 of 13
(279 Views)