LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to update the two dimensional array dynamically

 

Hi all,

 

i want to update 2D Array inside the loop. is it possible to do ?

if not , guide me the possible way to acheive the same.

 

Thanks

0 Kudos
Message 1 of 4
(3,474 Views)

Hello.. 🙂

      Can you please explain what exactly you want to do... ? I mean do you want to insert some data into array or you want to change existing data...?

Message 2 of 4
(3,469 Views)

One more thing you can look in "NI Example Finder".. Search there as "Array" you will get many VIs... You will see one VI named "How to replace array elements"... there they have shown

1.how to replace one element in a 1D array

2.how to replace one element in a 2D array

3.how to replace one row in a 2D array 

4.how to replace one column in a 2D array

           I hoe this will help you.. 🙂 Best luck.. 🙂

Message 3 of 4
(3,466 Views)
You should look up shift registers. They allow you to carry around data from one loop iteration to the next. Within the loop you just need a Replace Array Subset. Don't forget to initialize the shift register with a pre-allocated array. Example:
Message Edited by smercurio_fc on 09-21-2008 09:26 AM
Message 4 of 4
(3,441 Views)