LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble getting all three outputs from VI

Solved!
Go to solution

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:

0 Kudos
Message 1 of 4
(1,851 Views)
Solution
Accepted by topic author gigocackirovski

You need to right click on the blue output tunnel and select auto-indexing.

0 Kudos
Message 2 of 4
(1,841 Views)

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

0 Kudos
Message 3 of 4
(1,785 Views)
Solution
Accepted by topic author gigocackirovski

@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".)

0 Kudos
Message 4 of 4
(1,783 Views)