The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Interleave 2D Arrays

SercoSteveB
Active Participant

What are the contents of 'Array Out' following execution of the VI?

Interleave 2D Array.png

Interleave 2D Arrays Answer.bmp

Comments
crossrulz
Knight of NI

A

This is a good one to think through.  Glad to see you're back at the top of your game!



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
SercoSteveB
Active Participant

Good point, I will have to slide in some questions on Graphs and Charts to make sure the GM hasn't lost his edge.

Plot spoiler....tomorrows question is a good one.

ambaum01
Member

Why would this not be b?

Aaron M. Baumer
crossrulz
Knight of NI

The autoindexing pulls off the rows.  Consequently, it also builds in rows.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
ambaum01
Member

So that is just a default behavior of LabVIEW.  That's good to know.  I assumed it pulled the columns.  The answers being in rows are a good clue.

Aaron M. Baumer
crossrulz
Knight of NI

And when in doubt, run it with probes and highlight execution.  It will become really clear what is happening then.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
mini09
Active Participant

Good evening friends,

                          the answer is A as crossrulz said, here the for loop runs 2 time on the first iteration it takes (1,2) (5,6) (9,10) and applies interleave is applied (1,5,9,2,6,10)for the next time(3,4) (7,8) (11,12) and the interleave is applied (3,7,11,4,8,12) the output is 2D array so option A is the most appropriate answer.

SercoSteveB
Active Participant

Answer: A  Nice one crossrulz & gnshmrthy.

Auto-indexing pulling off Rows is the thing to take from this.  Interleave array does what you expect it to do and is here to add some spice to the question..

Neelamma
Member

Ans:-A

ashwinilele
Member

A

sharkawy
Member

hey steve,
I just passed my CLAD and I wanna share my expereince Do you know where I can do this ?

btw: Big fat thanks to this awesome forum KEEP IT UP

Ahmed

skian
Member

A