LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in implementing Logic

Solved!
Go to solution

No I never read any such examples. I tried as you suggested but didnt suceeded

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 11 of 14
(426 Views)

 

This is what you are missing.

 

CharacterCount-GerdW.png

-----

The best solution is the one you find it by yourself
0 Kudos
Message 12 of 14
(424 Views)

Ranjeet,

 

You've been around the forums long enough that you should've have seen build array and shift registers enough times to have been able to figure this out.

0 Kudos
Message 13 of 14
(391 Views)

You don't really need to format the number every iteration, only when it is actually needed. Since we now have a case structure, we can also eliminate the select node. Here's a quick draft.

 

 

 

(Note that this requires the input array to be sorted as you said. If it is not, simply insert a "sort array" in the right place i.e. before the first wire branch of the input array.)

 

If all array elements are guaranteed to be single character strings, there is an even simpler solution... try it. 😉

Download All
Message 14 of 14
(380 Views)