The Daily CLAD

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

Re: Searching Numeric Arrays

SercoSteveB
Active Participant

What are the values of Numeric Value Out 1 and Numeric Value Out 2 following execution of the VI?

Searching Array 28_11_2014.png

a) Numeric Value Out 1 = 0, Numeric Value Out 2 = 5

b) Numeric Value Out 1 = 1, Numeric Value Out 2 = 4

c) Numeric Value Out 1 = 4, Numeric Value Out 2 = 1

d) Numeric Value Out 1 = 5, Numeric Value Out 2 = 0

Comments
Vish07
Member

D

LordNobady
Member

D


Learning LabVIEW since January 2013
mini09
Active Participant

I tried executing since the search 1D array output is -1 the array out first subarray is zero and array out of second subarray is 5.

My option is A

A.Bernau
Member

A

MrStevenUND
Member

A.

The search string is looking for "2" After the 3rd element, it doesn't find it and output is -1.  This puts the split before the first element of the incoming array.  Therefore the Array size of the top output is 0, bottom is 5.

nik35324
Member

A

crossrulz
Knight of NI

A


GCentral
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
kasliwal
Member

A.

because 'search 1D array' returns -1

'Split 1D array' returns 1st array as empty, 2nd array same as input array.

SercoSteveB
Active Participant

Answer: A.  Nice one gnshmrthy, Andreas23, MrStevenUND, nik35324, crossrulz & kasliwal.

Thanks for the explanantions gnshmrthy, MrStevenUND, & kasliwal.

gdhanson
Member

You will get the same result if the output of the Search 1D Array is a 0, as shown below

LV screen shot 1.PNG

VenkatStony
Member

Answer A  Nice one Thanks Steve..

M.P.Bharghavi
Member

Ans:A

Numeric1=0,Numeric2=5