11-18-2009 03:35 AM - edited 11-18-2009 03:36 AM
Sometimes it is difficult to find the right tool in the pallete, so we need to make our own.
Here's how to get a certain column from a 2D array using nothing more than a transpose, a while loop, and some trimmings! 😄
MacGyver would be proud!

11-18-2009 03:45 PM
11-18-2009 03:50 PM
Ray.R wrote:
I like the loop with i = 0 to stop the loop. 😄
On the other hand, I like the i =1 loop. Because there is nothing better than to run a loop on iteration 0 just to throw the data away. 😄
(Imagine how the loop would look and how long it would take to run to get the last element of a huge array.)
11-18-2009 04:27 PM
11-19-2009 07:51 AM
Back in about LV 5.0 I tried to create a 100-d array. The wires filled the screen! I made the mistake of try to put data in it before saving it. LV crashed.
Ben
11-20-2009 02:32 AM
Ben,
11-20-2009 07:36 AM
muks wrote:
Back in about LV 5.0 I tried to create a 100-d array. The wires filled the screen! I made the mistake of try to put data in it before saving it. LV crashed.Ben,
Was that a bug or an expected behaviour?
back in the day of 256M of memory, that was expected.
Ben
11-21-2009 07:28 PM
Sometimes I am guilty of writing code that has no purpose or use, just to prove that it can be done. And also because I get tired of the apparently infinite demand for this, as judged by postings here over the years. The beginner wants the opposite of the stop button, for whatever misguided reason. 😄
Rube Goldberg code??? You be the judge (details).

To try, download this zip file with code, unzip to a folder, open, but don't run autostart.vi, click the big FP button. 😄
(Warning: code is just a very rough draft to show the idea, full of bugs, shortcuts, and loose ends. ;))
11-21-2009 11:33 PM
altenbach wrote:
Rube Goldberg code??? You be the judge (details).
Well, can you think of another way to do it? I can't. And as you said, it's a misguided request mostly due to lack of understanding of programming/development environments.
11-29-2009 10:20 PM - edited 11-29-2009 10:22 PM
Have to nominate myself here.
From this thread http://forums.ni.com/ni/board/message?board.id=170&thread.id=459293
I know there's a simpler way, but things just bloated. 😛
(Which one reason I don't normally give BD based help)