Jump to content

need filter and count in string array in labview


Recommended Posts

Hi.... I am beginner to VI.. I need filter and count display for number of strings occur in a single column of string array...I can't explain....below I just represented what is my need.  Column A is Input string array...Column B and C are the output arrays.... 

 

 

Column A          Column B            Column C

Apple                  Apple                         3

Banana              Mango                        2

Mango                Banana                      1

Apple

Apple

Mango

 

Can any one help me...?

 

Link to comment

If you have the OpenG library installed, this can be done with

- Remove Duplicates from 1D Array

- Search Array

And the following native functions

- Array Size

- a For Loop

 

If you don't have the OpenG library, you need to use those native functions instead

- A For Loop with a shift register

- Search 1D Array

- A Case Structure

- Build Array

- Another For Loop

- A While Loop with a shift register

- Another Search 1D Array

- Less Than 0?

- Increment

 

Have fun connecting them up

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.