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.
‘.’ = 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.
Is this only open to users with LabVIEW 2017? I ask because my version (2016) will not open the VI.
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
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...
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!!
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!
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.