04-29-2026 03:17 AM
I already posted a similar topic a while back. I have already finished the transmission. I have hard time with the decoding and receiving. Attached are my codes, how do I correct it.
04-30-2026 08:27 AM
you have written a 'text to morse code' encoder, in transmission.vi
and there is an 'morse code to text' decoder in
https://forums.ni.com/t5/LabVIEW-Digest-Programming/LabVIEW-Digest-Challenge-3/td-p/3678897
especially:
can be used directly to countercheck your encoder
good luck
05-03-2026 09:32 AM
I would probably take my variant attribute based approach and rewrite it using a map. 😄
05-03-2026 10:02 AM - edited 05-03-2026 10:28 AM
@InP6Hell wrote:
I already posted a similar topic a while back. I have already finished the transmission. I have hard time with the decoding and receiving. Attached are my codes, how do I correct it.
Your code is broken for example because you are autoindexing on the LUT (the wire actually goes to the indexing tunnel underneath the loop!) and wiring a non-autoindexing output tunnel that goes nowhere does not do anything useful.
Both of your programs are a total mess, with overlapping and hidden wires flowing in all directions and several pure Rube Goldberg constructs. This makes it much easier for bugs to hide and makes debugging almost impossible.
For example, compare the following:
05-04-2026 12:36 AM
Thanks for the insight. I already saw other solutions for the decoding end. My problem right now is how to make it determine whether the light is dash/dot using pulse width. I am making a laser morse code setup and that is bugging me as of the moment
05-05-2026 12:14 AM
I am nearly done with this project. I am trying to implement a on and off mechanism to do morse wherein the duration of the on/off signifies a dash or dot. I am strictly only using this for numbers so there is a 5 character conditional. It works but it only decodes only 1 character. How do make it such that it can handle multiple characters?
05-05-2026 12:57 AM
Hi P6,
@InP6Hell wrote:
It works but it only decodes only 1 character. How do make it such that it can handle multiple characters?
Your code is hardly to decipher form that downscaled image.
And please downconvert your VI before attaching. Most suggest "LabVIEW 2021 or older", I prefer LV2019...
Generic answer:
When you have a routine to decode one character then you only need to call that routine several times to decode several characters...
05-05-2026 02:19 AM
Hello! Here's an older version of the file. Can't get my head around on how to make it decode more characters. I was thinking of making an array and spaces between characters. Still working on it
05-05-2026 02:57 AM - edited 05-05-2026 02:57 AM
Hi P6
@InP6Hell wrote:
Can't get my head around on how to make it decode more characters.
Because your "Morse string" never gets cleared from previoulsy decoded data, you only append new morse codes at the end...
And the decoding routine always starts from beginning of "Morse string", again and again!
Additionally you call the decoding routine WHEN the "Morse string" contains exactly 5 chars...
You should have found those items on your own by using some simple debugging techniques, like probes and highlight execution!