LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

To delete a non repeated element from Array.

Solved!
Go to solution

 

Check this

DeleteNonRepeatedElements.png

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 11 of 18
(1,023 Views)

Actually I need the non repeated elements to be deleted and the repeated elements to be printed once.

0 Kudos
Message 12 of 18
(980 Views)

Hi Hemanth,

 


@stark8 wrote:

Actually I need the non repeated elements to be deleted and the repeated elements to be printed once.


I'm sorry, I implemented it in the opposite direction…

Adapt as needed - or use the Map approach also shown in this thread!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 18
(973 Views)

Here are a couple different ways.

 

Find Multiple Items.png

0 Kudos
Message 14 of 18
(960 Views)

Can u help me out i can't figure it out....

0 Kudos
Message 15 of 18
(934 Views)

Hi Hemanth,

 


@stark8 wrote:

Can u help me out i can't figure it out....


Who is "u" and why can't you use one of the suggested solutions?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 18
(924 Views)
Solution
Accepted by stark8

Have you tried my solution?

 

Is your expected output matches with the below results

PalanivelThiruvenkadam_0-1704729543329.png

 

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 17 of 18
(913 Views)
Solution
Accepted by stark8

I would probably use a map as follows (Note that the input does not need to be sorted):

 

altenbach_0-1704735087565.png

 

0 Kudos
Message 18 of 18
(895 Views)