LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Maths on 1-D Arrays

Solved!
Go to solution

It is straightforward to carry out maths on single numerics with the maths functions in Labview.

 

My question is: how to carry out maths on 1-D arrays of numbers.

 

I have a 1-D array of numbers and I just want to average all of the numbers in the 1-D array. There must be a quick and esy way to do this?

 

 

0 Kudos
Message 1 of 6
(2,452 Views)

Math -> Statistics -> Mean…

 

or

 

Sum(Array) / "number of array elements"…

Best regards,
GerdW


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

Math -> Statistics -> Mean…

 

or

 

Sum(Array) / "number of array elements"…

 

I am sorry, you haven't explained how to carry these out. Are they a right click on an icon or are they from the palette.

 

Excuse my ineptitude please.

 

 

 

0 Kudos
Message 3 of 6
(2,429 Views)
Solution
Accepted by topic author nevica

Hi nevica,

 

those are functions from the functions palette…

Mean

ArraySum

Divide

ArraySize

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,420 Views)

Thanks Gerd

0 Kudos
Message 5 of 6
(2,408 Views)

You could have used QuickDrop (ctrl-space) and just type the function names…

Best regards,
GerdW


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