LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

count the number of repetitions of items

Solved!
Go to solution

@Nando88 wrote:

I will leave the vi as an attachment.


Looks extremely convoluted. Way too much code!

The first loop can be replaced by a simple "index array". Why would you need to sort the same array twice in parallel? Wouldn't once be enough? Why is the count DBL instead of an integer? The second loop could use a conditional tunnel for 10% of the current code. Why do you wire the lower array twice into the third loop stack instead of using autoindexing?

 

A good exercise would be to try again and do it all in a single simple loop!


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 21 of 22
(764 Views)

@altenbach wrote:

A good exercise would be to try again and do it all in a single simple loop!


Here's one simple possibility (the second loop is not really needed, but without it you would need to transpose at end)


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 22 of 22
(747 Views)