03-06-2017 10:24 AM - edited 03-10-2017 04:54 AM
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
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.
Happy coding!
Charlotte
03-23-2017 06:42 AM - edited 03-23-2017 06:43 AM
Attached is a proposed solution (in LabVIEW 2015)
Regards, Ian
03-23-2017 06:51 AM
Well, let's give it a shot!
I can't claim to have much experience using LabVIEW just yet, but here's my solution.
03-23-2017 09:50 AM
Hello Everyone,
I'd like to share my solution for this Challenge. (LV2015 formatted)
Best Regards,
Y.Ceknaz
03-23-2017 10:12 AM
Here is a solution, that does not use loops.
/SG
03-23-2017 10:39 AM
Another Solution in LV2015
03-23-2017 11:13 AM
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
03-23-2017 12:51 PM
This is my solution.
Best regards.
L.D.G.
03-24-2017 01:48 AM - edited 03-24-2017 01:51 AM
Another one.
Greetings
03-24-2017 07:08 AM
code sent 🙂