LabVIEW Digest Programming Challenges

Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.
Highlighted

LabVIEW Digest Challenge 1

Hi Everyone and welcome to the first LabVIEW Digest challenge!

 

We'll start with some simple addition. Email your entries to LabVIEWDigestCompetition@ni.com

 

The Challenge:

Return the sum of the numbers in an array.

Return 0 if the array is empty.

To make things more difficult - the number 10 is worth double. So in the example below we have 1 + 10 x 2 + 2 + 6 = 29

 

Sum Array Image.PNG

 

I've attached a starting VI for you to use (saved for LabVIEW 2010 and upwards).

 

 

Close date: Monday 10th April

 

Please note the competition is only open to LabVIEW users in Europe, Middle East, India and Africa. 

Competition Rules

 

Happy coding!

Charlotte

Message 1 of 19
(6,926 Views)
18 REPLIES

Re: LabVIEW Digest Challenge 1

Attached is a proposed solution (in LabVIEW 2015)

Regards, Ian

Message 2 of 19
(6,813 Views)

Re: LabVIEW Digest Challenge 1

Well, let's give it a shot!

 

I can't claim to have much experience using LabVIEW just yet, but here's my solution.

Message 3 of 19
(6,803 Views)

Re: LabVIEW Digest Challenge 1

Hello Everyone, 

I'd like to share my solution for this Challenge. (LV2015 formatted)

Best Regards, 
Y.Ceknaz

Message 4 of 19
(6,676 Views)

Re: LabVIEW Digest Challenge 1

Here is a solution, that does not use loops.

 

/SG

Message 5 of 19
(6,655 Views)

Re: LabVIEW Digest Challenge 1

Another Solution in LV2015

Message 6 of 19
(6,643 Views)

Re: LabVIEW Digest Challenge 1

Hi Everyone,


Thanks for all the submissions, we've had a huge range of different ways to solve this problem and I'm very happy to see the enthusiastic responses!

 

Can I please ask everyone that has posted on the forums to submit their answers to our email address: LabVIEWDigestCompetition@ni.com. I will be selecting the winner from that email address. 

 

Once the competition closes I'll post some of the different ways people solved the problem (anonymously) so people can learn from them. 

 

Thanks, 


Charlotte

Message 7 of 19
(6,623 Views)

Rif.: LabVIEW Digest Challenge 1

This is my solution.

 

Best regards.

 

L.D.G.

Message 8 of 19
(6,602 Views)

Re: LabVIEW Digest Challenge 1

Another one.

Greetings

Message 9 of 19
(6,551 Views)

Re: LabVIEW Digest Challenge 1

code sent Smiley Happy

Message 10 of 19
(6,503 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.