LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data occurrence percentage

Solved!
Go to solution

 Hello,

 

 

I have a 2D array (dimensions 62 rows x 24 collumns) and the values cary in the range 0...20.  Aditionally, there are 3 limits (L1=1.22, L2=2, L3=10). What i need to do is to see how many values, in each collumn, are below L1, how many between L1 and L2, between L3 and L2, and how many are bigger than L3. These numbers i need to be saved in 4 2D arrays.

 

For example if the original 2D array is:

1 3 7

0 5 11

3 6 2

 

the output 1D arrays are:

A1 (for values below L1)

2 0 0

 

A2 (for values between L1 and L2)

0 0 1

 

A3 (for values between L2 and L3)

1 3 1

 

A4 (for values above L3)

0 0 1

 

Please help, i am new to Labview...

 

[edit] The title is Data occurrence percentage... i need the 1D arrays as above, because after that it is very easy to transform that into percentages ( by dividing with the total number of lines)

0 Kudos
Message 1 of 3
(2,262 Views)
Solution
Accepted by topic author valentina.alina

Sounds like a task for the General Histogram VI.

Define the bins (e.g. -Inf,1.22; 1.22,2; 2,10; 10, Inf) and feed your data into the VI (one column at a time).

 

Message 2 of 3
(2,249 Views)

Thank you very much, Sir 🙂

0 Kudos
Message 3 of 3
(2,235 Views)