BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

There are many ways to take the row average of the first four rows of a 2D array.

 

One of the most inefficient ways would be to use "delete from array" four times in a row, slicing the 2D array up like a sushi chef ... or we could just use an autoindexing FOR loop. (if the 2D array is known to have four rows, we don't even need to wire the N).

 

 

Spotted here.

0 Kudos
Message 781 of 2,635
(12,276 Views)

Ok I don't have a Rube Goldberg example here but I heard a question that would indicate that a really good one is in the making somewhere.

 

I was in an online LabVIEW class and someone asked if the number of front panel windows that could be open was 32 bit or 64 bit bound.

=====================
LabVIEW 2012


Message 782 of 2,635
(12,172 Views)

I guess this'll be a limit imposed by the OS and not by LV.

 

Felix

0 Kudos
Message 783 of 2,635
(12,161 Views)

I'm Thinking youl'd run out of memory with 65K+vis (unless they are really doing nothing)


"Should be" isn't "Is" -Jay
0 Kudos
Message 784 of 2,635
(12,150 Views)

Or the limit is imposed by physics. I don't think there are enough pixels in the universe to open 2^64 front panel windows Smiley Very Happy

=====================
LabVIEW 2012


0 Kudos
Message 785 of 2,635
(12,127 Views)

In the Antaran HD specification there are. And with the LabVIEW 3D environment it becomes somewhat easier.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 786 of 2,635
(12,085 Views)

I have been having too much fun reading this thread. I have not seen all the posts yet but I will.

 

I took all the code out of a real example except for the method of exiting the program. There are a couple of problems with it. I don't think you can call this Rube Goldberg code. It's more like Forrest Gump code.

 

Capture.PNG

=====================
LabVIEW 2012


Message 787 of 2,635
(11,998 Views)

"Forest Gump code" - I like it.

 

When you say you took all the code out of the real example execpt for the exiting method, does this mean you took out the timing part where "Forest" was allowed a rest? or was it just "Run Forest, Run!"?Smiley Happy

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 788 of 2,635
(11,933 Views)

 


SteveChandler wrote:

Capture.PNG


My mama always said you should also add a "quit LabVIEW" primitive to make triple sure things come to an end.

 

0 Kudos
Message 789 of 2,635
(11,903 Views)

 


@James W wrote:

"Forest Gump code" - I like it.

 

When you say you took all the code out of the real example execpt for the exiting method, does this mean you took out the timing part where "Forest" was allowed a rest? or was it just "Run Forest, Run!"?Smiley Happy


"Stupid Locals is as stupid locals does Forrest."-  Smiley Very HappySmiley Very HappySmiley Very Happy

 


"Should be" isn't "Is" -Jay
Message 790 of 2,635
(11,879 Views)