LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"1D" version of mean_ptbypt?

Hello,

I am looking for the easiest way to apply the functionality of the Mean PtbyPt VI to an array of input values. The output should be an array of the same size containing the mean of each index of the input array - similar to the averaging option offered by the FFT and Power spectrum VIs.
0 Kudos
Message 1 of 3
(2,437 Views)
The function is called Mean (sort of obvious). See the search button on the functions palette? You just have to click on that if you don't know which palette it's on.
0 Kudos
Message 2 of 3
(2,420 Views)

I'm not aware of a function that does this. I think the easiest way is to use the PtByPt Mean as a starting point to write your own PtByPt Array Mean vi. I think the vi isn't protected, so you can see the code.  Save this vi under a new name (and not inside the vi.lib folder). Also note, that the PtByPt vi's are reentrant (VI properties).

Alternatively, if you need to change a lot of PtByPt VI's you could use VI Server and create references to n VI's. 

 

Felix 

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