From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

The Daily CLAD

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

Re: CLAD2017 - Variants - Set and Get Attribute Names

SercoSteveB
Active Participant

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

 

Variants 1.png

 

Variants 1 Answers.png

Comments
AustinManinTown
Active Participant

Good one 🙂

David C
crossrulz
Knight of NI

B

 

At least something does Smiley Tongue


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
SercoSteveB
Active Participant

Hold onto your hats, there is a weeks worth of Variant questions scheduled. 

 

I don't think Variants would form part of a CLAD exam but well worth the introduction.

Baltur
Member

Nice one.

I will check it in LV later. I'm curious if the sorting happens at the Set or the Get function.

crossrulz
Knight of NI

The variant attributes are stored in a Red–Black Tree, so the sorting is done at the set.  This makes the search a lot faster​ than a linear search such as a Search 1D Array.


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
mini09
Active Participant

B

nik35324
Member

B

rupesh.v
Member

ans: B 

Nice example sir...for CLAD preparation...

thank you!!!!!

rak84
Member

B

(Ascending order ,small clue 😉)

istan0227
Member

B