BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

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!

 

 

 

(spotted here)

Message Edited by altenbach on 11-18-2009 01:36 AM
Message 581 of 2,635
(12,800 Views)
I like the loop with i = 0 to stop the loop.  😄
0 Kudos
Message 582 of 2,635
(12,746 Views)

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.)

Message 583 of 2,635
(12,741 Views)
Im just imagining the multi loop method for that 15D array on the previous page.
0 Kudos
Message 584 of 2,635
(12,729 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 585 of 2,635
(12,685 Views)

 


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.
:smileyvery-happy: Ben,

 

 

Was that a bug or an expected behaviour? :smileyvery-happy::smileyvery-happy::smileyvery-happy:

0 Kudos
Message 586 of 2,635
(12,668 Views)

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.
:smileyvery-happy: Ben,

 

 

Was that a bug or an expected behaviour? :smileyvery-happy::smileyvery-happy::smileyvery-happy:


 

back in the day of 256M of memory, that was expected.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 587 of 2,635
(12,643 Views)

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. ;))

Message 588 of 2,635
(12,587 Views)

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.

Message 589 of 2,635
(12,575 Views)

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)

Message Edited by Hornless.Rhino on 30-11-2009 03:22 PM
0 Kudos
Message 590 of 2,635
(12,444 Views)