LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array rotation

hi, can anyone know the labview code for the rotation of a 1D array without using ROTATE 1D ARRAY function.
0 Kudos
Message 1 of 10
(3,907 Views)
Yes, but the only reason that I can think of why anyone would try to do such a thing is either for a mental exercise, or a school assignment.  The latter would be the only reason that would elicit a question here. Smiley Happy
Jim

LV 2020
0 Kudos
Message 2 of 10
(3,898 Views)
Hi Anupama.U…,
there are different ways. Can you please explain, why you need it?
Mike
0 Kudos
Message 3 of 10
(3,897 Views)
Hi Anapuma,
these are two possibilities…



greets, Dave


Message Edited by daveTW on 05-27-2008 01:07 PM
Greets, Dave
0 Kudos
Message 4 of 10
(3,895 Views)
HI, Thanx for ur support.Actually i'm new to this tool and wanted to do more exercise on this tool. Thanx Anupama
0 Kudos
Message 5 of 10
(3,886 Views)
Actually, learning about the tool or language is to actually use the functions that are available.  It's much better and more efficient as a programmer.. 😉
0 Kudos
Message 6 of 10
(3,875 Views)
0 Kudos
Message 7 of 10
(3,836 Views)

Hi Anupama,

Why an empty reply? Smiley Happy

What does this mean? Smiley Indifferent

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 8 of 10
(3,833 Views)
HI,
It just happnd becoz of my mistake.
i didnt noticed that.

Anupama
0 Kudos
Message 9 of 10
(3,829 Views)


Anupama.U.R wrote:
Actually i'm new to this tool and wanted to do more exercise on this tool.
Well, it is a useful exercise trying to emulate a built-in LabVIEW function. It gives you a chance to fully understand the function AND the tools you are using to duplicate the functionality.
 
In particular, you should make sure that your replacement function works identically. E.g. try with an array of size=5 and e.g. rotate by -999, -998, -2, 0, 2, 998, or 999 and see if you get the same result as the built-in rotate array in all cases. Try with an empty array, etc.
 
You can also do some benchmarks to see how much more efficient the LabVIEW function is compared to your contraption. (Maybe you can even try to beat it. Long ago in the "median challenge", several entries were faster than the stock median VI of LabVIEW if I remember right. ;))
 
Here are two quick mockups. Try to make a few more, e.g. one containing a shift register or the in-place element structure.
 

 


Message Edited by altenbach on 05-27-2008 11:41 PM
0 Kudos
Message 10 of 10
(3,816 Views)