LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting values ​​into a table and sorting

Solved!
Go to solution

Hello! I am totally new to this software and the truth is I'm lost 😧

 

I have to do something that sounds very simple (and maybe it is) but I know nothing is complicated.
 
What should I do is is a  collect data (valors), put them in a table and fits from first to last place, or from last place to first place. I can make the table and this will take random data, but it is not what I'm really want ...
 
I will appreciate your help with a very easy explanation for a novice like me 😧
 
Thank you very much!

 

 

Download All
0 Kudos
Message 1 of 7
(3,582 Views)
Solution
Accepted by topic author Miguel_Exe

Hello Miguel_Exe,

 

If you want to sort the array before putting it into the table then you can just use a sort array function as shown.table sort.pngtable sort FP.PNG

You can find the sort function in functions palette > programming > Arrays > Sort 1D array. 

 

Let me know if this helps.

 

 

0 Kudos
Message 2 of 7
(3,566 Views)

Thank you very much it works really well!!! 😄

Last thing:

To enter a random value one by one, its possible? (In this, all are entered simultaneously)

 

Thank you!

0 Kudos
Message 3 of 7
(3,536 Views)

Something like this should work for you.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(3,533 Views)

I dont find these components :S 

0 Kudos
Message 5 of 7
(3,515 Views)

@Miguel_Exe wrote:

I dont find these components :S 


Which components?  I just used the Build Array, Random Number (0-1), and Sort 1D Array.  I just stored the array in a shift register, which is just a way to pass data from one iteration of a loop to the next.  You create the shift register by right-clicking on the loop.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 7
(3,507 Views)

Parfait! Thank you very much to the two! 😄

0 Kudos
Message 7 of 7
(3,502 Views)