LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating and doing operation continuosly in array

Hi everyone

 

I have a few question about arrays. Do refer to the attached VI

 

1)  In testing2.vi , how do i continuosly update(change) the value in ABC array without having to change the index array value. Any programatical way to do it? I need to duplicate my value in ABC2, that's y i use initialize array

 

2) Next, I need to use the testing2.vi in my testing1.vi. I need it to subtract all the possible values generated in ABC2 and replaced it continously in x+y. So i have to monitor the changes in every possible combination of result and use every single result for my next operation. Right now, I only manage to get either the 1st or last combination....

 

3) The example.vi is juz an idea. Should I use timing ? But even if i use timing, only the 1st value of the array will be added with the constant number.

 

 

 Appreciate all comments...Thanks!!

 

 

Download All
0 Kudos
Message 1 of 12
(3,385 Views)
1) do you want to duplicat each value of the your input array in the ABC2 Array? why do you initialize your ABC2 Array with 20 elements?
0 Kudos
Message 2 of 12
(3,377 Views)
Haha...It's part of the project....actually I need to duplicate it more than 20 times...Im giving an example here...so better cut it to 20 only.....if anyone have a better idea besides using initialize array....do share it......feedbacks are always welcome....thanks...
0 Kudos
Message 3 of 12
(3,363 Views)

well I am not sure that I understand your problem but I hope it could help you.

 

Download All
0 Kudos
Message 4 of 12
(3,353 Views)
Haha...Im using LV8.6 ..so can't open it...can u attach the files in LV8.6 ...thx....
0 Kudos
Message 5 of 12
(3,347 Views)
 
Download All
0 Kudos
Message 6 of 12
(3,337 Views)

Hi FHM,

 

Thanks for the help ...but it's not my needed solution....hehe..

 

For  Testing2.vi

- I want to take each value (say ..the value 30 and duplicate n times and insert it in a new array ) ...after that..the program itself will take the next value in ABC array ..say the value 40...duplicate n times in the same array....Is there a way to select a value automatically without keep changing the constant at the index array....??....Izit possible to connect arrays or other value to the index array??....

 

Or shud i use loops??..but for now i use a constant to control the loop.....so i only get one value....see attached vi

 

 

 

0 Kudos
Message 7 of 12
(3,324 Views)

 

 the array output can be obtained by enabling index

 

search around and found out this 2 link

 

1) http://forums.ni.com/ni/board/message?board.id=170&thread.id=36062&view=by_date_ascending&page=1

-  but some of the example requires boolean switches....which i dun want in my project

 

2)http://decibel.ni.com/content/docs/DOC-8546 by KellyR

- Tried to build exactly the same block ..but the output shows nothing....i think there's some problem in my property node connection....i can't open the attached files coz it's in LV 2009....can anyone change it to LV8.6 so that i can check it out myself??

 

Thx....

 

0 Kudos
Message 8 of 12
(3,295 Views)
0 Kudos
Message 9 of 12
(3,278 Views)
0 Kudos
Message 10 of 12
(3,278 Views)