LabVIEW Digest Programming Challenges

cancel
Showing results for 
Search instead for 
Did you mean: 

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 20
(13,535 Views)

Attached is a proposed solution (in LabVIEW 2015)

Regards, Ian

Message 2 of 20
(13,421 Views)

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 20
(13,412 Views)

Hello Everyone, 

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

Best Regards, 
Y.Ceknaz

Message 4 of 20
(13,285 Views)

Here is a solution, that does not use loops.

 

/SG

Message 5 of 20
(13,264 Views)

Another Solution in LV2015

Message 6 of 20
(13,252 Views)

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 20
(13,232 Views)

This is my solution.

 

Best regards.

 

L.D.G.

Message 8 of 20
(13,211 Views)

Another one.

Greetings

Message 9 of 20
(13,160 Views)

code sent 🙂

Message 10 of 20
(13,106 Views)