ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Counting specific Values

Hi guys,

 

I was hoping if I could get some help on the following subject.

I want to count the occurrence of a specific value.

For example, If I have a data set of 3, 4, 1, 2, 3, 5, 1, 2, 3, I want to make another data set looking something like this:

 

1: 2 (there were two 1's in the data set)

2: 2 (there were two 2's in the data set)

3: 3 (there were three 3's in the data set)

4: 1 (there were one 4's in the data set)

5: 1 (there were one 5's in the data set)

 

I know there is an event search function, but I don't want to know where it happened, I want to know how many times it occurred...

Is there a build in function for this, or is this a script job?

 

Any advice is welcomed, and thanks will be in kudos of course! 😄

0 Kudos
Message 1 of 2
(2,922 Views)

Hi kmyan9,

 

 the histogram classification of the math module should fit (with 5 classes).

0 Kudos
Message 2 of 2
(2,695 Views)