06-28-2019 07:21 PM
The VI is intended to take a string as an input and output the corresponding number on a numeric indicator - for example, the number 987 is expressed in coded form as lusuke. However, my VI only outputs for the third set of letters - in this example ke -> 7 when the full lusuke is inputted. Any suggestions for getting all three numbers corresponding to their respective letter sets to output?
Attached is my VI:
Solved! Go to Solution.
06-28-2019 07:38 PM - edited 06-28-2019 08:01 PM
You need to right click on the blue output tunnel and select auto-indexing.
06-30-2019 07:57 PM
How would I make unknown values be expressed at 0 and not -1, for example luzzlu would be expressed as 9 0 9 instead of 9 -1 9
06-30-2019 08:07 PM
@gigocackirovski wrote:
How would I make unknown values be expressed at 0 and not -1, for example luzzlu would be expressed as 9 0 9 instead of 9 -1 9
The problem with that is that 0 is also a valid element, so if you overload the zero, it can mean either element 0 or "not found", making the reply ambiguous.
(You could do a +1 on the output array, but then "lu" would be "10".)