LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change a specific element in array

Solved!
Go to solution

hi 

i have an 1d intialized array

i want to take the existed array and for example add +1 for the 5th element

how can it be done?

thanks

0 Kudos
Message 1 of 4
(2,618 Views)
0 Kudos
Message 2 of 4
(2,614 Views)
Solution
Accepted by therealmask

If you have a newer version of LV, the In Place Element Structure can simplify this.

 

Lynn

 

Change array.png

Message 3 of 4
(2,607 Views)

In a typical application you would want to repeat that operation to form a simple histogram. This is most easily achieved by keeping the array in a shift register and repeating the operation in a FOR loop until all data is processed.

 

My very simple example from a few years ago can be found here. In this case we are counting the number of occurences of small integers in a 1D array. Modify as needed.

 

 

0 Kudos
Message 4 of 4
(2,592 Views)