LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Interleaving arrays

Solved!
Go to solution

Hi,

 

I have 4 arrays of doubles.

 

The arrays each have the same number of elements.

 

I would like to combine them into a single array so that the elements for the original arrays are interleaved.

 

I.E.

 

a[0] , a[1] , a[2] ..............

b[0] , b[1] , b[2] ..............

c[0] , c[1] , c[2] ..............

d[0] , d[1] , d[2] ..............

 

Becomes,

 

a[0] , b[0], c[0] , d[0] , a[1] , b[1] ....................

 

I can write a function, but I seem to remember there being a library funtion to do this.

 

However, I can't remember what the library function is called, nor I can't find it.

 

Is it my memory playing tricks, or can someone point me to it?

 

John C
0 Kudos
Message 1 of 4
(3,761 Views)
Solution
Accepted by topic author JGC

Ah!

 

I've just found it.

 

TransposeData () in the User Interface Library.

 

Cheers,

 

John C
0 Kudos
Message 2 of 4
(3,758 Views)

hi...

i am having an issue.... i need to average elements... the process should go like this....

first--average of a[1] 

next step is average of a[1] and a[2]

next: average of   a[1],a[2],a[3]

next: average a[1],a[2],a[3],a[4] and so on...

 

and finally i need to have all these averages in an array....

 

can anyone help me?? i am new to labview....

Thanks

0 Kudos
Message 3 of 4
(3,504 Views)

first, your question is totally unrelated to the original question from this thread, please create a new thread.

second, this is the LabWindows forum, for LabView related questions go to the appropriate forum.

0 Kudos
Message 4 of 4
(3,497 Views)