03-29-2023 10:53 PM
I am in the middle of a project where I am creating a morse code translator with LabView. I have a button that is set at "switch until release" and a timer that times how long the button has been held. I then compare that timer value with 350 ms. If the button is pressed for more than 350 ms, a dash will be produced, and if it is pressed for less than 350 ms, a dot will be produced. In the same while loop, I have 26 nested case structures that correspond to each pattern of dots and dashes with its Latin letter. I realize this isn't the best way to do things, especially if I want to make words. The best way I could think to create words was to have another button and string indicator. When this button is hit, the value that is currently in the letter string indicator gets appended to the new string indicator but I can't seem to get this to work. I have it in the third frame of the flat sequence.
Below is the very messy VI. Please Help!
03-29-2023 10:54 PM
I am in the middle of a project where I am creating a morse code translator with LabView. I have a button that is set at "switch until release" and a timer that times how long the button has been held. I then compare that timer value with 350 ms. If the button is pressed for more than 350 ms, a dash will be produced, and if it is pressed for less than 350 ms, a dot will be produced. In the same while loop, I have 26 nested case structures that correspond to each pattern of dots and dashes with its Latin letter. I realize this isn't the best way to do things, especially if I want to make words. The best way I could think to create words was to have another button and string indicator. When this button is hit, the value that is currently in the letter string indicator gets appended to the new string indicator but I can't seem to get this to work. I have it in the third frame of the flat sequence.
Below is the very messy VI. Please Help!
03-29-2023 11:20 PM - edited 03-29-2023 11:27 PM
Please refrain from creating duplicate posts.
https://forums.ni.com/t5/LabVIEW/Concatenating-strings-from-event/td-p/4294531
Please post the VI in LabVIEW 2019 format as most users are not on the latest LabVIEW version.
In general, this is how I would approach the scenario,
03-30-2023 06:34 AM
In order to avoid mistakes: there is no such thing as a timer in LV. The common conception of a timer is something you can start, stop and reset arbitrarily and which would return the elapsed time after stop.