From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in implementing Logic

Solved!
Go to solution

I have a sorted array as input and output as I needed.  I need output as each element in array how much time repeated. Attached image for reference. 

 

Array.png

 

I tried but didnt get what I needed. Attached VI.

--------------------------------------------------------------------------------------------------------
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 1 of 14
(2,995 Views)

Are you sure you will always have only the Alphabets in the input array?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 14
(2,978 Views)

This is little bit rubed but will help you to sort the array and count the character.

 

CharCount.png

-----

The best solution is the one you find it by yourself
0 Kudos
Message 3 of 14
(2,963 Views)

No that will actually that will be string as each member of array

--------------------------------------------------------------------------------------------------------
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 4 of 14
(2,942 Views)

Can you please upload in v11 

--------------------------------------------------------------------------------------------------------
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 5 of 14
(2,941 Views)
Solution
Accepted by topic author Ranjeet_Singh

Hi,

 

here's a one loop version:

Example_VI_BD.png

(No need to use three FOR loops…)

 

@Ranjeet:

In LV2011 you need to replace the conditional output tunnel by a case structure and a BuildArray inside the TRUE case combined with a shift register. See how far you get…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 14
(2,931 Views)

Whats this?

--------------------------------------------------------------------------------------------------------
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 7 of 14
(2,923 Views)

That is conditional build terminal available in 2013.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 8 of 14
(2,916 Views)

How can I implement in 2011

--------------------------------------------------------------------------------------------------------
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 9 of 14
(2,906 Views)

Hi Ranjeet,

 

as said before:

You need a shift register, a case structure and a BuildArray inside the TRUE case.

 

Ever tried to use the example finder in LabVIEW and to study the example VIs coming with LabVIEW?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 14
(2,900 Views)