08-22-2017 05:57 AM - edited 09-11-2017 09:59 AM
Hi Everyone and welcome to this quarter's LabVIEW Digest Challenge. This time we're opening it up to LabVIEW NXG entries for the first time so if anyone fancies practising their NXG skills, this is the time to do it! As always, there's a free certification exam of your choice up for grabs!
Email your entries to LabVIEWDigestCompetition@ni.com
I will not be accepting entries posted on the forum page.
For this challenge, we’re going to be building a program to de-crypt Morse code. The program should be able to translate any Morse code but I have included a short sentence below to test it.
‘-’= dash
‘.’ = dot
‘ ’ = separates letters
‘/’ = separates words
- .... .. ... / -- --- -. - .... .----. ... / -.-. .... .- .-.. .-.. . -. --. . / .. ... / - --- / - .-. .- -. ... .-.. .- - . / -- --- .-. ... . / -.-. --- -.. . / .-- .. - .... / .-.. .- -... ...- .. . .--
Closed Date: Saturday 30th September
Please note the competition is only open to LabVIEW users in Europe, Middle East, India and Africa.
Please use one of the attached VIs.
Good luck,
Charlotte
09-11-2017 09:56 AM
Hi Charlotte,
Is this only open to users with LabVIEW 2017? I ask because my version (2016) will not open the VI.
Many thanks,
Pete.
09-11-2017 09:59 AM
My mistake, 2010 version added! Thanks for letting me know
09-12-2017 02:33 AM
Hi everybody
This is my solution.
Greetings from Switzerland!
09-12-2017 02:34 AM
Hi BrotherTom,
Could you please email your VI to LabVIEWDigestCompetition@ni.com?
That way I can keep all entries together and pick one at random much easier 🙂
Thanks,
Charlotte
09-12-2017 11:17 AM
Since I am in the US, I am not qualified to enter, but your example string seems incorrect unless you say that:
If we define it as "‘/’ = separates words" (no spaces), the example string should instead be:
- .... .. .../-- --- -. - .... .----. .../-.-. .... .- .-.. .-.. . -. --. ./.. .../- ---/- .-. .- -. ... .-.. .- - ./-- --- .-. ... ./-.-. --- -.. ./.-- .. - ..../.-.. .- -... ...- .. . .--
Of course well written code should be able to handle extra spaces... 😄
09-14-2017 04:50 AM
Hi everybody,
my code runs with the Morse string proposed by Charlotte, with the spaces before and after the words separator.
If something change about that, I will change my code, but I will be happy to know what is the decision about this question!!
Thanks!
Phil
09-15-2017 01:50 AM
Oh good spot! I should have defined my list of different characters as ' / ' which I will update now.
However, I will accept either solution.
When I coded my own solution I used ' / ' as that was what was in the test string. I'm don't think that's real morse code but that's what the translator gave me!
09-15-2017 02:32 AM
Thanks Charlotte 😉
I sent my code this morning!!
Phil
10-06-2017 04:12 AM
Hi Everyone,
I have been looking through the results and have selected a winner - PhilB58!
For the first time I had to select a random winner multiple times as there were a few things that meant there were incorrect solutions. I tested them with the phrase 'THE QUICK BROWN FOX JUMPS OVER 13 LAZY DOGS?' to check numbers and punctuation. Everyone remembered to include either numbers or punctuation but not everyone remembered to include both.
Here is the winning entry from PhilB58. He also included a bonus translator to turn ASCII into Morse Code which was a nice touch.
Thanks to the many people that submitted entries. I think this was our highest yet!
We'll have another challenge in December.
Thanks,
Charlotte