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.

Re: LabVIEW Digest Challenge 3

I wasn't eligible to participate, but I would have submitted a variant attribute based solution. Smiley Very Happy Here's what I did a few weeks ago.

 

MorseCodeLUT.png

 

See if you understand the algorithm ...

 

Disclaimer: To save me time and effort, the LUT is based on BrotherTom's code above, so I am not sure if it is complete and I don't know which standard should have been used. This is just a code skeleton to show the general principle. Would be easy to expand if needed.  Smiley Happy It currently returns a question mark if a pattern is not found in the LUT.

 

(EDIT: This is similar to the NXG version)

 


LabVIEW Champion Do more with less code and in less time
Message 11 of 14
(846 Views)
Highlighted

Re: LabVIEW Digest Challenge 3

You can also use regular expressions to locate and match morse syntax:

morse_regex.png

I think you can combine the regex with the variant attribute table constant to create a very small VI.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 12 of 14
(820 Views)

Re: LabVIEW Digest Challenge 3

I'm afraid that I d'on't have time to increase my knowledge in LabView to trial a CLAD exam Smiley Sad
If Charlotte want to design a new winner, I will be happy for him!!!

0 Kudos
Message 13 of 14
(638 Views)

Re: LabVIEW Digest Challenge 3

This is my solution.
HOB Consultores S.A.
Área de Investigación, Desarrollo e Innovación Tecnológica
0 Kudos
Message 14 of 14
(243 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.