LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

place values into array

Hello,
 
I am trying to make an array into which two values "globals" will be loaded in order from low to high, according to their node, with their respective value in the next column.
 
Example:
 
node        Value
1              200
2              500
.               .
.               .
255          300
 
What can I do to make the vi smart enough to load each node in order as it comes in with its respective value?
-Thanx!
0 Kudos
Message 1 of 2
(2,196 Views)

You should be a bit more clear what you actually want. Do you want to sort by node or by value?

If you want to sort by node, you only need a single 1D array containing the "Values" while the "node" can be the array index.

Just initialize an array of length 256 (or 255 of there is no node 0), and then replace the array elements at index=node with the correct value in a loop (and using shift registers).

Please clarify!
0 Kudos
Message 2 of 2
(2,190 Views)