06-11-2010 04:58 AM
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!!
06-11-2010 05:12 AM
06-11-2010 06:12 AM
06-11-2010 06:47 AM
well I am not sure that I understand your problem but I hope it could help you.
06-11-2010 06:55 AM
06-11-2010 07:10 AM
06-11-2010 07:37 AM
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
06-11-2010 11:39 AM
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....
06-11-2010 08:14 PM
06-11-2010 08:18 PM