10-26-2013 12:47 AM - edited 10-26-2013 12:48 AM
I am really new to programing in labview (started on Monday). I have been following the labview toturials online and in NI website, but I not been able to solve it.
Edit: all of the values in the array are the same.....
Perhaps, someone here can take look at it.
Solved! Go to Solution.
10-26-2013 12:58 AM
What you want to do?
What you have tried so far? Upload in 2011
10-26-2013 01:01 AM
I just to store all the calculated values in the for loop into the array. Please look at the picture attached above
10-26-2013 01:07 AM - edited 10-26-2013 01:08 AM
Like I said update yours as its not clear here.
See my attached VI, I am calculating and adding all the calculated value at last
10-26-2013 01:09 AM
Nope.....
still not clear what are you asking
do you want some values after For loop in an array and you are not getting it???????
10-26-2013 01:12 AM
The vi has lots of sub vi,so I am not sure how to post them all. I have attached picture of the array values
10-26-2013 01:16 AM
You can explain the problem what output you are expecting ( and why , where )
and what you are getting
10-26-2013 01:22 AM
For instance, I run the for loop 4 time:
if I get a value of [2, 5] at the last iteration.
My current array looks like this [2,5,2,5,2,5,2,5], when it should be like this [3,9,5,1,4,3,2,5]
10-26-2013 01:30 AM - edited 10-26-2013 01:31 AM
Ok .........
Look at the build array function , you are giving it two values at a time. So it is creating an array of say ( 3, 1)
every iteration your are creating a new array .
So to get full array at output you need to put your tunnel mode as indexing then you will get a 2D array containing all elements.
Lot of explanation beacuse you just started learning LabVIEW.
10-26-2013 01:35 AM
Nope, it still does not work. Now I getting a 2-d array like this...
[2,5]
[2,5]
[2,5]
[2,5]
[2,5]