From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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 - Fundamentals - Tony what's happening?

SercoSteveB
Active Participant

SercoSteveB has created the following VI but has poorly commented/documented his work (not for the first time Smiley Wink).  Which of the following most closely matches the functionality provided by the VI?

 

Describe the Functionality.png

 

 

NOTE: All hidden cases of the Case Structure are shown below:

Describe the Functionality -1.png

 

a) The VI records the average value for each pair of values in Numeric Array In.

b) The VI records the number of occurrences of each unique value in Numeric Array In.

c) The VI records the rolling total of values in Numeric Array In.

d) The VI records the sum of the odd values in Numeric Array In.

Comments
SPK91
Member

B

crossrulz
Knight of NI

B

 

I find this easier to do with Variant Attributes


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
sankar06
Member

B

Happy to Wire
A.Bernau
Member

B

Baltur
Member

b)

nik35324
Member

B

SercoSteveB
Active Participant

crossrulz I find this easier to do with Variant Attributes

 

Could you post up an example?

crossrulz
Knight of NI

I know there are better examples out there, but this is the first good one I was able to find: https://forums.ni.com/t5/LabVIEW/count-the-number-of-repetitions-of-items/m-p/3367576#M991374


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

MrStevenUND
Member

B

 

alexderjuengere
Active Participant

B

 

crossrulz I find this easier to do with Variant Attributes

 

my favorite example is this 2007 nugget:

https://forums.ni.com/t5/LabVIEW/Community-Nugget-3-12-2007-Implementing-sets-with-variant/td-p/4899...

 

I used this technic in my answear to Re: CLAD2017 - Answer the Requirement - Remove Duplicate Numerics

 

But I really appreciate the explicite approach, using array functions only

 

Priya16
Member

B

SoundNLight
Member

Tough one!

kirti3105
Member

B

mabaig
Member

its B

burak1453
Member

Answer: B, I also attached an instance 

labviewforum1.png

crossrulz
Knight of NI

Since this thread was just revived...LabVIEW 2019 introduced a new feature called Maps that would make this functionality even easier.


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
istan0227
Member

B