LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I improve this VI?

Solved!
Go to solution

I want to run the 8x8 2D array from right to left interchanging:

 

the 1st col with the 7th,

the 2nd col with the 1st, 

the 3rd col with the 2nd,

the 4th col with the 3rd,

the 5th col with the 4th,

the 6th col with the 5th,

the 7th col with the 6th

 

you know...

 

already I can run the secuence but I think that there is a better way... with "Heuristic" or something like that but I tried and I don't know how....

 

Please help me!

Thank You!

0 Kudos
Message 1 of 6
(2,458 Views)
Solution
Accepted by abraham.oash

Here's the same with much less code. (See also miy signature)

 

 

 

Download All
Message 2 of 6
(2,443 Views)

Christian , i think according to the original question rotate array n count value should have been 1.

 

0 Kudos
Message 3 of 6
(2,417 Views)

It does not matter what you think. Simply compare the results of the two version. 😄

 

(I actually left the old code in place first and made sure the results are the same. If you use "1", it rotates the other way.)

0 Kudos
Message 4 of 6
(2,415 Views)

Hmmm, okay.

But great solution as always ......kudos..

0 Kudos
Message 5 of 6
(2,409 Views)

I agree that the text descriptions is a bit confusing about the direction, because it just talks about "interchanging". I assumed that the attached code was correct, but just needed simplification.

0 Kudos
Message 6 of 6
(2,397 Views)