LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Overcomplicated Array Operation

Solved!
Go to solution

I am coming behind another programmer and his code is rather inefficient. This array operation seems way overcomplicated and i was wondering if any Labview Gurus out there could post some code that does the exact same thing, but isn't so obfusticated and hopefully is more efficient.

 

See attatched picture.

 

---------------------------------
[will work for kudos]
0 Kudos
Message 1 of 5
(3,106 Views)

This looks like a "puzzle challenge". Do you have a simple description of what it is supposed to do?

 

Most likely, the solution is a "one liner" 😄

 

Can you attach the actual VI and some typical data file?

0 Kudos
Message 2 of 5
(3,098 Views)

altenbach wrote:

This looks like a "puzzle challenge".


Maybe the original programmer was trying to find out how many array functions they could fit on the head of a pin. Smiley Very Happy

0 Kudos
Message 3 of 5
(3,085 Views)

OK, I'm not going to analyze this diagram from a picture. 😮

 

  • Obviously, we have a "decimate array" primitive, maybe that's what it is supposed to do (from the file name).
  • Using "array subset" to slice out single columns/rows is inappropriate. This is is better done using "index array".

 

0 Kudos
Message 4 of 5
(3,078 Views)
Solution
Accepted by topic author rex1030

 He's pulling out the however many rows into single arrays, and then grouping 0-6 and 7-13 into individual arrays and transposing them.  Another option is

Message Edited by JeffOverton on 11-06-2008 03:40 PM
 Duh!  Here's a more elegant option
Message Edited by JeffOverton on 11-06-2008 03:45 PM
Download All
Message 5 of 5
(3,034 Views)