The Daily CLAD

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

Re: Build Array

SercoSteveB
Active Participant

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

Build Arrays.png

a) A 1D Array {5,4,3,2,1,1,2,3,4,5}

b) A 1D Array {5,1,4,2,3,3,2,4,1,5}

c) A 2D Array {{5,1,4,2,3},{3,2,4,1,5}}

d) A 2D Array {{5,4,3,2,1}, {1,2,3,4,5}}

Comments
adambro
Member

Answer is D. The type of wire exiting the build array function indicates that it carries a multi-dimensional array i.e. concatenate array is not set.


mini09
Active Participant

Yeah I agree with Adambro the answer is D. the type of wire coming out of the build Array funcion is multi dimensional (i.e) here its 2D.

SercoSteveB
Active Participant

It's interesting the way different people interact with LabVIEW in different ways (whilst arriving at the correct answer ).  I have always used the different symbology on the Build Array node to determine the operation/output type.

faymia
Member

The double lines indicating a 2D array output was definately a dead give away on this one...I agree with the above other comments, the answer is D.

SercoSteveB
Active Participant

Answer: D.  Nice one adambro, gnshmrthy & faymia

I look at the symbols on the Build Array node, to determine if we are concatenating inputs or not. 

If the Build Array node has single blocks depicted on the input terminals, then we are not concatenating the input arrays.

build array non cat.png

If the Build Array node has double blocks depicted on the input terminals, then we are concatenating the input arrays.

No Concat Arrays.png

GayatriT
Member

Ans : D

ROSEJ
Member

D

ashwinilele
Member

D

skian
Member

D