07-15-2019 06:46 AM
Hello everybody,
I'm trying to reproduce a VI but I do not know where to find this, can you help me please ?
Have a nice day
07-15-2019 06:59 AM
Hi jp,
please use more descriptive thread titles: every message here is about LabVIEW!
In the image you see a cluster containing a boolean array. That's what can be seen - there might be more hidden in this resized cluster!
(I guess the cluster contains an array for each ASCII char…)
07-15-2019 07:09 AM
Thanks GerdW,
Yes you are right, I will think about it in the future.
I wish to do this VI but I do not know how to reproduce the part I told you about. What do you think ?
Have a nice day
07-15-2019 07:34 AM - edited 07-15-2019 07:35 AM
It looks like that is a cluster, with a Boolean array for each letter.
All in all, it's a silly way to convert a char (byte) to Morse code. The idea is OK, but it's very laborious and error prone to unbundle the right letter in the right cluster. I'd go for a array of strings, where the indices represent the ASCII codes. Basically a LUT...
07-15-2019 07:41 AM
Thanks,I also thought about that.
Ok but I am a debutant in labview, I have to do how concretely?
the cluster remains but inside I do the table with the code ascii?
Thanks you for your answer
Have a nice day
07-15-2019 07:47 AM
Hi jp,
this would be a very simple kind of LUT:
Having a multiline string with a line/row for each Morse code you need. Now just index the line corresponding to the char you want to morse. Instead of the boolean arrays in your image you can also simple write "0"/"1" in the string.
(Using wiebe's approach with an array of strings IMHO is still nicer, here you would use IndexArray to get the needed string.)
07-15-2019 08:26 AM
Thank you for your answers and your time.
I am a beginner and I have trouble starting, here is my VI, if you have time can you do what you have spoken to me please? Of course, I continue to search.
thank you very much
Have a nice days
07-15-2019 08:43 AM
07-16-2019 01:37 AM
Thanks,
It's a cluster with code A code B code C etc ? and what is this array, I dont Find this.
Have a nice day
07-16-2019 01:46 AM
Hi jp,
what exactly are you talking about?
It's a cluster with code A code B code C etc ?
In my snippet there is just a string constant at the left side.
and what is this array, I dont Find this.
Which array dont you find?